diff --git a/roles/1-prep/templates/iiab-expand-rootfs b/roles/1-prep/templates/iiab-expand-rootfs index 90cdb9318..a1fd06772 100644 --- a/roles/1-prep/templates/iiab-expand-rootfs +++ b/roles/1-prep/templates/iiab-expand-rootfs @@ -33,7 +33,9 @@ if [ -f /.expand-rootfs ] || [ -f /.resize-rootfs ]; then # Expand partition growpart $ROOT_DEV $ROOT_PART_NUM || true # raspi-config instead uses fdisk. WARNING: growpart RC 2 is more severe than RC 1, and should possibly be handled separately in future? + rc=$? # Make Return Code visible, for 'bash -x' resize2fs $ROOT_PART + rc=$? # Make RC visible (as above) # 2022-03-15: Legacy code below worked with Raspberry Pi microSD cards # but *not* with USB boot drives, internal spinning disks/SSD's, etc.