1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

1-prep/templates/iiab-expand-rootfs: 'exit 1' if partition's not the last

This commit is contained in:
root 2022-03-15 11:47:09 -04:00
parent ee765e41d4
commit baab781977

View file

@ -27,7 +27,7 @@ if [ -f /.expand-rootfs ] || [ -f /.resize-rootfs ]; then
if [ $ROOT_PART_NUM -ne $LAST_PART_NUM ]; then
echo "ERROR: $ROOT_PART partition ($ROOT_PART_NUM) is not the last partition ($LAST_PART_NUM). Don't know how to expand."
return 0
exit 1
fi
# Expand partition