Skip to content

Commit

Permalink
/etc/functions:: reuse detect_boot_device instead of trying only to m…
Browse files Browse the repository at this point in the history
…ount /etc/fstab existing /boot partition (otherwise early 'o' to enter oem mode of oem-factory-reset

Signed-off-by: Thierry Laurion <[email protected]>
  • Loading branch information
tlaurion committed Nov 21, 2024
1 parent 794acce commit cd5d31c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions initrd/etc/functions
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit cd5d31c

Please sign in to comment.