diff options
author | Matt Wilson <msw@redhat.com> | 1999-12-28 18:42:35 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 1999-12-28 18:42:35 +0000 |
commit | dc54e380b3badc3e2d3f3153f98a27c3687c4e5d (patch) | |
tree | 99e0455460c216084be7c3787010ec726d3aeb43 | |
parent | b436e67655004a6f051d7749bedaf118e143617d (diff) | |
download | anaconda-dc54e380b3badc3e2d3f3153f98a27c3687c4e5d.tar.gz anaconda-dc54e380b3badc3e2d3f3153f98a27c3687c4e5d.tar.xz anaconda-dc54e380b3badc3e2d3f3153f98a27c3687c4e5d.zip |
loopback mounts work for root <gulp>
-rw-r--r-- | fstab.py | 24 |
1 files changed, 24 insertions, 0 deletions
@@ -317,6 +317,30 @@ class Fstab: for (mntpoint, device, fsystem, doFormat, size) in self.mountList(): if fsystem == "swap": continue + elif fsystem == "vfat" and mntpoint == "/": + # do a magical loopback mount -- whee! + print "trying loopback magic" + iutil.mkdirChain("/mnt/loophost") + isys.makeDevInode(device, '/tmp/' + device) + isys.mount('/tmp/' + device, "/mnt/loophost", fstype = "vfat") + os.remove( '/tmp/' + device); + + isys.makeDevInode("loop0", '/tmp/' + "loop0") + isys.ddfile("/mnt/loophost/something", 200) + isys.losetup("/tmp/loop0", "/mnt/loophost/something") + + if self.serial: + messageFile = "/tmp/mke2fs.log" + else: + messageFile = "/dev/tty5" + + iutil.execWithRedirect ("/usr/sbin/mke2fs", + [ "mke2fs", "/tmp/loop0" ], + stdout = messageFile, + stderr = messageFile, searchPath = 1) + + isys.mount('/tmp/loop0', instPath) + os.remove('/tmp/loop0') elif fsystem == "ext2": try: iutil.mkdirChain(instPath + mntpoint) |