slitaz-modular rev 100
linuxrc: Fixed mirror option so it can be used for resync with folders on system.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu May 12 18:10:08 2011 +0000 (2011-05-12) |
parents | 0523f5b458e0 |
children | 036e0267ec00 |
files | initramfs/linuxrc |
line diff
1.1 --- a/initramfs/linuxrc Thu May 12 18:05:38 2011 +0000 1.2 +++ b/initramfs/linuxrc Thu May 12 18:10:08 2011 +0000 1.3 @@ -281,14 +281,20 @@ 1.4 MIRRORCMD=$(cmdline_value mirror) 1.5 if [ "$MIRRORCMD" != "" ]; then 1.6 MIRRORCMD=$(find_in_computer $MIRRORCMD) 1.7 - if [ $FINDISOVAR ]; then 1.8 - mount_device $MIRRORCMD $FINDISOMNT/$MIRROR rbind 1.9 - else 1.10 - mount_device $MIRRORCMD $(dirname $DATA)/$MIRROR rbind 1.11 + if [ -d $MIRRORCMD ]; then 1.12 + mkdir -p $MEMORY/$MIRROR 1.13 + mount_device $MIRRORCMD $MEMORY/$MIRROR #rbind 1.14 + #mount -n -o bind $MIRRORCMD $FINDISOMNT/$MIRROR 1.15 fi 1.16 fi 1.17 1.18 -if [ -d $(dirname $DATA)/$MIRROR ]; then 1.19 +if [ -d $MEMORY/$MIRROR ]; then 1.20 + echolog "Setup repo for mirror iso..." 1.21 + mount -n -o remount,add:1:/$MEMORY/$MIRROR=ro aufs $UNION 1.22 +elif [ -d $FINDISOMNT/$MIRROR ]; then 1.23 + echolog "Setup repo for mirror iso..." 1.24 + mount -n -o remount,add:1:/$FINDISOMNT/$MIRROR=ro aufs $UNION 1.25 +elif [ -d $(dirname $DATA)/$MIRROR ]; then 1.26 echolog "Setup repo for mirror iso..." 1.27 mount -n -o remount,add:1:/$(dirname $DATA)/$MIRROR=ro aufs $UNION 1.28 fi