From 07a50bc86247791c9a82e0aedde5c090edf44b3f Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:41:54 -0400 Subject: [PATCH] Revamp output messages and ordering --- install.sh | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/install.sh b/install.sh index 9b83faa..8f01dfe 100755 --- a/install.sh +++ b/install.sh @@ -224,26 +224,32 @@ echo -n "Creating LVM VG named 'vgx'... " yes | vgcreate vgx ${target_disk}3 >&2 echo "done." -echo -n "Creating root logical volume (16GB, ext4)... " +echo -n "Creating root logical volume (16GB)... " lvcreate -L 16G -n root vgx >&2 +echo "done." +echo -n "Creating filesystem on root logical volume (ext4)... " yes | mkfs.ext4 /dev/vgx/root >&2 echo "done." echo -n "Creating ceph logical volume (16GB, ext4)... " yes | lvcreate -L 16G -n ceph vgx >&2 +echo "done." +echo -n "Creating filesystem on ceph logical volume (ext4)... " mkfs.ext4 /dev/vgx/ceph >&2 echo "done." echo -n "Creating swap logical volume (8GB)... " lvcreate -L 8G -n swap vgx >&2 +echo "done." +echo -n "Creating swap on swap logical volume... " yes | mkswap -f /dev/vgx/swap >&2 echo "done." -echo -n "Creating boot partition filesystem... " +echo -n "Creating filesystem on boot partition (ext2)... " yes | mkfs.ext2 ${target_disk}2 >&2 echo "done." -echo -n "Creating ESP partition filesystem... " +echo -n "Creating filesystem on ESP partition (vfat)... " yes | mkdosfs -F32 ${target_disk}1 >&2 echo "done." @@ -294,10 +300,6 @@ echo "${target_password}" | chroot ${target} passwd --stdin deploy >&2 fi echo "done." -echo -n "Setting hostname... " -echo "${target_hostname}" | tee ${target}/etc/hostname >&2 -echo "done." - echo -n "Setting NOPASSWD for sudo group... " sed -i 's/^%sudo\tALL=(ALL:ALL) ALL/%sudo\tALL=(ALL:ALL) NOPASSWD: ALL/' ${target}/etc/sudoers echo "done." @@ -321,6 +323,10 @@ chroot ${target} ssh-keygen -t rsa -N "" -f /etc/ssh/ssh_host_rsa_key >&2 chroot ${target} ssh-keygen -t ed25519 -N "" -f /etc/ssh/ssh_host_ed25519_key >&2 echo "done." +echo -n "Setting hostname... " +echo "${target_hostname}" | tee ${target}/etc/hostname >&2 +echo "done." + echo -n "Installing GRUB bootloader... " mount --bind /dev ${target}/dev >&2 mount --bind /dev/pts ${target}/dev/pts >&2