Commit 2b14ec8a authored by Natanael Copa's avatar Natanael Copa

setup-alpine: dont display error message if disk is 'none'

parent edc1ac1a
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment