summaryrefslogtreecommitdiffstats
path: root/loader
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2011-01-20 11:29:13 -1000
committerDavid Cantrell <dcantrell@redhat.com>2011-01-21 11:54:01 -1000
commit55ce3f6deb91c3c7a55e6b435e97e5cb2a3ed3c4 (patch)
treedfb924f028b60cf0de94cb7124fc2cde969a2787 /loader
parentfb0f69ac63f6a9606a1fe723f37436d047f9c472 (diff)
Unmount filesystems before shutdown or reboot on s390x (#605577)
Prevents unclean root filesystem on first reboot. On all platforms but s390x, this is handled by the unmountFilesystems() function in loader/undomounts.c, but since init on s390x is a shell script, we need this forced umount call. (cherry picked from commit f6c6dd0369bd691c6979cc02ca10b222b028b649)
Diffstat (limited to 'loader')
-rw-r--r--loader/linuxrc.s3902
1 files changed, 2 insertions, 0 deletions
diff --git a/loader/linuxrc.s390 b/loader/linuxrc.s390
index 2948d660c..046dc9da0 100644
--- a/loader/linuxrc.s390
+++ b/loader/linuxrc.s390
@@ -106,6 +106,7 @@ function checkipv4()
function doshutdown()
{
echo $"about to exec shutdown"
+ /sbin/umount -a -d -n >/dev/null 2>&1
exec /sbin/shutdown
exit 0
}
@@ -123,6 +124,7 @@ function doreboot()
fi
echo $"about to exec shutdown -r"
+ /sbin/umount -a -d -n >/dev/null 2>&1
exec /sbin/shutdown -r
exit 0
}