diff --git a/Makefile b/Makefile index 3ff696a..f8bada5 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ $(IMAGE_FILE): rootfs/boot/kernel rootfs/initrd.tar @echo "creating the iso image" @dd if=/dev/zero of=$(IMAGE_FILE) bs=512 count=32768 &&\ - printf "n\np\n1\n\n\na\nw\n" | fdisk $(IMAGE_FILE) &&\ + sfdisk -q $(IMAGE_FILE) < honey-os.sfdisk &&\ loop0=$$(sudo losetup -f) &&\ sudo losetup $$loop0 $(IMAGE_FILE) &&\ loop1=$$(sudo losetup -f) &&\ diff --git a/Makefile b/Makefile index 3ff696a..f8bada5 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ $(IMAGE_FILE): rootfs/boot/kernel rootfs/initrd.tar @echo "creating the iso image" @dd if=/dev/zero of=$(IMAGE_FILE) bs=512 count=32768 &&\ - printf "n\np\n1\n\n\na\nw\n" | fdisk $(IMAGE_FILE) &&\ + sfdisk -q $(IMAGE_FILE) < honey-os.sfdisk &&\ loop0=$$(sudo losetup -f) &&\ sudo losetup $$loop0 $(IMAGE_FILE) &&\ loop1=$$(sudo losetup -f) &&\ diff --git a/honey-os.sfdisk b/honey-os.sfdisk new file mode 100644 index 0000000..557c31e --- /dev/null +++ b/honey-os.sfdisk @@ -0,0 +1,6 @@ +label: dos +label-id: 0x206906c4 +device: /run/user/1000/honey-os.img +unit: sectors +sector-size: 512 +/run/user/1000/honey-os.img : start= 2048, size= 30720, type=83, bootable