# Functions used by rc.sysinit # Modified versions for larch live systems f_header () { echo " " printhl "Live CD based on Arch Linux" printsep } f_fscheck () { stat_busy "Initializing /etc/mtab" #/bin/mount -n -o remount,rw / /bin/rm -f /etc/mtab* # Make entries for aufs/unionfs, tmpfs and live medium in /etc/mtab grep "^aufs */ " /proc/mounts >>/etc/mtab grep "^unionfs */ " /proc/mounts >>/etc/mtab grep "^tmpfs */.livesys " /proc/mounts >>/etc/mtab if [ -d /.livesys/medium/larch ]; then grep " /.livesys/medium " /proc/mounts >>/etc/mtab fi f_mountlocal stat_done if [ -z "$( cat /etc/fstab | grep "^#KEEP" )" ]; then stat_busy "Generating fresh /etc/fstab" /opt/larch-live/run/gen_fstab -l stat_done fi # now mount all the local filesystems stat_busy "Mounting Local Filesystems" /bin/mount -a -t $NETFS stat_done } f_swapon () { #+*** Copy session-save flag-file (if it exists) [ -f /larch/nosave ] && cp /larch/nosave /.livesys #-*** #*** Conditional swap activation if [ -e /.livesys/swapon ]; then status "Activating Swap" /sbin/swapon -a fi }