summaryrefslogtreecommitdiffstats
path: root/rescue.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2004-10-15 20:08:58 +0000
committerJeremy Katz <katzj@redhat.com>2004-10-15 20:08:58 +0000
commit816bd48a989a276a8e610537c202eabe8d0b4d53 (patch)
treed1f2b3628e4355fe00e5661e0d0530c9146bfedc /rescue.py
parent5952b30c0caf8b900bcd0025ff8e2c816a40ad5a (diff)
downloadanaconda-816bd48a989a276a8e610537c202eabe8d0b4d53.tar.gz
anaconda-816bd48a989a276a8e610537c202eabe8d0b4d53.tar.xz
anaconda-816bd48a989a276a8e610537c202eabe8d0b4d53.zip
2004-10-15 Jeremy Katz <katzj@redhat.com>
* rescue.py (runRescue): bind mount /dev (#135860)
Diffstat (limited to 'rescue.py')
-rw-r--r--rescue.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/rescue.py b/rescue.py
index 6ff541d61..5b1443883 100644
--- a/rescue.py
+++ b/rescue.py
@@ -2,8 +2,9 @@
# rescue.py - anaconda rescue mode setup
#
# Mike Fulbright <msf@redhat.com>
+# Jeremy Katz <katzj@redhat.com>
#
-# Copyright 2001-2003 Red Hat, Inc.
+# Copyright 2001-2004 Red Hat, Inc.
#
# This software may be freely redistributed under the terms of the GNU
# library public license.
@@ -350,6 +351,9 @@ def runRescue(instPath, mountroot, id):
except:
log("Error enabling swap")
+ # now that dev is udev, bind mount the installer dev there
+ isys.mount("/dev", "/mnt/sysimage/dev", bindMount = 1)
+
# set a library path to use mounted fs
os.environ["LD_LIBRARY_PATH"] = "/lib:/usr/lib:/usr/X11R6/lib:/lib:/mnt/usr/lib:/mnt/sysimage/lib:/mnt/sysimage/usr/lib:/mnt/sysimage/usr/X11R6/lib"