This commit is contained in:
j3d1 2020-01-29 00:09:18 +01:00
parent 3f12f9f8ad
commit 3248135caa

View file

@ -4,7 +4,7 @@ function first_stage(){
echo foo first_stage
echo creating image file
dd if=/dev/zero of=/root/disk.img bs=1M count=512
losetup -f /root/disk.img
losetup --show -f /root/disk.img
(
echo o # Create a new empty DOS partition table
echo n # Add a new partition
@ -15,7 +15,7 @@ function first_stage(){
echo w # Write changes
) | fdisk /dev/loop0
losetup -d /dev/loop0
losetup -P /root/disk.img /dev/loop0
losetup --show -fP /root/disk.img
lsblk
echo mount divice to $TARGET