diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2022-11-11 16:47:09 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2022-11-11 16:50:46 +0100 |
commit | d91782eafb8122fbecd73e77ad945fa5930b7bd8 (patch) | |
tree | eb1d8e50bb94762471a5745e448478db8d897258 /setup-alpine.in | |
parent | bc7aeab868bf4d94dde2ff5d6eb97daede5975b9 (diff) | |
download | alpine-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.in | 2 |
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) |