FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 01-21-2011, 02:39 AM
David Cantrell
 
Default 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.
---
loader/linuxrc.s390 | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/loader/linuxrc.s390 b/loader/linuxrc.s390
index d8a8fda..610f3ca 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
}
--
1.7.3.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 09:00 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org