diff options
| author | Chris Lumens <clumens@redhat.com> | 2007-04-18 21:52:17 +0000 |
|---|---|---|
| committer | Chris Lumens <clumens@redhat.com> | 2007-04-18 21:52:17 +0000 |
| commit | 12cd258f41de8ec140634d3ac07da4d2074b9f4e (patch) | |
| tree | 9da709ed4024d174a842111d20b32cca73da64c4 /scripts | |
| parent | e1be401ac2e87c681eacb19d7048e8bd933e6dd1 (diff) | |
| download | anaconda-12cd258f41de8ec140634d3ac07da4d2074b9f4e.tar.gz anaconda-12cd258f41de8ec140634d3ac07da4d2074b9f4e.tar.xz anaconda-12cd258f41de8ec140634d3ac07da4d2074b9f4e.zip | |
The default option has changed locations for the menus (#236453).
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/mk-rescueimage.i386 | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/scripts/mk-rescueimage.i386 b/scripts/mk-rescueimage.i386 index e2522f2f6..ea885d74b 100755 --- a/scripts/mk-rescueimage.i386 +++ b/scripts/mk-rescueimage.i386 @@ -57,17 +57,24 @@ cfgfile = open("%s/isolinux/isolinux.cfg" % (destdir,), "w+") fndit = 0 indefault = 0 defaultimg = None +usingmenu = False + for l in cfglines: if string.find(l, "default ") != -1: defaultimg = string.strip(string.split(l,' ')[1]) - cfgfile.write("default rescue\n") + if defaultimg.startswith("vesamenu"): + usingmenu = True + defaultimg = "rescue" + cfgfile.write(l) + else: + cfgfile.write("default rescue\n") continue elif string.find(l, "label ") != -1: # see if we've left default stanza and entered a new one if fndit and indefault: indefault = 0 cfgfile.write(rescuestanza) - + if defaultimg is not None: curimg = string.strip(string.split(l, ' ')[1]) if curimg == defaultimg: @@ -76,7 +83,10 @@ for l in cfglines: # build up the rescue stanza based on whats in the # default stanza as we echo it out - rescuestanza = "label rescue\n" + if usingmenu: + rescuestanza = " menu default\n" + else: + rescuestanza = "label rescue\n" # if we fall through then write it out cfgfile.write(l) @@ -89,7 +99,8 @@ for l in cfglines: else: rescuestanza = rescuestanza + l - cfgfile.write(l) + if usingmenu and string.find(l, "menu default") == -1: + cfgfile.write(l) cfgfile.close() |
