diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-12-08 19:36:50 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-12-08 19:36:50 +0000 |
commit | 46b88ab2b1776423be16c0b888e07026a3c40991 (patch) | |
tree | 07bbb97f2e4cdd95520b91ed32b7a23a7089ad3c /iutil.py | |
parent | cb44209e595b7d8c5b1c1e3a4c08ec04a16df60e (diff) | |
download | anaconda-46b88ab2b1776423be16c0b888e07026a3c40991.tar.gz anaconda-46b88ab2b1776423be16c0b888e07026a3c40991.tar.xz anaconda-46b88ab2b1776423be16c0b888e07026a3c40991.zip |
helps to commit this part
Diffstat (limited to 'iutil.py')
-rw-r--r-- | iutil.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)) |