diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-02-07 20:58:10 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-02-07 20:58:10 +0000 |
commit | cfa4a1947cf7965e25e241f6e9a434582fc4eb72 (patch) | |
tree | e5e57ce67aa4fbe2daba2e9a9047260767332f47 /bootloader.py | |
parent | 5bd2c24d83025448000e8b56f8db8002013a9501 (diff) | |
download | anaconda-cfa4a1947cf7965e25e241f6e9a434582fc4eb72.tar.gz anaconda-cfa4a1947cf7965e25e241f6e9a434582fc4eb72.tar.xz anaconda-cfa4a1947cf7965e25e241f6e9a434582fc4eb72.zip |
booty passes up an exception if no kernels are being installed so we can avoid having translate.py there
Diffstat (limited to 'bootloader.py')
-rw-r--r-- | bootloader.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/bootloader.py b/bootloader.py index f5186e984..5bd484c4b 100644 --- a/bootloader.py +++ b/bootloader.py @@ -105,10 +105,17 @@ def writeBootloader(intf, instRoot, fsset, bl, langs, comps): plainLabelUsed = 1 - bl.write(instRoot, fsset, bl, langs, kernelList, otherList, defaultDev, + try: + bl.write(instRoot, fsset, bl, langs, kernelList, otherList, defaultDev, justConfigFile, intf) - - w.pop() + w.pop() + except BootyNoKernelWarning: + w.pop() + if intf: + intf.messageWindow(_("Warning"), + _("No kernel packages were installed on your " + "system. Your boot loader configuration " + "will not be changed.")) # note that this function no longer actually creates an initrd. # the kernel's %post does this now |