mirror of
https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git
synced 2025-12-16 03:42:44 +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:
parent
c1d9d27785
commit
9feefd2a9f
@ -71,7 +71,7 @@ _run_userdata() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_resize_root_partition() {
|
_resize_root_partition() {
|
||||||
local mountpoint="$(mountpoint -n / | cut -d' ' -f1)"
|
local mountpoint="$(busybox mountpoint -n / | cut -d' ' -f1)"
|
||||||
|
|
||||||
# mountpoint is the second partition...
|
# mountpoint is the second partition...
|
||||||
if echo "$mountpoint" | cut -d' ' -f1 | grep -qE '/(nvme\d+n\d+p|xvd[a-z]+)2$'; then
|
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"
|
partx -u "$volume"
|
||||||
fi
|
fi
|
||||||
einfo "Resizing..."
|
einfo "Resizing..."
|
||||||
resize2fs "$(mountpoint -n / | cut -d' ' -f1)"
|
resize2fs "$mountpoint"
|
||||||
}
|
}
|
||||||
|
|
||||||
_disable_password() {
|
_disable_password() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user