From e859f5da13f17d0cf7a0127cc495cd4ac3d971d9 Mon Sep 17 00:00:00 2001 From: Elaina Claus Date: Sat, 21 Sep 2024 12:04:05 -0400 Subject: [PATCH] added -P option to losetup this fixes an issue that appeared on WSL2 recently(ish) --- scripts/create-disk.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/create-disk.sh b/scripts/create-disk.sh index 65b8b0f..eb56221 100755 --- a/scripts/create-disk.sh +++ b/scripts/create-disk.sh @@ -47,7 +47,7 @@ if [[ "$OSTYPE" == "linux-gnu"* ]]; then if [ -e $mbr_file ] && [ -e $vbr_file ]; then # get next loop device and mount it ld=$(losetup -f) - losetup -b 512 $ld disk.img + losetup -P -b 512 $ld disk.img # create a DOS disk, with 1 FAT32 partition that is bootable, part1 starts at sector 2048 sfdisk $ld < scripts/loop_setup.sfdisk