Check for boot flag before possibly creating FAT16 on the partition
authorDarshaka Pathirana <dpat@syn-net.org>
Wed, 3 Jun 2020 12:44:11 +0000 (14:44 +0200)
committerDarshaka Pathirana <dpat@syn-net.org>
Wed, 3 Jun 2020 12:46:50 +0000 (14:46 +0200)
commit8b59cb0b5c0cfaab6ea5f1ed29190d74726eb9b5
tree4c7b2fe48b552f7ed725ea661f351bc93240dc57
parentaed7d831e1c9616cfeb4a2206d9e18bf7c8be24b
Check for boot flag before possibly creating FAT16 on the partition

Checks should be performed before actually modifying the USB device,
if the user specified `--fat16` then the boot flag should be checked
*before* the FAT filesystem gets created.

check_for_fat(device) is called in handle_vfat(device) (if device is
present and not a directory and if option 'syslinux' (default) is set)
so it should be safe to remove check_for_fat(device) call in
install_grml().

The same applies to check_boot_flag() which should happen before
actually creating the FAT filesystem (in handle_vfat()).

Closes: grml/grml2usb#30
grml2usb