From: Plom Heller Date: Tue, 25 Aug 2026 21:04:52 +0000 (+0200) Subject: Improve noise/signal ratio in logging. X-Git-Url: https://plomlompom.com/repos/booking/%22https:/validator.w3.org/condition?a=commitdiff_plain;h=0f102f7c8c6cb1922428cf6c238cca4498a11e31;p=confplom Improve noise/signal ratio in logging. --- diff --git a/install_debian.sh b/install_debian.sh index aed702e..ed100b4 100755 --- a/install_debian.sh +++ b/install_debian.sh @@ -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