slitaz-boot-scripts rev 334 5.3.2
bootopts.sh: fix uid/gid for vfat/ntfs case
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 30 18:24:28 2013 +0100 (2013-10-30) |
parents | 514c674eb843 |
children | c469506f11ce |
files | etc/init.d/bootopts.sh |
line diff
1.1 --- a/etc/init.d/bootopts.sh Fri May 31 15:21:55 2013 +0200 1.2 +++ b/etc/init.d/bootopts.sh Wed Oct 30 18:24:28 2013 +0100 1.3 @@ -61,11 +61,11 @@ 1.4 if [ -n "$DEVID" ] && fgrep -q "$DEVID" /proc/partitions ; then 1.5 echo "Mounting /home on /dev/$DEVID... " 1.6 [ -d /home/$USER ] && mv /home/$USER /tmp/$USER-files 1.7 - mount /dev/$DEVID /home -o uid=1000,gid=100 2>/dev/null \ 1.8 - || mount /dev/$DEVID /home 1.9 + mount /dev/$DEVID /home && 1.10 case "$(/sbin/blkid | grep /dev/$DEVID:)" in 1.11 *\"ntfs\"*|*\"vfat\"*) mount.posixovl -F /home ;; 1.12 esac 1.13 + mount /home -o remount,uid=1000,gid=100 2>/dev/null 1.14 # Check if swap file must be generated in /home: swap=size (Mb). 1.15 # This option is only used within home=device. 1.16 if grep -q "swap=[1-9]*" /proc/cmdline; then