bdisk/extra/pre-build.d/usr/lib/initcpio/hooks/livecd

16 lines
469 B
Plaintext
Raw Normal View History

2014-12-19 14:13:30 -05:00
# vim: set ft=sh:
run_cleanuphook () {
2015-01-30 20:38:42 -05:00
msg ":: Mounting OverlayFS on / with tmpfs=rw, ${root}=ro ..."
modprobe overlay
2014-12-19 14:13:30 -05:00
2015-02-01 01:48:51 -05:00
echo "Now attempting overlay mount..."
2014-12-19 14:13:30 -05:00
mkdir /new_root.hw
mount --move /new_root /new_root.hw
mkdir /dev/shm
mount -t tmpfs none /dev/shm
2015-01-30 20:38:42 -05:00
mount -t overlay overlay -olowerdir=/new_root.hw,upperdir=/new_root,workdir=/dev/shm -o noatime
2014-12-19 14:13:30 -05:00
pkill -9 dropbear #kill SSH (in preparation for the live system starting ssh on port 22
}