Fix nextcloud Desktop account and first Version of install script #15

Merged
obel1x merged 14 commits from devel into main 2026-04-27 18:56:36 +02:00
Showing only changes of commit 5c2182a1c9 - Show all commits
+3 -2
View File
@@ -377,14 +377,15 @@ if [[ "$MODE" == "shrink" ]]; then
fi
info "Shrinking partition $S_PNUM to ${NEW_END} MiB in partition table..."
parted -s "$S_DISK" resizepart "$S_PNUM" "${NEW_END}MiB" \
# Use printf instead of -s so parted's "partition is busy" confirmation is answered Yes
printf 'Yes\n' | parted "$S_DISK" resizepart "$S_PNUM" "${NEW_END}MiB" \
|| die "parted resizepart failed."
fi
# ── Create OEMDRV partition ───────────────────────────────────────────────────
info "Creating new OEMDRV partition (${OEMDRV_START}${OEMDRV_END} MiB) on $WORK_DISK..."
parted -s "$WORK_DISK" mkpart primary btrfs "${OEMDRV_START}MiB" "${OEMDRV_END}MiB" \
printf 'Yes\n' | parted "$WORK_DISK" mkpart primary btrfs "${OEMDRV_START}MiB" "${OEMDRV_END}MiB" \
|| die "parted mkpart failed. Check that the target area is free space on $WORK_DISK."
partprobe "$WORK_DISK"