home · contact · privacy
Improve noise/signal ratio in logging.
authorPlom Heller <plom@plomlompom.com>
Tue, 25 Aug 2026 21:04:52 +0000 (23:04 +0200)
committerPlom Heller <plom@plomlompom.com>
Tue, 25 Aug 2026 21:04:52 +0000 (23:04 +0200)
install_debian.sh

index aed702e7fceb3b880c52c0febb37d0c16ab2b39d..ed100b4bee3e200aa330007e1a84be2b8f9e1dbf 100755 (executable)
@@ -99,7 +99,8 @@ msg 'Creating volume group "%s" there …' "${NAME_VOLGROUP}"
 vgcreate "${NAME_VOLGROUP}" "${PARTITION}"
 msg 'Creating logical volume "%s" there …' "${NAME_ROOT}"
 lvcreate -l '100%FREE' -n "${NAME_ROOT}" "${NAME_VOLGROUP}"
-mkfs.ext4 "${LOGVOL_ROOT}"
+msg 'Creating EXT4 filesystem …'
+mkfs.ext4 -q "${LOGVOL_ROOT}"
 
 # mount and install base
 msg 'Mounting %s at %s …' "${LOGVOL_ROOT}" "${PATH_MNT}"
@@ -113,8 +114,8 @@ mount --make-rslave "${DEV_SLAVE}"
 
 # set up kernel, initrd
 msg 'Into chroot environment installing LVM tools, kernel, initrd …'
-chroot_sh "apt update"
-chroot_sh "apt install -y lvm2 linux-image-amd64"
+chroot_sh "apt -qq update"
+chroot_sh "apt -qq install -y lvm2 linux-image-amd64"
 
 # install kernel and initrd into EFI tree/vars
 msg 'EFI setup: copying kernel and initrd into %s …' "${PATH_EFI_BOOT_LABEL}"
@@ -125,6 +126,7 @@ done
 msg 'EFI setup: adding boot entry %s …' "${BOOT_LABEL}"
 efibootmgr \
     --create \
+    --quiet \
     --disk "${PATH_BOOT_DEVICE}" \
     --part "${IDX_BOOT_PARTITION}" \
     --label "${BOOT_LABEL}" \
@@ -132,6 +134,7 @@ efibootmgr \
     --unicode "root=${LOGVOL_ROOT} ro initrd=${BOOT_LABEL}\\${NAME_INITRD}"
 
 # ask root login at latest possible moment, so that on fails: less left undone
+msg 'Setting up root login …'
 chroot_sh "passwd"
 
 # clean up mounts