From d6b4e8d72017f36a1238f292d75cc3edf0c75b60 Mon Sep 17 00:00:00 2001 From: Serge Schneider Date: Tue, 1 Feb 2022 16:24:43 +0000 Subject: [PATCH] init_resize.sh: Fix for distributor images --- debian/changelog | 1 + usr/lib/raspi-config/init_resize.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 0a705db..b70f912 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ raspi-config (20220201) UNRELEASED; urgency=medium * pass -f flag to rm + * Fix init_resize.sh on Bullseye NOOBS images -- Serge Schneider Tue, 01 Feb 2022 16:02:27 +0000 diff --git a/usr/lib/raspi-config/init_resize.sh b/usr/lib/raspi-config/init_resize.sh index 7551fdc..f3c654b 100755 --- a/usr/lib/raspi-config/init_resize.sh +++ b/usr/lib/raspi-config/init_resize.sh @@ -161,7 +161,7 @@ main () { fi if [ "$NOOBS" = "1" ]; then - if ! parted -m "$ROOT_DEV" u s resizepart "$EXT_PART_NUM" yes "$TARGET_END"; then + if ! printf "resizepart %s\nyes\n%ss\n" "$EXT_PART_NUM" "$TARGET_END" | parted "$ROOT_DEV" ---pretend-input-tty; then FAIL_REASON="Extended partition resize failed" return 1 fi