Re: /var on tmpfs

2018-11-17 Thread Don NetBSD
On 11/16/2018 3:47 PM, David Young wrote: I added a line to /etc/fstab, swap /mfs tmpfs rw,-s8M 0 0 If memory is limited, doesn't that make creating a MFS swap just useless overhead? I.e., if you need to page to swap, you're just consuming memory set aside FOR swap instead of "main

Re: /var on tmpfs

2018-11-16 Thread David Young
On Thu, Nov 15, 2018 at 10:28:56PM -0700, Don NetBSD wrote: > I've a box with a DoM. I'd like to mount / as ro and create a > tmpfs for /var (and /tmp). I don't think anything else NEEDS to > be rw (the infrequent changes to /etc can be made by unlocking / > to make those chan

Re: /var on tmpfs

2018-11-16 Thread Staffan Thomén
Don NetBSD wrote: I've a box with a DoM. I'd like to mount / as ro and create a tmpfs for /var (and /tmp). I don't think anything else NEEDS to be rw (the infrequent changes to /etc can be made by unlocking / to make those changes). I imagine I can just make a tarball of a skeletal /var

Re: /var on tmpfs

2018-11-16 Thread Don NetBSD
On 11/16/2018 12:35 PM, Rhialto wrote: I once made a little script to make a bootable ISO9660 live file system, given the distribution tarballs. It has to be able to live on a read-only medium, hence it uses a tmpfs for /var. For initializing it, it installs a script in /etc/rc.d. I basically

Re: /var on tmpfs

2018-11-16 Thread Don NetBSD
On 11/16/2018 11:12 AM, Jeremy C. Reed wrote: On Thu, 15 Nov 2018, Don NetBSD wrote: I've a box with a DoM. I'd like to mount / as ro and create a tmpfs for /var (and /tmp). I don't think anything else NEEDS to be rw (the infrequent changes to /etc can be made by unlocking / to make those

Re: /var on tmpfs

2018-11-16 Thread Rhialto
I once made a little script to make a bootable ISO9660 live file system, given the distribution tarballs. It has to be able to live on a read-only medium, hence it uses a tmpfs for /var. For initializing it, it installs a script in /etc/rc.d. I basically used trial and error; everything

Re: /var on tmpfs

2018-11-16 Thread Jeremy C. Reed
On Thu, 15 Nov 2018, Don NetBSD wrote: > I've a box with a DoM. I'd like to mount / as ro and create a > tmpfs for /var (and /tmp). I don't think anything else NEEDS to > be rw (the infrequent changes to /etc can be made by unlocking / > to make those changes). > > I imagi

/var on tmpfs

2018-11-15 Thread Don NetBSD
I've a box with a DoM. I'd like to mount / as ro and create a tmpfs for /var (and /tmp). I don't think anything else NEEDS to be rw (the infrequent changes to /etc can be made by unlocking / to make those changes). I imagine I can just make a tarball of a skeletal /var and unpack this over