summaryrefslogtreecommitdiffstats
path: root/livecd.py
diff options
context:
space:
mode:
Diffstat (limited to 'livecd.py')
-rw-r--r--livecd.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/livecd.py b/livecd.py
index 2955a9e6a..3473c1131 100644
--- a/livecd.py
+++ b/livecd.py
@@ -40,6 +40,7 @@ from constants import *
import backend
import isys
import iutil
+import fsset
import packages
@@ -112,7 +113,7 @@ class LiveCDCopyBackend(backend.AnacondaBackend):
sys.exit(0)
def _getLiveBlockDevice(self):
- return self.osimg
+ return os.path.normpath(self.osimg)
def _getLiveSizeMB(self):
def parseField(output, field):
@@ -173,6 +174,13 @@ class LiveCDCopyBackend(backend.AnacondaBackend):
rootfs = r.device.getDevice()
rootfd = os.open("/dev/" + rootfs, os.O_WRONLY)
+ # set the rootfs to have the right type. this lets things work
+ # given ext2 or ext3 (and in the future, ext4)
+ # FIXME: should we try to migrate if there isn't a match?
+ roottype = isys.readFSType(osimg)
+ if roottype is not None:
+ r.fsystem = fsset.fileSystemTypeGet(roottype)
+
readamt = 1024 * 1024 * 8 # 8 megs at a time
size = float(self._getLiveSizeMB() * 1024 * 1024)
copied = 0