Do not update initramfs, if cryptsetup-initramfs is installed

This commit is contained in:
Fierelier 2022-11-07 01:35:27 +01:00
parent c4902400c7
commit 43cd6182e7

View File

@ -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"