summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2006-02-06 23:46:37 +0000
committerJeremy Katz <katzj@redhat.com>2006-02-06 23:46:37 +0000
commit2ced85edf5b120972caddec1e39db3257832beaf (patch)
tree5dceffd03181a86a33bfd1e32a8c92de760d5288 /fsset.py
parent315529957e23ecef0629bba38f889d2b5eb83986 (diff)
downloadanaconda-2ced85edf5b120972caddec1e39db3257832beaf.tar.gz
anaconda-2ced85edf5b120972caddec1e39db3257832beaf.tar.xz
anaconda-2ced85edf5b120972caddec1e39db3257832beaf.zip
2006-02-06 Jeremy Katz <katzj@redhat.com>
* fsset.py (FileSystemSet.mkDevRoot): Don't create it if it already exists (eg, lvm)
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/fsset.py b/fsset.py
index 5536b59a5..4b0b0cc67 100644
--- a/fsset.py
+++ b/fsset.py
@@ -1278,7 +1278,8 @@ MAILADDR root
def mkDevRoot(self, instPath):
root = self.getEntryByMountPoint("/")
dev = "%s/dev/%s" % (instPath, root.device.getDevice())
- isys.makeDevInode(root.device.getDevice(), dev)
+ if not os.path.exists(dev):
+ isys.makeDevInode(root.device.getDevice(), dev)
rdev = os.stat(dev).st_rdev
os.mknod("%s/dev/root" % (instPath,), stat.S_IFBLK | 0600, rdev)