summaryrefslogtreecommitdiffstats
path: root/livecd.py
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2008-03-20 16:57:39 -0500
committerDavid Lehman <dlehman@redhat.com>2008-03-20 16:57:39 -0500
commit87a28ca1243044432cccec0c481da77e9ea609f4 (patch)
tree6d5e9b0f41bd711729b9fa4ee4e4b15ad5502ad6 /livecd.py
parent8df9e17a6fa9ca56f4ec4a3d7d744366b6d7ca45 (diff)
downloadanaconda-87a28ca1243044432cccec0c481da77e9ea609f4.tar.gz
anaconda-87a28ca1243044432cccec0c481da77e9ea609f4.tar.xz
anaconda-87a28ca1243044432cccec0c481da77e9ea609f4.zip
Make sure that devices are set up before using them. (#437858)
Encrypted devices, for one, need to be set up before they can be used normally.
Diffstat (limited to 'livecd.py')
-rw-r--r--livecd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/livecd.py b/livecd.py
index 2c4b2da9c..f209558c5 100644
--- a/livecd.py
+++ b/livecd.py
@@ -171,8 +171,8 @@ class LiveCDCopyBackend(backend.AnacondaBackend):
osfd = os.open(osimg, os.O_RDONLY)
r = anaconda.id.fsset.getEntryByMountPoint("/")
- rootfs = r.device.getDevice()
- rootfd = os.open("/dev/" + rootfs, os.O_WRONLY)
+ rootfs = r.device.setupDevice()
+ rootfd = os.open(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)