diff options
author | David Lehman <dlehman@redhat.com> | 2008-03-20 16:57:39 -0500 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2008-03-20 16:57:39 -0500 |
commit | 87a28ca1243044432cccec0c481da77e9ea609f4 (patch) | |
tree | 6d5e9b0f41bd711729b9fa4ee4e4b15ad5502ad6 /livecd.py | |
parent | 8df9e17a6fa9ca56f4ec4a3d7d744366b6d7ca45 (diff) | |
download | anaconda-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.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |