mirror of https://github.com/archzfs/archzfs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
958 B
27 lines
958 B
9 years ago
|
#!/bin/bash
|
||
|
|
||
9 years ago
|
cat <<-EOF > "${arch_target_dir}/usr/bin/config.sh"
|
||
9 years ago
|
echo '${fqdn}' > /etc/hostname
|
||
|
/usr/bin/ln -s /usr/share/zoneinfo/${timezone} /etc/localtime
|
||
|
echo 'KEYMAP=${keymap}' > /etc/vconsole.conf
|
||
|
/usr/bin/sed -i 's/#${language}/${language}/' /etc/locale.gen
|
||
|
/usr/bin/locale-gen
|
||
|
|
||
9 years ago
|
/usr/bin/sed -i 's/filesystems/zfs filesystems/' /etc/mkinitcpio.conf
|
||
|
|
||
|
/usr/bin/mkinitcpio -p linux
|
||
9 years ago
|
|
||
|
/usr/bin/usermod --password ${password} root
|
||
|
|
||
|
# https://wiki.archlinux.org/index.php/Network_Configuration#Device_names
|
||
|
/usr/bin/ln -s /dev/null /etc/udev/rules.d/80-net-setup-link.rules
|
||
|
/usr/bin/ln -s '/usr/lib/systemd/system/dhcpcd@.service' '/etc/systemd/system/multi-user.target.wants/dhcpcd@eth0.service'
|
||
|
|
||
|
# Configure ssh
|
||
|
sed -e '/^#PermitRootLogin prohibit-password$/c PermitRootLogin yes' \
|
||
|
-e '/^#UseDNS no$/c UseDNS no' \
|
||
|
-i /etc/ssh/sshd_config
|
||
|
|
||
|
/usr/bin/systemctl enable sshd.service
|
||
|
EOF
|