Skip to content

Commit

Permalink
Check for boot flag before possibly creating FAT16 on the partition
Browse files Browse the repository at this point in the history
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.

Closes: #30
  • Loading branch information
mika committed Jun 3, 2020
1 parent aed7d83 commit 83e35c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grml2usb
Expand Up @@ -1875,10 +1875,11 @@ def install_grml(mountpoint, device):
register_tmpfile(device_mountpoint)
remove_device_mountpoint = True
try:
check_for_fat(device)
if not options.skipbootflag:
check_boot_flag(device)

check_for_fat(device)

set_rw(device)
mount(device, device_mountpoint, ["-o", "utf8,iocharset=iso8859-1"])
except CriticalException:
Expand Down

0 comments on commit 83e35c2

Please sign in to comment.