# HG changeset patch # User Pascal Bellard # Date 1383153868 -3600 # Node ID 5195a3bc63bf361668c4003070c1bde76d57c463 # Parent 514c674eb843e8dae8bcf1f109823a6205c78a96 bootopts.sh: fix uid/gid for vfat/ntfs case diff -r 514c674eb843 -r 5195a3bc63bf etc/init.d/bootopts.sh --- a/etc/init.d/bootopts.sh Fri May 31 15:21:55 2013 +0200 +++ b/etc/init.d/bootopts.sh Wed Oct 30 18:24:28 2013 +0100 @@ -61,11 +61,11 @@ if [ -n "$DEVID" ] && fgrep -q "$DEVID" /proc/partitions ; then echo "Mounting /home on /dev/$DEVID... " [ -d /home/$USER ] && mv /home/$USER /tmp/$USER-files - mount /dev/$DEVID /home -o uid=1000,gid=100 2>/dev/null \ - || mount /dev/$DEVID /home + mount /dev/$DEVID /home && case "$(/sbin/blkid | grep /dev/$DEVID:)" in *\"ntfs\"*|*\"vfat\"*) mount.posixovl -F /home ;; esac + mount /home -o remount,uid=1000,gid=100 2>/dev/null # Check if swap file must be generated in /home: swap=size (Mb). # This option is only used within home=device. if grep -q "swap=[1-9]*" /proc/cmdline; then