From c76bd2745d156b9052340a0d674022fb94f167ad Mon Sep 17 00:00:00 2001 From: A Holt Date: Sat, 24 Sep 2022 08:16:38 -0400 Subject: [PATCH] iiab-expand-rootfs: Make growpart & resize2fs RC visible to bash -x --- roles/1-prep/templates/iiab-expand-rootfs | 2 ++ 1 file changed, 2 insertions(+) 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.