summaryrefslogtreecommitdiff
path: root/setup-alpine.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2022-11-11 16:47:09 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2022-11-11 16:50:46 +0100
commitd91782eafb8122fbecd73e77ad945fa5930b7bd8 (patch)
treeeb1d8e50bb94762471a5745e448478db8d897258 /setup-alpine.in
parentbc7aeab868bf4d94dde2ff5d6eb97daede5975b9 (diff)
downloadalpine-conf-d91782eafb8122fbecd73e77ad945fa5930b7bd8.zip
setup-disk: add -w option for writing selected diskmode
Use an option to setup-disk to write the selected diskmode instead of using an undocumented /tmp/alpine-install-diskmode.out Adjust setup-alpine to use this, and make sure that we write the diskmode when installing to a mounted root. fixes https://gitlab.alpinelinux.org/alpine/alpine-conf/-/issues/10444
Diffstat (limited to 'setup-alpine.in')
-rw-r--r--setup-alpine.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-alpine.in b/setup-alpine.in
index 705056b..fb8a76e 100644
--- a/setup-alpine.in
+++ b/setup-alpine.in
@@ -257,7 +257,7 @@ if [ "$rc_sys" = "LXC" ]; then
fi
DEFAULT_DISK=none \
- setup-disk -q ${DISKOPTS} || exit
+ setup-disk -w /tmp/alpine-install-diskmode.out -q ${DISKOPTS} || exit
diskmode=$(cat /tmp/alpine-install-diskmode.out 2>/dev/null)