summaryrefslogtreecommitdiff
path: root/.apkfoundry/master/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to '.apkfoundry/master/bootstrap')
-rwxr-xr-x.apkfoundry/master/bootstrap18
1 files changed, 18 insertions, 0 deletions
diff --git a/.apkfoundry/master/bootstrap b/.apkfoundry/master/bootstrap
new file mode 100755
index 000000000..f108ea782
--- /dev/null
+++ b/.apkfoundry/master/bootstrap
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+# vi:noet
+. "$AF_LIBEXEC/af-functions"
+
+"${0%/*}/refresh"
+
+# If the hosts(5) and/or resolv.conf(5) are unmodified, apk will try to
+# overwrite them even though they are read-only. So we work around it
+# using symlinks.
+ln -srf /af/config/host/hosts /etc/hosts
+ln -srf /af/config/host/resolv.conf /etc/resolv.conf
+
+ln -srf /usr/share/zoneinfo/UTC /etc/localtime
+
+apk upgrade -Ual
+
+af_mkuser
+af_userconf