1
0
mirror of https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git synced 2025-12-15 11:22:43 +03:00

Make sure busybox's mountpoint is used

util-linux's busybox does not support -n which prevents root partition expansion.
This commit is contained in:
Jake Buchholz 2020-11-21 18:21:26 -08:00
parent c1d9d27785
commit 9feefd2a9f

View File

@ -71,7 +71,7 @@ _run_userdata() {
}
_resize_root_partition() {
local mountpoint="$(mountpoint -n / | cut -d' ' -f1)"
local mountpoint="$(busybox mountpoint -n / | cut -d' ' -f1)"
# mountpoint is the second partition...
if echo "$mountpoint" | cut -d' ' -f1 | grep -qE '/(nvme\d+n\d+p|xvd[a-z]+)2$'; then
@ -82,7 +82,7 @@ _resize_root_partition() {
partx -u "$volume"
fi
einfo "Resizing..."
resize2fs "$(mountpoint -n / | cut -d' ' -f1)"
resize2fs "$mountpoint"
}
_disable_password() {