summaryrefslogtreecommitdiff
path: root/update-initramfs
diff options
context:
space:
mode:
Diffstat (limited to 'update-initramfs')
-rwxr-xr-xupdate-initramfs4
1 files changed, 2 insertions, 2 deletions
diff --git a/update-initramfs b/update-initramfs
index a257f1c..eb1db44 100755
--- a/update-initramfs
+++ b/update-initramfs
@@ -266,8 +266,8 @@ ro_boot_check()
return 0
fi
- boot_opts=$(awk '/boot/{if (match($4, /ro/) && $2 == "/boot")
- print "ro"}' /proc/mounts)
+ boot_opts=$(awk '/boot/{if (match($4, /^ro/) || match($4, /,ro/) \
+ && $2 == "/boot") print "ro"}' /proc/mounts)
if [ -n "${boot_opts}" ]; then
echo "WARNING: /boot is ro mounted."
echo "update-initramfs: Not updating ${initramfs}"