diff options
author | Erik Troan <ewt@redhat.com> | 2001-02-22 21:08:58 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-02-22 21:08:58 +0000 |
commit | a4083f873cc5e8e3fc1b9662b646492ce92e6a43 (patch) | |
tree | 08918ec9cb0b6478799e8d698f773fdc43ed5545 /rescue.py | |
parent | 0217e463e81b0da7b0ce05ec8faf9d7f87e49a47 (diff) | |
download | anaconda-a4083f873cc5e8e3fc1b9662b646492ce92e6a43.tar.gz anaconda-a4083f873cc5e8e3fc1b9662b646492ce92e6a43.tar.xz anaconda-a4083f873cc5e8e3fc1b9662b646492ce92e6a43.zip |
create /tmp/cleanup when necessary
Diffstat (limited to 'rescue.py')
-rw-r--r-- | rescue.py | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -5,6 +5,7 @@ from translate import _ import raid import os from log import log +import isys class RescueInterface: @@ -21,7 +22,7 @@ class RescueInterface: def __init__(self, screen): self.screen = screen -def runRescue(serial): +def runRescue(url, serial): from fstab import NewtFstab @@ -43,6 +44,16 @@ def runRescue(serial): screen = SnackScreen() intf = RescueInterface(screen) + # go ahead and set things up for reboot + if url[0:6] == "cdrom:" or url[0:4] == "nfs:": + f = open("/tmp/cleanup", "w") + + isys.makeDevInode("loop0", "/tmp/loop0") + f.write("umount /mnt/runtime\n") + f.write("lounsetup /tmp/loop0\n") + + f.close() + parts = upgrade.findExistingRoots(intf, fstab) if not parts: |