Skip to content

Commit

Permalink
supress fdisk warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-Riek committed Oct 28, 2023
1 parent 1bd3764 commit 8891131
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions scripts/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,20 +139,16 @@ mklabel gpt \
mkpart primary fat16 16MiB 528MiB \
mkpart primary ext4 528MiB 100%

set +e

# Create partitions
fdisk "${disk}" << EOF
t
1
BC13C2FF-59E6-4262-A352-B275FD6F7172
t
2
0FC63DAF-8483-4772-8E79-3D69D8477DE4
w
EOF

set -eE
{
echo "t"
echo "1"
echo "BC13C2FF-59E6-4262-A352-B275FD6F7172"
echo "t"
echo "2"
echo "0FC63DAF-8483-4772-8E79-3D69D8477DE4"
echo "w"
} | fdisk "${disk}" &> /dev/null || true

partprobe "${disk}"

Expand Down

0 comments on commit 8891131

Please sign in to comment.