ISO/customize-airootfs.sh
2023-12-20 16:33:53 +01:00

28 lines
586 B
Bash
Executable file

#!/usr/bin/env ash
# overwrite default-hostname
echo "noveriaos-live" > /etc/hostname
hostname -F /etc/hostname
# Enable networking on boot
rc-update add networking
# Enable hostname service
rc-update add hostname
rc-update add sshd
# Set Swiss keymap
setup-keymap ch ch
# Set Swiss Timezone
setup-timezone Europe/Zurich
hwclock --systohc
# Change default shell of root from ash => zsh
sed -i 's~root:/bin/ash~root:/bin/zsh~' /etc/passwd
sed -i 's~/sbin/getty 38400~/sbin/mingetty --autologin root --noclear~' /etc/inittab
# Add btrfs module
echo "btrfs" | tee -a /etc/modules