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

Merge pull request #17 from mcrute/fix/ensure-busybox-mountpoint

Make sure busybox's mountpoint is used
This commit is contained in:
tomalok 2020-11-21 18:25:28 -08:00 committed by GitHub
commit 6946395ed8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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() {