summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2006-09-20 18:25:28 +0000
committerJeremy Katz <katzj@redhat.com>2006-09-20 18:25:28 +0000
commiteb8f437dfb918032bb1b91036d76ed1afcdd1a67 (patch)
tree210b5ed40d90cc086387db95afc9a3f22b13f1af /fsset.py
parentc0368fa9f2d5efde2f83fe57bcca7055038f3711 (diff)
downloadanaconda-eb8f437dfb918032bb1b91036d76ed1afcdd1a67.tar.gz
anaconda-eb8f437dfb918032bb1b91036d76ed1afcdd1a67.tar.xz
anaconda-eb8f437dfb918032bb1b91036d76ed1afcdd1a67.zip
2006-09-20 Jeremy Katz <katzj@redhat.com>
* syslogd.py (InstSyslog.start): Only exec syslogd if it exists * fsset.py (FileSystemSet.mkDevRoot): Don't create /dev/root if it already exists
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/fsset.py b/fsset.py
index 0459397e8..43e090479 100644
--- a/fsset.py
+++ b/fsset.py
@@ -1284,8 +1284,9 @@ MAILADDR root
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)
+
+ if not os.path.exists("%s/dev/root" %(instPath,)):
+ os.mknod("%s/dev/root" % (instPath,), stat.S_IFBLK | 0600, rdev)
# return the "boot" device
def getBootDev(self):