diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-09-13 14:41:53 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-09-13 14:54:54 +0000 |
commit | 2b14ec8a7101d9f6cd02d45fc4e6c211a381e669 (patch) | |
tree | 16042663dc2abb3b77cc289f27b01bb8803eb868 | |
parent | edc1ac1a289eab0c5ab5f0a540a00e66c01bb422 (diff) | |
download | alpine-conf-2b14ec8a7101d9f6cd02d45fc4e6c211a381e669.zip |
setup-alpine: dont display error message if disk is 'none'
-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 + |