diff --git a/Rocky8_Rpi4_mkimage.sh b/Rocky8_Rpi4_mkimage.sh index 85069b9..79e4467 100755 --- a/Rocky8_Rpi4_mkimage.sh +++ b/Rocky8_Rpi4_mkimage.sh @@ -1,12 +1,12 @@ #!/bin/bash -OUTDIR=$HOME/RockyRpi_image +OUTDIR=$1 mkdir -p ${OUTDIR} -time appliance-creator -v -c ./Rocky8_Rpi4.ks -n RockyRpi --version=20210626 --release=1 --vmem=1024 --no-compress -o ${OUTDIR} +appliance-creator -v -c ./Rocky8_Rpi4.ks -n RockyRpi --version=20210626 --release=1 --vmem=1024 --no-compress -o ${OUTDIR} # Post appliance-creator sequence to @@ -15,7 +15,7 @@ mkdir -p /mnt/tmp # find the image we just made, and make it available on /dev/maper/loop* devices: image=`find ${OUTDIR} -iname *.raw | head -1` -echo "Getting UUID and inserting to boot from ${image} .... +echo "Getting UUID and inserting to boot from ${image} ...." kpartx -av ${image} # Get the UUID of our root partition (the ext4 one) (UUID=e3984938429 , strip out quotes("))