wok-6.x rev 13160

slitaz-boot-scripts: use chroot in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 25 18:28:25 2012 +0200 (2012-07-25)
parents 0b73c72d760b
children 3ebbba73bb3f
files get-virtualbox/stuff/get-virtualbox slitaz-boot-scripts/receipt
line diff
     1.1 --- a/get-virtualbox/stuff/get-virtualbox	Wed Jul 25 09:15:48 2012 +0000
     1.2 +++ b/get-virtualbox/stuff/get-virtualbox	Wed Jul 25 18:28:25 2012 +0200
     1.3 @@ -99,7 +99,7 @@
     1.4      chroot "\$1/" depmod -a $(uname -r)
     1.5      [ -n "\$1" ] || for i in $MODULE_LIST; do modprobe \$i ; done
     1.6      grep -qs vboxdrv \$1/etc/rcS.conf ||
     1.7 -    sed -i 's/LOAD_MODULES="/&$MODULE_LIST /' \$1/etc/rcS.conf
     1.8 +    sed -i 's/^LOAD_MODULES="/&$MODULE_LIST /' \$1/etc/rcS.conf
     1.9      
    1.10      # Add vboxusers group
    1.11      grep -qs ^vboxusers \$1/etc/group ||
     2.1 --- a/slitaz-boot-scripts/receipt	Wed Jul 25 09:15:48 2012 +0000
     2.2 +++ b/slitaz-boot-scripts/receipt	Wed Jul 25 18:28:25 2012 +0200
     2.3 @@ -40,5 +40,5 @@
     2.4  #
     2.5  post_install()
     2.6  {
     2.7 - 	/usr/bin/rcSconf up
     2.8 + 	chroot $1/ /usr/bin/rcSconf up
     2.9  }