summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-12-06 02:26:16 +0000
committerJeremy Katz <katzj@redhat.com>2003-12-06 02:26:16 +0000
commit60961f063b481ed5bd94212a4f22d4c8f61c4997 (patch)
tree5dec37d9e4fe21e94edd2e723b732708c07e689f /fsset.py
parent5d4f653a0980c9eccec859384e67f470325c29e9 (diff)
downloadanaconda-60961f063b481ed5bd94212a4f22d4c8f61c4997.tar.gz
anaconda-60961f063b481ed5bd94212a4f22d4c8f61c4997.tar.xz
anaconda-60961f063b481ed5bd94212a4f22d4c8f61c4997.zip
make sure dmnode exists in the chroot too
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fsset.py b/fsset.py
index 05267fef1..09b1c388f 100644
--- a/fsset.py
+++ b/fsset.py
@@ -1456,10 +1456,10 @@ class FileSystemSet:
rootDev = "/dev/%s" % (root.device.getDevice(),)
rootdir = instPath + rootDev[:string.rfind(rootDev, "/")]
+ if not os.path.exists(instPath + "/dev/mapper/control"):
+ iutil.makeDMNode(root=instPath)
if not os.path.isdir(rootdir):
os.makedirs(rootdir)
- if not os.path.isdir(instPath + "/dev/mapper"):
- os.makedirs(instPath + "/dev/mapper")
dmdev = "/dev/mapper/" + root.device.getDevice().replace("/", "-")
iutil.copyDeviceNode(dmdev, instPath + dmdev)
os.symlink(dmdev, instPath + rootDev)