wok diff slitaz-loram-cdrom/stuff/loram.rootfs @ rev 850
Slitaz-loram-cdrom: fix squashfs case
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 20 22:11:39 2008 +0000 (2008-05-20) |
parents | d140ad412816 |
children | 5f88af4f7f75 |
line diff
1.1 --- a/slitaz-loram-cdrom/stuff/loram.rootfs Sat May 17 12:03:15 2008 +0000 1.2 +++ b/slitaz-loram-cdrom/stuff/loram.rootfs Tue May 20 22:11:39 2008 +0000 1.3 @@ -45,39 +45,41 @@ 1.4 [ "$usr" = "usr" ] || mv $usr usr 1.5 ln -s /cdrom/usr $usr 1.6 fi 1.7 -for ii in *; do 1.8 - case "$ii" in 1.9 - usr|boot) continue;; 1.10 - mnt|media|sys|proc|cdrom) mkdir ../rootcd/$ii;; 1.11 - *) cp -a $ii ../rootcd/$ii;; 1.12 - esac 1.13 -done 1.14 -for ii in keymap.conf locale.conf resolv.conf TZ motd; do 1.15 - ln -s /tmp/$ii ../rootcd/etc 1.16 -done 1.17 -for ii in log run lock; do 1.18 - mv ../rootcd/var/$ii ../rootcd/var/$ii.ORG 1.19 - ln -s /tmp/$ii ../rootcd/var 1.20 -done 1.21 -mv ../rootcd/root ../rootcd/root.ORG 1.22 -ln -s /tmp ../rootcd/root 1.23 -ln -s / ../rootcd/media/cdrom 1.24 -mkdir ../rootcd/mnt/target 1.25 -sed -i 's/CLEAN_UP_SYSTEM="yes"/CLEAN_UP_SYSTEM="no"/' ../rootcd/etc/rcS.conf 1.26 -sed -i 's/RUN_DAEMONS=.*/RUN_DAEMONS=""/' ../rootcd/etc/rcS.conf 1.27 -for ii in ../rootcd/boot/isolinux/*.cfg; do 1.28 - cat $ii | awk '{ print } /append/ { printf "label loram\n\tkernel /boot/bzImage\n\tappend ro sound=noconf screen=text %s %s %s\n",$5,$6,$7 }' > $ii.tmp 1.29 - mv -f $ii.tmp $ii 1.30 -done 1.31 -cat >> ../rootcd/boot/isolinux/enopts.txt <<EOT 1.32 +if [ -d ../rootcd/usr/lib ]; then 1.33 + for ii in *; do 1.34 + case "$ii" in 1.35 + usr|boot) continue;; 1.36 + mnt|media|sys|proc|cdrom) mkdir ../rootcd/$ii;; 1.37 + *) cp -a $ii ../rootcd/$ii;; 1.38 + esac 1.39 + done 1.40 + for ii in keymap.conf locale.conf resolv.conf TZ motd; do 1.41 + ln -s /tmp/$ii ../rootcd/etc 1.42 + done 1.43 + for ii in log run lock; do 1.44 + mv ../rootcd/var/$ii ../rootcd/var/$ii.ORG 1.45 + ln -s /tmp/$ii ../rootcd/var 1.46 + done 1.47 + mv ../rootcd/root ../rootcd/root.ORG 1.48 + ln -s /tmp ../rootcd/root 1.49 + ln -s / ../rootcd/media/cdrom 1.50 + mkdir ../rootcd/mnt/target 1.51 + sed -i 's/CLEAN_UP_SYSTEM="yes"/CLEAN_UP_SYSTEM="no"/' ../rootcd/etc/rcS.conf 1.52 + sed -i 's/RUN_DAEMONS=.*/RUN_DAEMONS=""/' ../rootcd/etc/rcS.conf 1.53 + for ii in ../rootcd/boot/isolinux/*.cfg; do 1.54 + cat $ii | awk '{ print } /append/ { printf "label loram\n\tkernel /boot/bzImage\n\tappend ro sound=noconf screen=text %s %s %s\n",$5,$6,$7 }' > $ii.tmp 1.55 + mv -f $ii.tmp $ii 1.56 + done 1.57 + cat >> ../rootcd/boot/isolinux/enopts.txt <<EOT 1.58 With few RAM, you can use loram entry with the cdrom device; example: 1.59 boot: loram root=/dev/hdc 1.60 EOT 1.61 -cat >> ../rootcd/boot/isolinux/options.txt <<EOT 1.62 + cat >> ../rootcd/boot/isolinux/options.txt <<EOT 1.63 Avec peu de RAM, utilisez l'entrée loram en précisant le cdrom, exemple: 1.64 boot: loram root=/dev/hdc 1.65 EOT 1.66 -for ii in bin/vcsa2txt bin/awk bin/script bin/cut bin/readlink ; do 1.67 +fi 1.68 +for ii in bin/vcsa2txt bin/awk bin/script bin/cut bin/readlink bin/du bin/free; do 1.69 ln -s busybox $ii 1.70 done 1.71 mkdir cdrom