diff options
author | Matt Wilson <msw@redhat.com> | 2000-01-10 23:27:05 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-01-10 23:27:05 +0000 |
commit | 7c69982b5aca9e088ed1b34534ddd214fdea8355 (patch) | |
tree | 3b6a865da2f1f53e45475eb50e909fac09038de3 /todo.py | |
parent | 5f82ea6b35342d4ba68ed6ef9bf57ac66b6f741c (diff) | |
download | anaconda-7c69982b5aca9e088ed1b34534ddd214fdea8355.tar.gz anaconda-7c69982b5aca9e088ed1b34534ddd214fdea8355.tar.xz anaconda-7c69982b5aca9e088ed1b34534ddd214fdea8355.zip |
loopback installs work in tui
Diffstat (limited to 'todo.py')
-rw-r--r-- | todo.py | 13 |
1 files changed, 11 insertions, 2 deletions
@@ -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] |