mirror of
https://github.com/brain-hackers/brain-config.git
synced 2025-10-15 04:38:41 +09:00
init_resize.sh: Fix for distributor images
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user