summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-12-08 19:36:50 +0000
committerJeremy Katz <katzj@redhat.com>2003-12-08 19:36:50 +0000
commit46b88ab2b1776423be16c0b888e07026a3c40991 (patch)
tree07bbb97f2e4cdd95520b91ed32b7a23a7089ad3c /iutil.py
parentcb44209e595b7d8c5b1c1e3a4c08ec04a16df60e (diff)
downloadanaconda-46b88ab2b1776423be16c0b888e07026a3c40991.tar.gz
anaconda-46b88ab2b1776423be16c0b888e07026a3c40991.tar.xz
anaconda-46b88ab2b1776423be16c0b888e07026a3c40991.zip
helps to commit this part
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/iutil.py b/iutil.py
index 538ca1dbb..bb31f0487 100644
--- a/iutil.py
+++ b/iutil.py
@@ -420,7 +420,7 @@ def copyDeviceNode(src, dest):
isys.mknod(dest, mode | type, filestat.st_rdev)
# make the device-mapper control node
-def makeDMNode():
+def makeDMNode(root="/"):
major = minor = None
for (fn, devname, val) in ( ("/proc/devices", "misc", "major"),
@@ -441,8 +441,8 @@ def makeDMNode():
# print "major is %s, minor is %s" %(major, minor)
if major is None or minor is None:
return
- mkdirChain("/dev/mapper")
- isys.mknod("/dev/mapper/control", stat.S_IFCHR | 0600,
+ mkdirChain(root + "/dev/mapper")
+ isys.mknod(root + "/dev/mapper/control", stat.S_IFCHR | 0600,
isys.makedev(major, minor))