Compare commits

...

2 Commits

Author SHA1 Message Date
2d176a4b11 tweaks to see if i can get overlayfs working happy with systemd.
see https://projects.archlinux.org/archiso.git/commit/?id=a637bdb8574168ab4cddef13d5de7f458650bda5, changes to archiso/initcpio/hooks/archiso
2015-02-04 19:26:13 -05:00
cecae180ea oops 2015-02-01 02:04:05 -05:00
2 changed files with 9 additions and 5 deletions

View File

@@ -115,6 +115,7 @@ hddtemp
hdparm hdparm
hexcurse hexcurse
hexedit hexedit
hfsprogs
hfsutils hfsutils
htop htop
httping httping

View File

@@ -6,10 +6,13 @@ run_cleanuphook () {
echo "Now attempting overlay mount..." echo "Now attempting overlay mount..."
mkdir /new_root.hw #mkdir /new_root.hw
mount --move /new_root /new_root.hw mkdir -p /run/archiso/cowspace/upperdir /run/archiso/cowspace/workdir
mkdir /dev/shm #mount --move /new_root /new_root.hw
mount -t tmpfs none /dev/shm #mkdir /dev/shm
mount -t overlay overlay -olowerdir=/new_root.hw,upperdir=/new_root,workdir=/dev/shm -o noatime #mount -t tmpfs none /dev/shm
#mount -t overlay overlay -olowerdir=/new_root.hw,upperdir=/new_root,workdir=/dev/shm -o noatime
umount -l /new_root > /dev/null 2>&1
mount -t overlay -o lowerdir=/run/archiso/sfs/airootfs,upperdir=/run/archiso/cowspace/upperdir,workdir=/run/archiso/cowspace/workdir airootfs /new_root
pkill -9 dropbear #kill SSH (in preparation for the live system starting ssh on port 22 pkill -9 dropbear #kill SSH (in preparation for the live system starting ssh on port 22
} }