X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2usb;h=3f58c8398f67dda3c7478260c19b315750f835cf;hp=5457a6023ee8c7d2ba7b7b780452876932ea7279;hb=bb5598e02915b0a2ca484c2ed6ef6db1ecaa6885;hpb=3a15e09b508fc177ca22b9f5d0016d0298e48193 diff --git a/grml2usb b/grml2usb index 5457a60..3f58c83 100755 --- a/grml2usb +++ b/grml2usb @@ -1304,6 +1304,14 @@ def handle_grub1_config(grml_flavour, install_partition, grub_target, bootopt): 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