|
|
@ -539,7 +539,13 @@ setup_unionfs(){
|
|
|
|
# Directory used for rw changes in union mount filesystem
|
|
|
|
# Directory used for rw changes in union mount filesystem
|
|
|
|
UNION=/union
|
|
|
|
UNION=/union
|
|
|
|
MEMORY=/memory
|
|
|
|
MEMORY=/memory
|
|
|
|
CHANGES=$MEMORY/changes
|
|
|
|
if [ -n "$UID" ]
|
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
CHANGES=$MEMORY/unionfs_changes/default
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
CHANGES=$MEMORY/unionfs_changes/$UID
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mkdir -p ${MEMORY}
|
|
|
|
mkdir -p ${MEMORY}
|
|
|
|
mkdir -p ${UNION}
|
|
|
|
mkdir -p ${UNION}
|
|
|
@ -558,6 +564,14 @@ setup_unionfs(){
|
|
|
|
bad_msg "mount of $CHANGESDEV failed falling back to ramdisk based unionfs"
|
|
|
|
bad_msg "mount of $CHANGESDEV failed falling back to ramdisk based unionfs"
|
|
|
|
mount -t tmpfs tmpfs $MEMORY
|
|
|
|
mount -t tmpfs tmpfs $MEMORY
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ ! -f ${MEMORY}/livecd.unionfs ]
|
|
|
|
|
|
|
|
then
|
|
|
|
|
|
|
|
umount $CHANGESDEV
|
|
|
|
|
|
|
|
bad_msg "failed to find livecd.unionfs file on $CHANGESDEV"
|
|
|
|
|
|
|
|
bad_msg "falling back to ramdisk based unionfs for safety"
|
|
|
|
|
|
|
|
bad_msg "create a livecd.unionfs file on this device if you wish to use it for unionfs"
|
|
|
|
|
|
|
|
mount -t tmpfs tmpfs $MEMORY
|
|
|
|
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
else
|
|
|
|
good_msg "Mounting ramdisk to $MEMORY for unionfs support..."
|
|
|
|
good_msg "Mounting ramdisk to $MEMORY for unionfs support..."
|
|
|
|
mount -t tmpfs tmpfs $MEMORY
|
|
|
|
mount -t tmpfs tmpfs $MEMORY
|
|
|
|