X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=arch-init-chroot;h=c6e49936126f45e1ca4235a5d3d2d3fed2630dfc;hb=c8bd51084bc4d90b9653d521e7cb05e17e417d97;hp=634991c471a7bb1f939423c4fa025844b7cebadf;hpb=cbdfb4aeffe56f5a1f00a006e94d328653957770;p=automated-distro-installer diff --git a/arch-init-chroot b/arch-init-chroot index 634991c..c6e4993 100755 --- a/arch-init-chroot +++ b/arch-init-chroot @@ -7,7 +7,6 @@ trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR pacman -Syu -echo $hostname > /etc/hostname [[ -L /etc/localtime ]] || ln -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime l=en_US.UTF-8 echo "$l UTF-8" > /etc/locale.gen @@ -105,28 +104,14 @@ for dev in $BOOT_DEVICE; do done grub-mkconfig -o /boot/grub/grub.cfg # gtk2 is an optional dependency of unison. -# debian's unison binary has it linked in, -# so i install it so I can use the same binary for syncing -# the two distros. -pacman -S --noconfirm openssh unison gtk2 rsync +# I know Im gonna want the gui, so just doing it now. +pacman -S --noconfirm openssh rsync -echo "root:$ROOTPW" | chpasswd -e pacman -S --noconfirm sudo -# 9 = user already exists. so we are idempotent. -useradd -m -p "$ROOTPW" ian || [[ $? == 9 ]] - -if [[ $hostname == frodo ]]; then - useradd -m -p "$TPPASS" traci || [[ $? == 9 ]] -else - useradd -m traci || [[ $? == 9 ]] -fi -# comparing ian's groups to traci, I see none she should join on arch -usermod -a -G traci ian - - -/root/distro-install-common/end +. /a/bin/fai/fai-wrapper +/a/bin/fai/fai/config/distro-install-common/end systemctl enable sshd rm -rf /home/ian/.ssh