From a87b3f64882e41a1206dff621a61adca95d8a792 Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Wed, 17 Dec 2025 01:33:15 -0700 Subject: [PATCH] added pi_create_from_img --- customscripts/pi_create_image_from_img | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/customscripts/pi_create_image_from_img b/customscripts/pi_create_image_from_img index 212f1ac..2bd489d 100644 --- a/customscripts/pi_create_image_from_img +++ b/customscripts/pi_create_image_from_img @@ -29,11 +29,15 @@ sleepfive () { } echo -e "\nsettings:\n\tmountpoint: $mountpoint\n\timgpath: $imgpath\n\timgdir: $imgdir\n\txzpath: $xzpath\n\trenamepath: $renamepath\n" + +echo "changing directory to $imgdir" cd "$imgdir" echo "mapping $imgpath" sudo kpartx -av "$imgpath" +sleepfive + echo "mounting $imgpath" sudo mount "$device" "$mountpoint"