summaryrefslogtreecommitdiff
path: root/update-initramfs
diff options
context:
space:
mode:
Diffstat (limited to 'update-initramfs')
-rwxr-xr-xupdate-initramfs3
1 files changed, 2 insertions, 1 deletions
diff --git a/update-initramfs b/update-initramfs
index d1b7026..4a03614 100755
--- a/update-initramfs
+++ b/update-initramfs
@@ -113,7 +113,7 @@ run_bootloader()
fi
return 0
fi
- if [ -e /etc/lilo.conf ]; then
+ if [ -e /etc/lilo.conf ] && [ -x /sbin/lilo ]; then
run_lilo
fi
}
@@ -138,6 +138,7 @@ delete_sha1()
# ro /boot is not modified
ro_boot_check()
{
+ [ -d /proc ] || return 0
boot_opts=$(awk '/boot/{if (match($4, /ro/)) print "ro"}' /proc/mounts)
if [ -n "${boot_opts}" ]; then
echo "WARNING: /boot is ro mounted."