Skip to content

Commit

Permalink
fix script execution in bash
Browse files Browse the repository at this point in the history
  • Loading branch information
b3nn0 committed Sep 22, 2024
1 parent 82bc9cc commit 4812d1e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions image/mk_europe_edition64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,9 @@ wget -c $BASE_IMAGE_URL || die "Download failed"
unxz -k $ZIPNAME || die "Extracting image failed"

# Check where in the image the root partition begins:
ptable=$(parted $IMGNAME unit B p)
bootoffset=$(echo $ptable | grep fat32 | awk -F ' ' '{print $2}')
bootoffset=$(parted $IMGNAME unit B p | grep fat32 | awk -F ' ' '{print $2}')
bootoffset=${bootoffset::-1}
partoffset=$(echo $ptable | grep ext4 | awk -F ' ' '{print $2}')
partoffset=$(parted $IMGNAME unit B p | grep ext4 | awk -F ' ' '{print $2}')
partoffset=${partoffset::-1}

# Original image partition is too small to hold our stuff.. resize it to 2.5gb
Expand Down

0 comments on commit 4812d1e

Please sign in to comment.