From 3248135caa9f2ac0fef3232f70d57e8fdb9153ae Mon Sep 17 00:00:00 2001 From: jedi Date: Wed, 29 Jan 2020 00:09:18 +0100 Subject: [PATCH] wip --- entry.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entry.sh b/entry.sh index 9fb867a..7ff1aa5 100755 --- a/entry.sh +++ b/entry.sh @@ -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