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 > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 02-13-2012, 12:58 PM
Vratislav Podzimek
 
Default Change the ordering of unmount, unlink and rename at the end of the installation

If we do unmount first, linker gets confused on x86_64 systems. No idea why,
but this patch appears to solve the problem.

Resolves: rhbz#750417
---
loader/shutdown.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/loader/shutdown.c b/loader/shutdown.c
index 43e8d3b..1c6ba8f 100644
--- a/loader/shutdown.c
+++ b/loader/shutdown.c
@@ -103,10 +103,7 @@ static void performUnmounts(void) {
printf("disabling swap...
");
disableSwap();

- printf("unmounting filesystems...
");
- unmountFilesystems();
-
- /* We've lost /mnt/runtime where /lib is a link to put the old
+ /* We'll lose /mnt/runtime where /lib is a link to put the old
/lib back so that our mdadm invocation below works. */
if (stat("/lib64", &st_buf) == 0) {
unlink("/lib64");
@@ -118,6 +115,9 @@ static void performUnmounts(void) {
unlink("/usr");
rename("/usr_old", "/usr");

+ printf("unmounting filesystems...
");
+ unmountFilesystems();
+
printf("waiting for mdraid sets to become clean...
");
status = system("/sbin/mdadm --wait-clean --scan");
if (!WIFEXITED(status))
--
1.7.4.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 04:16 AM.

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