From 60961f063b481ed5bd94212a4f22d4c8f61c4997 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Sat, 6 Dec 2003 02:26:16 +0000 Subject: make sure dmnode exists in the chroot too --- fsset.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fsset.py') 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) -- cgit