From a512c91cd68a160d2198cbee7d3ae34762a79a11 Mon Sep 17 00:00:00 2001 From: Thanatermesis Date: Thu, 3 Aug 2023 15:18:44 -0500 Subject: [PATCH] fix for encrypted filesystems which became unusable in normal boots --- usr/share/initramfs-tools/scripts/init-top/bilibop-lockfs | 3 ++- usr/share/initramfs-tools/scripts/local-bottom/bilibop-lockfs | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/usr/share/initramfs-tools/scripts/init-top/bilibop-lockfs b/usr/share/initramfs-tools/scripts/init-top/bilibop-lockfs index 808609d..1f55eef 100755 --- a/usr/share/initramfs-tools/scripts/init-top/bilibop-lockfs +++ b/usr/share/initramfs-tools/scripts/init-top/bilibop-lockfs @@ -45,7 +45,8 @@ done . /scripts/functions . /usr/lib/bilibop/lockfs.sh -BILIBOP_LOCKFS="true" +# note: do not enable lockfs by default unless the user requests it on the boot mode, also there's a bug that unless "nolockfs" is added on the boot parameters, an OS that has its root partition in encrypted luks mode will become unusable +BILIBOP_LOCKFS="false" BILIBOP_LOCKFS_POLICY="hard" # Check if BILIBOP_LOCKFS or BILIBOP_LOCKFS_POLICY are overridden from the diff --git a/usr/share/initramfs-tools/scripts/local-bottom/bilibop-lockfs b/usr/share/initramfs-tools/scripts/local-bottom/bilibop-lockfs index 98f6095..6818faf 100755 --- a/usr/share/initramfs-tools/scripts/local-bottom/bilibop-lockfs +++ b/usr/share/initramfs-tools/scripts/local-bottom/bilibop-lockfs @@ -36,6 +36,9 @@ do esac done +# do not enable lockfs by default unless the user requests it on the boot mode, also there's a bug that unless "nolockfs" is added on the boot parameters, an OS that has its root partition in encrypted luks mode will become unusable +BILIBOP_LOCKFS="false" + # Load functions: . /scripts/functions . /usr/lib/bilibop/lockfs.sh