summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2006-02-01 21:40:17 +0000
committerPeter Jones <pjones@redhat.com>2006-02-01 21:40:17 +0000
commit7ca470f0abc77a5f674a5b05469d35d9a94d0721 (patch)
tree84ef1a496f55e9bc359003cc15b0aa1f606a0da8 /fsset.py
parent8d77d78ed918263f3a1ea717aa1736535efd83fa (diff)
downloadanaconda-7ca470f0abc77a5f674a5b05469d35d9a94d0721.tar.gz
anaconda-7ca470f0abc77a5f674a5b05469d35d9a94d0721.tar.xz
anaconda-7ca470f0abc77a5f674a5b05469d35d9a94d0721.zip
- add code to make /dev/root as it would be in a non-install environment
(#171662)
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/fsset.py b/fsset.py
index 222d7c42c..ed5091ec0 100644
--- a/fsset.py
+++ b/fsset.py
@@ -3,7 +3,7 @@
#
# Matt Wilson <msw@redhat.com>
#
-# Copyright 2001-2002 Red Hat, Inc.
+# Copyright 2001-2006 Red Hat, Inc.
#
# This software may be freely redistributed under the terms of the GNU
# library public license.
@@ -18,6 +18,7 @@ import isys
import iutil
import os
import posix
+import stat
import errno
import parted
import sys
@@ -1270,7 +1271,16 @@ MAILADDR root
f.write(newline)
f.close()
-
+
+ def mkDevRoot(self, instPath):
+ import pdb
+ pdb.set_trace()
+ root = self.getEntryByMountPoint("/")
+ dev = "%s/dev/%s" % (instPath, root.device.getDevice())
+ rdev = os.stat(dev).st_rdev
+
+ os.mknod("%s/dev/root" % (instPath,), stat.S_IFBLK | 0600, rdev)
+
# return the "boot" device
def getBootDev(self):
mntDict = {}