diff options
Diffstat (limited to 'setup-alpine.in')
-rwxr-xr-x | setup-alpine.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/setup-alpine.in b/setup-alpine.in index 82f09bc..38113e3 100755 --- a/setup-alpine.in +++ b/setup-alpine.in @@ -158,7 +158,11 @@ $PREFIX/sbin/setup-ntp ${NTPOPTS} DEFAULT_DISK=none \ $PREFIX/sbin/setup-disk -q ${DISKOPTS} -if [ "`cat /tmp/alpine-install-diskmode.out`" != "sys" ]; then +diskmode=$(cat /tmp/alpine-install-diskmode.out 2>/dev/null) + +# setup lbu and apk cache unless installed sys on disk +if [ "$diskmode" != "sys" ]; then $PREFIX/sbin/setup-lbu ${LBUOPTS} $PREFIX/sbin/setup-apkcache ${APKCACHEOPTS} fi + |