initial commit
This commit is contained in:
15
extra/pre-build.d/usr/lib/initcpio/hooks/livecd
Normal file
15
extra/pre-build.d/usr/lib/initcpio/hooks/livecd
Normal file
@@ -0,0 +1,15 @@
|
||||
# vim: set ft=sh:
|
||||
|
||||
run_cleanuphook () {
|
||||
msg ":: Mounting aufs on / with tmpfs=rw, ${root}=ro ..."
|
||||
modprobe aufs
|
||||
|
||||
echo "Now attempting aufs mount..."
|
||||
|
||||
mkdir /new_root.hw
|
||||
mount --move /new_root /new_root.hw
|
||||
mkdir /dev/shm
|
||||
mount -t tmpfs none /dev/shm
|
||||
mount -t aufs none /new_root -o dirs=/dev/shm=rw:/new_root.hw=ro -o noatime
|
||||
pkill -9 dropbear #kill SSH (in preparation for the live system starting ssh on port 22
|
||||
}
|
||||
Reference in New Issue
Block a user