From 7058a53837e715cf3fc63ac628efc11934cc83df Mon Sep 17 00:00:00 2001
From: Natanael Copa <ncopa@alpinelinux.org>
Date: Thu, 15 Jan 2009 15:46:24 +0000
Subject: [PATCH] initramfs-init: use new apk option --initdb

---
 initramfs-init | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/initramfs-init b/initramfs-init
index 8996f23035a2..02444f870d95 100755
--- a/initramfs-init
+++ b/initramfs-init
@@ -152,8 +152,8 @@ fi
 # install new root
 ebegin "Installing packages to root filesystem"
 mount -t tmpfs -o size=50M tmpfs $NEWROOT
-apk create --root /newroot
-apk add --root /newroot --repository /media/cdrom/apks --quiet --progress $pkgs
+apk add --root /newroot --repository /media/cdrom/apks \
+	--initdb --quiet --progress $pkgs
 eend $?
 
 # switch over to new root
-- 
GitLab