aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-06-11 14:06:09 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-06-11 14:06:09 +0000
commitf009e649d9754e69423da018c8bffca1bac5ee90 (patch)
tree05eb7fb81b76a7271675c7800e22ca9e6fcbd4ad
parent94d5efc611cd6cad5b251cf29991e3894b95e14c (diff)
downloadmkinitfs-f009e649d9754e69423da018c8bffca1bac5ee90.tar.bz2
mkinitfs-f009e649d9754e69423da018c8bffca1bac5ee90.tar.xz
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.
-rwxr-xr-xinitramfs-init.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/initramfs-init.in b/initramfs-init.in
index 2df7859..f49401f 100755
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -266,6 +266,9 @@ fi
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