From 83e35c2bca68845f81fc370387175791817f0427 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 3 Jun 2020 13:38:48 +0200 Subject: [PATCH] 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. Closes: grml/grml2usb#30 --- grml2usb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/grml2usb b/grml2usb index fdc0cac..f676b50 100755 --- a/grml2usb +++ b/grml2usb @@ -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: