From: Jose V Beneyto Date: Thu, 31 May 2012 16:16:49 +0000 (+0000) Subject: Fixed rc script to install modules and pkgutils X-Git-Url: http://gitweb/?p=initrd.git;a=commitdiff_plain;h=6cc6cf55f96cf965947d7c0ef9721689fffd4fdb Fixed rc script to install modules and pkgutils --- diff --git a/filesystem/rc b/filesystem/rc index f7b7a6f..b04fc16 100755 --- a/filesystem/rc +++ b/filesystem/rc @@ -79,15 +79,16 @@ find_and_mount_media() { echo else # configure modules - MODULES_DIR="`find /media/crux/kernel -type d -name 'modules-*'`" - if [ ! -z "$MODULES_DIR" ]; then - ln -sf $MODULES_DIR/lib/modules /lib + MODULES="`find /media/crux/kernel -type d -name 'modules-*.tar.*'`" + if [ ! -z "$MODULES" ]; then + tar -C /tmp -xf $MODULES + cd /lib && ln -s /lib/* . depmod fi # configure pkgutils - PKGUTILS="`find /media/crux/core -type f -name 'pkgutils#*.pkg.tar.gz'`" + PKGUTILS="`find /media/crux/core -type f -name 'pkgutils#*.pkg.tar.*'`" if [ ! -z "$PKGUTILS" ]; then - tar -C /tmp -xzf $PKGUTILS + tar -C /tmp -xf $PKGUTILS cd /usr/bin && ln -s /tmp/usr/bin/* . cd /etc && ln -s /tmp/etc/* . fi