Skip to content

Commit c830f6d

Browse files
committed
Avoid some command issues
1 parent 0aca753 commit c830f6d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

common.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ pre_setup() {
5656

5757
msg "Growing partition"
5858
# easiest way of growing a partition is to re-create it
59-
sudo partx -a "/dev/${lodev}"
60-
sudo partx -d "/dev/${lodev}"
59+
sudo partx -a "/dev/${lodev}" || true
60+
sudo partx -d "/dev/${lodev}" || true
6161
printf "o\nn\np\n1\n\n\na\nw\n" | sudo fdisk "/dev/${lodev}" > /dev/null || true
6262
sudo partx -a "/dev/${lodev}"
6363

mount.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fi
1616

1717
if [ ! -e "$file" ]; then
1818
msg2 "Preparing disk image file"
19-
fallocate -l 1.2G "$file"
19+
fallocate -l 1.5G "$file"
2020
printf "o\nn\np\n1\n\n\na\nw\n" | fdisk "$file" > /dev/null
2121
new=1
2222
fi

0 commit comments

Comments
 (0)