summaryrefslogtreecommitdiffstats
path: root/todo.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-01-10 23:27:05 +0000
committerMatt Wilson <msw@redhat.com>2000-01-10 23:27:05 +0000
commit7c69982b5aca9e088ed1b34534ddd214fdea8355 (patch)
tree3b6a865da2f1f53e45475eb50e909fac09038de3 /todo.py
parent5f82ea6b35342d4ba68ed6ef9bf57ac66b6f741c (diff)
downloadanaconda-7c69982b5aca9e088ed1b34534ddd214fdea8355.tar.gz
anaconda-7c69982b5aca9e088ed1b34534ddd214fdea8355.tar.xz
anaconda-7c69982b5aca9e088ed1b34534ddd214fdea8355.zip
loopback installs work in tui
Diffstat (limited to 'todo.py')
-rw-r--r--todo.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/todo.py b/todo.py
index 8801e63a6..7fbb0c046 100644
--- a/todo.py
+++ b/todo.py
@@ -470,6 +470,9 @@ class ToDo:
self.initrdsMade[kernelTag] = 1
return initrd
+ def needBootdisk (self):
+ if self.bootdisk or self.fstab.rootOnLoop(): return 1
+
def makeBootdisk (self):
kernel = self.hdList['kernel']
kernelTag = "-%s-%s" % (kernel['version'], kernel['release'])
@@ -490,6 +493,13 @@ class ToDo:
raise RuntimeError, "boot disk creation failed"
def installLilo (self):
+ # If self.liloDevice is None, skipping lilo doesn't work
+ if not self.liloDevice: return
+
+ # If the root partition is on a loopback device, lilo won't work!
+ if self.fstab.rootOnLoop():
+ return
+
lilo = LiloConfiguration ()
if not self.liloImages:
@@ -500,7 +510,6 @@ class ToDo:
## # on upgrade read in the lilo config file
## if os.access (self.instPath + '/etc/lilo.conf', os.R_OK):
## lilo.read (self.instPath + '/etc/lilo.conf')
-## elif not self.liloDevice: return
if os.access (self.instPath + '/etc/lilo.conf', os.R_OK):
os.rename(self.instPath + '/etc/lilo.conf',
@@ -1241,7 +1250,7 @@ class ToDo:
how = "i"
for p in self.hdList.selected():
- ts.add(p.h, p.h, how)
+ #ts.add(p.h, p.h, how)
total = total + 1
totalSize = totalSize + p.h[rpm.RPMTAG_SIZE]