Code: Select all
umount /memory/changes;
Code: Select all
echo $i"filesystem is posix compatible"; CHNDEV=/mnt/$DEV
rmdir /memory/changes/mnt/* 2>/dev/null
rm -rf /memory/changes/var/lock/* /var/run/laptop-mode-tools/* /var/spool/cron/cron.??????
for x in `find /memory/changes/var/run -name "*pid" 2>/dev/null`; do rm $x; done
if [ $CHNEXIT = EXIT -o "`egrep -o " changes-ro( |\$)" /proc/cmdline`" ]; then
CHNEXIT=$CHNDEV/$LPTH; echo $CHNEXIT >/tmp/changes-exit
param changes-ro && echo $i"[1;36m""changes will not be saved for this session""[0m" || echo $i"[1;36m""changes will be saved only during reboot/shutdown""[0m"
for x in `find /memory/changes -name ".wh.*" | grep -v '.wh..wh..opq' | tr ' ' '@' `; do x=`echo $x | tr '@' ' ' `; cp -a --parents "$x" /var; done
umount /memory/changes; mount -nt tmpfs -o size=$RAMSIZE tmpfs /memory/changes
# need to fix busybox bug on 'cp -a' as it does not preserve perms on dirs:
mv /var/memory/changes/* /memory/changes 2>/dev/null; CHANGES=memory
chown -R guest /memory/changes/home/guest 2>/dev/null
fi
Does anyone have any idea why it would take a long time to unmount the /memory/changes during the boot script?