init_resize.sh: Fix for distributor images

This commit is contained in:
Serge Schneider 2022-02-01 16:24:43 +00:00
parent 750dde158a
commit d6b4e8d720
2 changed files with 2 additions and 1 deletions

1
debian/changelog vendored
View File

@ -1,6 +1,7 @@
raspi-config (20220201) UNRELEASED; urgency=medium raspi-config (20220201) UNRELEASED; urgency=medium
* pass -f flag to rm * pass -f flag to rm
* Fix init_resize.sh on Bullseye NOOBS images
-- Serge Schneider <serge@raspberrypi.com> Tue, 01 Feb 2022 16:02:27 +0000 -- Serge Schneider <serge@raspberrypi.com> Tue, 01 Feb 2022 16:02:27 +0000

View File

@ -161,7 +161,7 @@ main () {
fi fi
if [ "$NOOBS" = "1" ]; then 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" FAIL_REASON="Extended partition resize failed"
return 1 return 1
fi fi