diff options
author | Peter Jones <pjones@redhat.com> | 2006-02-01 21:40:17 +0000 |
---|---|---|
committer | Peter Jones <pjones@redhat.com> | 2006-02-01 21:40:17 +0000 |
commit | 7ca470f0abc77a5f674a5b05469d35d9a94d0721 (patch) | |
tree | 84ef1a496f55e9bc359003cc15b0aa1f606a0da8 /fsset.py | |
parent | 8d77d78ed918263f3a1ea717aa1736535efd83fa (diff) | |
download | anaconda-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.py | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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 = {} |