ref: f009e649d9754e69423da018c8bffca1bac5ee90
parent: 94d5efc611cd6cad5b251cf29991e3894b95e14c
author: Natanael Copa <ncopa@alpinelinux.org>
date: Thu Jun 11 09:06:09 CDT 2009
init: create /dev/null and /tmp early so install scripts have those When there exist a config the apk db will not be initalized and thus will not /tmp or /dev/null be in the new sysroot when installing the packages. By running apk add --initdb before unpacking the config we have apk to create the missing stuff.
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -266,6 +266,9 @@
if [ -f "$ovl" ]; then
ebegin "Loading user settings from $ovl"
+ # create apk db and needed /dev/null and /tmp first
+ apk add --root $sysroot --initdb --quiet
+
unpack_apkovl "$ovl" $sysroot
eend $? $errstr
# hack, incase /root/.ssh was included in apkovl