diff --git a/src/sig.c b/src/sig.c index 3df0aabe..4ddfc29b 100644 --- a/src/sig.c +++ b/src/sig.c @@ -328,8 +328,11 @@ void do_shutdown(shutop_t op) /* ... unmount remaining regular file systems. */ unmount_regular(); - /* We sit on / so we must remount it read-only */ - run("mount -n -o remount,ro -t none rootfs /", "mount"); + /* We sit on / so we must remount it ro, try all the things! */ + sync(); + run("mount -n -o remount,ro -t dummytype dummydev /", "mount"); + run("mount -n -o remount,ro dummydev /", "mount"); + run("mount -n -o remount,ro /", "mount"); /* Call mdadm to mark any RAID array(s) as clean before halting. */ mdadm_wait();