slitaz-boot-scripts rev 202 3.3

Fix: home= user dir may already be moved (writfs)
author Christophe Lincoln <pankso@slitaz.org>
date Sun Mar 21 01:29:38 2010 +0100 (2010-03-21)
parents fcb91755f5fc
children 03602acc9831
files etc/init.d/bootopts.sh
line diff
     1.1 --- a/etc/init.d/bootopts.sh	Sun Mar 21 01:13:46 2010 +0100
     1.2 +++ b/etc/init.d/bootopts.sh	Sun Mar 21 01:29:38 2010 +0100
     1.3 @@ -103,7 +103,7 @@
     1.4  			fi
     1.5  			if [ -n "$DEVID" ] && grep -q "$DEVID" /proc/partitions ; then
     1.6  				echo "Mounting /home on /dev/$DEVID... "
     1.7 -				mv /home/$USER /tmp/$USER-files
     1.8 +				[ -d /home/$USER ] && mv /home/$USER /tmp/$USER-files
     1.9  				mount /dev/$DEVID /home -o uid=1000,gid=1000 2>/dev/null \
    1.10  					|| mount /dev/$DEVID /home
    1.11  				# Check if swap file must be generated in /home: swap=size (Mb).