commit 5c23238a4800d5c8b74330f7efd8c5d40fa21a1b from: jrmu date: Fri Sep 29 04:00:30 2023 UTC Daily backup commit - 2842b17695360ad49f5eec3b7a78a2f6b19ab47f commit + 5c23238a4800d5c8b74330f7efd8c5d40fa21a1b blob - /dev/null blob + 215d7c2d6eb7fcdee49932e757a7441d9779dc6d (mode 644) --- /dev/null +++ wiki.d/9.Ramfs @@ -0,0 +1,21 @@ +version=pmwiki-2.3.20 ordered=1 urlencoded=1 +agent=w3m/0.5.3+git20230121 +author=jrmu +charset=UTF-8 +csum= +ctime=1695827580 +host=38.87.162.8 +name=9.Ramfs +rev=3 +targets= +text=To use ramfs for /tmp, replace these two lines in $home/lib/profile:%0a%0a[@%0aif(! syscall create /tmp/xxx 1 0666 >[2]/dev/null)%0a ramfs # in case we're running off a cd%0a@]%0a%0aWith these lines:%0a%0a[@%0aramfs /usr/$user/tmp%0abind -c /usr/$user/tmp /tmp%0a@]%0a +time=1695829435 +author:1695829435=jrmu +diff:1695829435:1695827935:=1,2c1,2%0a%3c To use ramfs for /tmp, replace these two lines in $home/lib/profile:%0a%3c %0a---%0a> To use ramfs for /tmp, replace these two lines in /lib/namespace:%0a> %0a4,5c4,5%0a%3c if(! syscall create /tmp/xxx 1 0666 >[2]/dev/null)%0a%3c ramfs # in case we're running off a cd%0a---%0a> bind -c /n/other/usr/$user/tmp /usr/$user/tmp%0a> bind -c /usr/$user/tmp /tmp%0a +host:1695829435=38.87.162.8 +author:1695827935=jrmu +diff:1695827935:1695827580:=8,9c8,9%0a%3c With these lines:%0a%3c %0a---%0a> With these 3 new lines:%0a> %0a11c11,12%0a%3c ramfs /usr/$user/tmp%0a---%0a> ramfs -m /n/other/usr/$user/tmp%0a> bind -c /n/other/usr/$user/tmp /usr/$user/tmp%0a +host:1695827935=38.87.162.8 +author:1695827580=jrmu +diff:1695827580:1695827580:=1,14d0%0a%3c To use ramfs for /tmp, replace these two lines in /lib/namespace:%0a%3c %0a%3c [@%0a%3c bind -c /n/other/usr/$user/tmp /usr/$user/tmp%0a%3c bind -c /usr/$user/tmp /tmp%0a%3c @]%0a%3c %0a%3c With these 3 new lines:%0a%3c %0a%3c [@%0a%3c ramfs -m /n/other/usr/$user/tmp%0a%3c bind -c /n/other/usr/$user/tmp /usr/$user/tmp%0a%3c bind -c /usr/$user/tmp /tmp%0a%3c @]%0a +host:1695827580=38.87.162.8