setup-alpine does not cache apks after reboot
When installing alpine to usb, apk cache does not run after setup-alpine. Possible fix could be:
diff --git a/setup-alpine.in b/setup-alpine.in
index eb1c6a8..41854b3 100755
--- a/setup-alpine.in
+++ b/setup-alpine.in
@@ -197,5 +197,8 @@ diskmode=$(cat /tmp/alpine-install-diskmode.out 2>/dev/null)
if [ "$diskmode" != "sys" ]; then
$PREFIX/sbin/setup-lbu ${LBUOPTS}
$PREFIX/sbin/setup-apkcache ${APKCACHEOPTS}
+ if [ -L /etc/apk/cache ]; then
+ apk cache sync
+ fi
fi
(from redmine: issue id 1463, created on 2012-11-05, closed on 2012-11-07)
- Changesets:
- Revision e1a75a02 by Natanael Copa on 2012-11-05T19:39:43Z:
main/alpine-conf: upgrade to 2.12.0
fixes #1463
- Revision 8cf6b48e8e880cca6833cb6e5be576f600a64bb9 by Natanael Copa on 2012-11-05T20:28:54Z:
setup-alpine: sync apk cache after setup
ref #1463