X-Git-Url: http://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2usb;h=ac700f19887dc6d625a13b281347f54c139b4396;hp=1c906ab231565f92824d1af9d49ef8457dc73544;hb=ef2f28e996c9d5b6313be87ee957c0d9a578e822;hpb=18a909e4a14304c06679f8ea3aaf089804a52214 diff --git a/grml2usb b/grml2usb index 1c906ab..ac700f1 100755 --- a/grml2usb +++ b/grml2usb @@ -1300,6 +1300,10 @@ def handle_grub_config(grml_flavour, device, target): if shortname in filename: line = live_media_path_re.sub('', line) line = line.rstrip() + ' live-media-path=/live/%s/ ' % (grml_flavour) + if bootopt.strip(): + line = line.replace(' {} '.format(bootopt.strip()), ' ') + if line.endswith(bootopt): + line = line[:-len(bootopt)] line = line.rstrip() + r' bootid=%s %s ' % (UUID, bootopt) for regex in remove_regexes: line = regex.sub(' ', line)