more local configurations

This commit is contained in:
YellowJacketLinux 2024-10-12 15:59:47 -07:00
parent a87fee617e
commit 6b65f40783
2 changed files with 42 additions and 0 deletions

View File

@ -8,6 +8,35 @@ echo "localhost" > /etc/hostname
echo FONT=Lat2-Terminus16 > /etc/vconsole.conf
cat > /etc/locale.conf << "EOF"
LANG="en_US.UTF-8"
EOF
# /etc/profile
cat > /etc/profile << "EOF"
# Begin /etc/profile
for i in $(locale); do
unset ${i%=*}
done
if [[ "$TERM" = linux ]]; then
export LANG=C.UTF-8
else
source /etc/locale.conf
for i in $(locale); do
key=${i%=*}
if [[ -v $key ]]; then
export $key
fi
done
fi
# End /etc/profile
EOF
# /etc/inputrc
cat > /etc/inputrc << "EOF"

View File

@ -44,6 +44,19 @@ DHCP=ipv4
EOF
# auto-update "make-ca" certificate bundle
systemctl enable update-pki.timer
#
# Below has to be run after booting, not from chroot
# It makes sure timedatectl knows my hardware clock is UTC and then
# identifies my local timezone as America/Los_Angeles
# (often incorrectly called "Pacific Time")
#
cat > /root/timedatectl.sh << "EOF"
#!/bin/bash
timedatectl set-local-rtc 1
if [ $? -eq 0 ]; then
timedatectl set-timezone America/Los_Angeles
fi
EOF
else
# bootable USB thumb drive
echo "lfsusb" > /etc/hostname