From 43cd6182e713f50a820ac80bc1c944447e45281f Mon Sep 17 00:00:00 2001 From: Fierelier Date: Mon, 7 Nov 2022 01:35:27 +0100 Subject: [PATCH] Do not update initramfs, if cryptsetup-initramfs is installed --- mods/live-installer/data/bin/login | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/live-installer/data/bin/login b/mods/live-installer/data/bin/login index bc1102d..3a95ef3 100755 --- a/mods/live-installer/data/bin/login +++ b/mods/live-installer/data/bin/login @@ -193,8 +193,9 @@ $WDVN_ENCRYPT_PASS_ADD" | cryptsetup luksAddKey "$PART_DEV" wdvn-chroot "/media/install" apt -y autoremove if [ "$WDVN_ENCRYPT" == "y" ]; then wdvn-chroot "/media/install" apt -y install cryptsetup-initramfs + else + wdvn-chroot "/media/install" update-initramfs -u fi - wdvn-chroot "/media/install" update-initramfs -u rm "/media/install/bin/login" mv "/media/install/bin/login.oobe" "/media/install/bin/login"