Skip to content

Commit

Permalink
Merge pull request #22 from Shubhamvis98/merge
Browse files Browse the repository at this point in the history
Merge
  • Loading branch information
Shubhamvis98 authored Oct 8, 2023
2 parents 353cac2 + 2844ae1 commit 63ac01d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions funcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ mkimg() {
[ -e $IMG ] && echo -e '[*]$IMG already exists. So, skipping mkimg' && return
echo "[*]Creating blank Image: ${IMG} of size ${SIZE}GB..."
dd if=/dev/zero of=$IMG bs=1M count=$((1024*$SIZE)) status=progress
echo '[*]Partitioning Image: 256MB BOOT and rest ROOTFS...'
echo '[*]Partitioning Image: 512MB BOOT and rest ROOTFS...'
sleep 1
cat << 'EOF' | sfdisk $IMG
label: gpt
device: test.img
unit: sectors
first-lba: 2048
sector-size: 512
1 : start=2048, size=524288, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B
2 : start=526336, type=B921B045-1DF0-41C3-AF44-4C6F280D3FAE
1 : start=2048, size=1048576, type=C12A7328-F81F-11D2-BA4B-00A0C93EC93B
2 : start=1050624, type=B921B045-1DF0-41C3-AF44-4C6F280D3FAE
EOF
echo '[*]Formatting Partitions...'
losetup $LOOP -P $IMG
Expand Down

0 comments on commit 63ac01d

Please sign in to comment.