Skip to content

Commit

Permalink
Fix add/remove bootoptions with new kernel/initrd names
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Hofstaedtler committed Dec 21, 2011
1 parent 569dfb3 commit 5818eec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions grml2usb
Expand Up @@ -1295,7 +1295,7 @@ def modify_grub_config(filename):
for regex in options.removeoption:
regexe.append(re.compile(r'%s' % regex))

option_re = re.compile(r'(.*/boot/release/.*linux26.*)')
option_re = re.compile(r'(.*/boot/release/.*(linux26|vmlinuz).*)')

for line in fileinput.input(filename, inplace=1):
if regexe and option_re.search(line):
Expand Down Expand Up @@ -1443,7 +1443,7 @@ def adjust_syslinux_bootoptions(src, flavour):
regexe = []
option_re = None
if options.removeoption:
option_re = re.compile(r'/boot/release/.*/initrd.gz')
option_re = re.compile(r'/boot/release/.*/(initrd.gz|initrd.img)')

for regex in options.removeoption:
regexe.append(re.compile(r'%s' % regex))
Expand Down

0 comments on commit 5818eec

Please sign in to comment.