* Support the directory where the grml2usb script resides as base
directory so /usr/share/grml2usb isn't necessarily needed.
Thanks for the patch to Alexander 'Leo' Bergolth <leo@strike.wu.ac.at>!
+ * Make sure grub.conf isn't a symlink but a plain file instead,
+ otherwise it will break on FAT16 filesystems. This works around
+ grub-install of (at least) Fedora 10.
+ Thanks for the patch to Alexander 'Leo' Bergolth <leo@strike.wu.ac.at>!
- -- Michael Prokop <mika@grml.org> Mon, 31 Aug 2009 17:38:06 +0200
+ -- Michael Prokop <mika@grml.org> Mon, 31 Aug 2009 17:54:59 +0200
grml2usb (0.9.9) unstable; urgency=low
grub1_config_file.write(generate_flavour_specific_grub1_config(grml_flavour, install_partition, bootopt))
grub1_config_file.close()
+ # make sure grub.conf isn't a symlink but a plain file instead,
+ # otherwise it will break on FAT16 filesystems
+ # this works around grub-install of (at least) Fedora 10
+ if os.path.isfile(grub1_cfg):
+ grubconf = grub_target + 'grub.conf'
+ if not os.path.islink(grubconf):
+ import shutil
+ shutil.copyfile(grub1_cfg, grub_target + 'grub.conf')
def handle_grub2_config(grml_flavour, grub_target, bootopt):
"""Main handler for generating grub2 configuration