mirror of
https://github.com/linuxboot/heads.git
synced 2025-03-15 16:46:07 +00:00
/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 <insurgo@riseup.net>
This commit is contained in:
parent
108e6ed0b1
commit
40df08ecbc
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user