From 18c066f69764fbf49d520ce0453e2d7b5963360e Mon Sep 17 00:00:00 2001 From: Thierry Laurion Date: Sun, 17 Nov 2024 17:36:21 -0500 Subject: [PATCH] /etc/functions:: reuse detect_boot_device instead of trying only to mount /etc/fstab existing /boot partition (otherwise early 'o' to enter oem mode of oem-factory-reset Signed-off-by: Thierry Laurion --- initrd/etc/functions | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/initrd/etc/functions b/initrd/etc/functions index 6a89dc60..8bca8937 100755 --- a/initrd/etc/functions +++ b/initrd/etc/functions @@ -570,9 +570,7 @@ escape_zero() { assert_signable() { TRACE_FUNC # ensure /boot mounted - if ! grep -q /boot /proc/mounts; then - mount -o ro /boot || die "Unable to mount /boot" - fi + detect_boot_device find /boot -print0 >/tmp/signable.ref local del='\001-\037\134\177-\377'