[master 1/2] removal: umountStage2().

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

 



It's not called from anywhere. We unmount all filesystems in the end
anyway, using the machinery in loader/undomounts.c.
---
 loader/method.c |    6 ------
 loader/method.h |    1 -
 2 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/loader/method.c b/loader/method.c
index 503f6c1..3ca669f 100644
--- a/loader/method.c
+++ b/loader/method.c
@@ -418,12 +418,6 @@ void copyProductImg(char * path) {
     }
 }
 
-/* unmount a second stage, if mounted. Used for CDs and mediacheck mostly,
-   so we can eject CDs.                                                   */
-void umountStage2(void) {
-    umountLoopback("/mnt/runtime", "/dev/loop0");
-}
-
 /** Bind the uncompressed second stage to /mnt/runtime.
  *
  * return 0 on success, 1 on failure to mount.
diff --git a/loader/method.h b/loader/method.h
index 7d2a3f6..cabd1c2 100644
--- a/loader/method.h
+++ b/loader/method.h
@@ -45,7 +45,6 @@ int mountLoopback(char * fsystem, char * mntpoint, char * device);
 int readStampFileFromIso(char *file, char **descr, char **timestamp);
 void queryIsoMediaCheck(char * isoDir);
 
-void umountStage2(void);
 int mountStage2(char *stage2path);
 int mountStage2Direct(char *stage2path);
 int copyFileAndLoopbackMount(int fd, char *dest, char *device, char *mntpoint,
-- 
1.6.6

_______________________________________________
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