diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-28 14:54:31 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-28 14:54:31 +0000 |
commit | 5e4b955f60399839a4e08c5c77156031906821d7 (patch) | |
tree | c92a36f2261ba4ca8be438ce7760fb7fbf5ef946 /initramfs-init | |
parent | 7b27ce7bc4094ba5c8dda84d959fbd15cf7e49a9 (diff) | |
download | abuild-5e4b955f60399839a4e08c5c77156031906821d7.tar.gz abuild-5e4b955f60399839a4e08c5c77156031906821d7.tar.bz2 abuild-5e4b955f60399839a4e08c5c77156031906821d7.tar.xz abuild-5e4b955f60399839a4e08c5c77156031906821d7.zip |
initramfs-init: mount new root before apkovl is extracted
also create the symlink for kernel modules
Diffstat (limited to 'initramfs-init')
-rwxr-xr-x | initramfs-init | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/initramfs-init b/initramfs-init index 56c03e1..d5f7053 100755 --- a/initramfs-init +++ b/initramfs-init @@ -132,6 +132,8 @@ ebegin "Loading hardware drivers" scan_drivers eend 0 +mount -t tmpfs -o size=50M tmpfs $NEWROOT + # look for apkovl for i in usb floppy cdrom; do mount /media/$i 2>/dev/null || continue @@ -150,7 +152,6 @@ fi # install new root ebegin "Installing packages to root filesystem" -mount -t tmpfs -o size=50M tmpfs $NEWROOT apk add --root /newroot --repository /media/cdrom/apks \ --initdb --quiet --progress $pkgs eend $? @@ -164,6 +165,8 @@ cat /proc/mounts | while read DEV DIR TYPE OPTS ; do done sync +ln -sf /.modloop/modules $NEWROOT/lib/modules + if [ -x $NEWROOT/sbin/init ]; then exec /bin/busybox switch_root $NEWROOT /sbin/init $KOPT_init_args fi |