[PATCH] Change the ordering of unmount, unlink and rename at the end of the installation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

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


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux