Code: Select all
echo "Activating changes.fs4 in usbmode"
if [ ! -d "$BUNDLES/changes.fs4" ]; then
mkdir -p "$BUNDLES/changes.fs4"
fi
mount -o loop "$1/changes.fs4" "$BUNDLES/changes.fs4"
rmdir "$BUNDLES/changes.fs4/lost+found" 2>/dev/null
fi
from rc.shutdown
Code: Select all
if grep -q usbmode /proc/cmdline; then
if [ -d "/mnt/live/memory/bundles/changes.fs4" ]; then
mount -n -o remount,add:1:/mnt/live/memory/bundles/changes.fst
fi
I understand that usbmode is for flash memory to reduce saves/writes for
prolongig life of disk but how does it work? were is save made?