mirror of
https://github.com/brain-hackers/brain-config.git
synced 2026-10-15 02:38:43 +09:00
init_resize.sh: Fix for distributor images
This commit is contained in:
1 parent
750dde158a
commit
d6b4e8d720
2 files changed
+2
-1
No files matched your search
@@ -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