wok-6.x rev 1096

slitaz-loram-cdrom: some fixes for loram entry
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 17 16:57:31 2008 +0000 (2008-07-17)
parents ca4331756d20
children 003320640bc6
files slitaz-loram-cdrom/stuff/loram.rootfs
line diff
     1.1 --- a/slitaz-loram-cdrom/stuff/loram.rootfs	Thu Jul 17 13:55:58 2008 +0200
     1.2 +++ b/slitaz-loram-cdrom/stuff/loram.rootfs	Thu Jul 17 16:57:31 2008 +0000
     1.3 @@ -52,20 +52,26 @@
     1.4  if [ -d ../rootcd/usr/lib ]; then
     1.5    for ii in *; do
     1.6      case "$ii" in
     1.7 -    usr|boot) continue;;
     1.8 +    usr|boot|home) continue;;
     1.9      mnt|media|sys|proc|cdrom) mkdir ../rootcd/$ii;;
    1.10      *) cp -a $ii ../rootcd/$ii;;
    1.11      esac
    1.12    done
    1.13 +  for ii in media/*; do
    1.14 +    [ "$ii" = "media/cdrom" ] || mkdir ../rootcd/$ii
    1.15 +  done
    1.16    for ii in keymap.conf locale.conf resolv.conf TZ motd; do
    1.17 -    ln -s /tmp/$ii ../rootcd/etc
    1.18 +    rm -f ../rootcd/etc/$ii
    1.19 +    ln -s /tmp/$ii ../rootcd/etc/$ii
    1.20    done
    1.21 +  ln -s /tmp/detected-modules /var/lib/detected-modules
    1.22    for ii in log run lock; do
    1.23      mv ../rootcd/var/$ii ../rootcd/var/$ii.ORG
    1.24 -    ln -s /tmp/$ii ../rootcd/var
    1.25 +    ln -s /tmp ../rootcd/var/$ii
    1.26    done
    1.27    mv ../rootcd/root ../rootcd/root.ORG
    1.28    ln -s /tmp ../rootcd/root
    1.29 +  ln -s /tmp ../rootcd/home
    1.30    ln -s / ../rootcd/media/cdrom
    1.31    mkdir ../rootcd/mnt/target
    1.32    sed -i 's/CLEAN_UP_SYSTEM="yes"/CLEAN_UP_SYSTEM="no"/' ../rootcd/etc/rcS.conf