Re: [systemd-devel] [PATCH] fstab-generator: Support root on tmpfs

2015-04-09 Thread Tobias Hunger
Hi Lennart, that does sound interesting. Let me polish my patches for stateless systems on real hardware a bit first though:-) It would give a horrible impression if the system would not come up properly, just because you forgot to pass root= to the kernel. Sorry for the delay, I was on vacation o

Re: [systemd-devel] [PATCH] fstab-generator: Support root on tmpfs

2015-04-08 Thread Lennart Poettering
On Sun, 22.03.15 00:57, Tobias Hunger (tobias.hun...@gmail.com) wrote: BTW, if you are interested, I'd be willing to take this one step further even, and default to tmpfs as root fs, if only mount.usr= is specified on the kernel cmdline, and root= is missing. Lennart -- Lennart Poettering, Red

Re: [systemd-devel] [PATCH] fstab-generator: Support root on tmpfs

2015-03-23 Thread Vasiliy Tolstov
2015-03-23 15:53 GMT+03:00 Zbigniew Jędrzejewski-Szmek : > OK, I guess that this is good enough. > > So we should have something like fstype_is_deviceless (fstype_has_no_device?) > like fstype_is_network(). > Looks good. -- Vasiliy Tolstov, e-mail: v.tols...@selfip.ru jabber: v...@selfip.ru ___

Re: [systemd-devel] [PATCH] fstab-generator: Support root on tmpfs

2015-03-23 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Mar 23, 2015 at 01:45:06PM +0300, Vasiliy Tolstov wrote: > 2015-03-23 13:39 GMT+03:00 Tobias Hunger : > > Hi Vasiliy, > > > > from what I read lowerdir, upperdir and workdir need to be > > directories, not devices. So how can you mount those three directories > > before setting up an overla

Re: [systemd-devel] [PATCH] fstab-generator: Support root on tmpfs

2015-03-23 Thread Vasiliy Tolstov
2015-03-23 13:39 GMT+03:00 Tobias Hunger : > Hi Vasiliy, > > from what I read lowerdir, upperdir and workdir need to be > directories, not devices. So how can you mount those three directories > before setting up an overlayfs using them? > > That should be possible with a couple of units injected i

Re: [systemd-devel] [PATCH] fstab-generator: Support root on tmpfs

2015-03-23 Thread Tobias Hunger
Hi Vasiliy, from what I read lowerdir, upperdir and workdir need to be directories, not devices. So how can you mount those three directories before setting up an overlayfs using them? That should be possible with a couple of units injected into the initrd, but to me this seems more than what the

Re: [systemd-devel] [PATCH] fstab-generator: Support root on tmpfs

2015-03-23 Thread Vasiliy Tolstov
2015-03-23 13:02 GMT+03:00 Tobias Hunger : > I never used overlayfs myself, can you set up an overlayfs via the > kernel commandline arguments supported by the fstab-generator? Those > are device, options and fstype for the root and usr. > > If a overlayfs setup can not be shoehorned into the (two

Re: [systemd-devel] [PATCH] fstab-generator: Support root on tmpfs

2015-03-23 Thread Tobias Hunger
Hi Vasiliy, I never used overlayfs myself, can you set up an overlayfs via the kernel commandline arguments supported by the fstab-generator? Those are device, options and fstype for the root and usr. If a overlayfs setup can not be shoehorned into the (two times) three flags we have support for

Re: [systemd-devel] [PATCH] fstab-generator: Support root on tmpfs

2015-03-23 Thread Vasiliy Tolstov
2015-03-23 11:21 GMT+03:00 Tobias Hunger : > > I had been thinking about adding more device-less fs types, too, and > came to the same conclusion:-) > > I'll rework the patch with the new else, use streq_ptr and alse rename > type_is_tmpfs to fstype_is_tmpfs. I think that is cleaner. I'll send > it

Re: [systemd-devel] [PATCH] fstab-generator: Support root on tmpfs

2015-03-23 Thread Tobias Hunger
Hi Zbyszek, I had been thinking about adding more device-less fs types, too, and came to the same conclusion:-) I'll rework the patch with the new else, use streq_ptr and alse rename type_is_tmpfs to fstype_is_tmpfs. I think that is cleaner. I'll send it as soon as I get round to it. Thanks for

Re: [systemd-devel] [PATCH] fstab-generator: Support root on tmpfs

2015-03-22 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Mar 22, 2015 at 08:29:25AM +0300, Andrei Borzenkov wrote: > В Sun, 22 Mar 2015 00:57:23 +0100 > Tobias Hunger пишет: > > > src/fstab-generator/fstab-generator.c | 12 +++- > > 1 file changed, 11 insertions(+), 1 deletion(-) > > > > diff --git a/src/fstab-generator/fstab-generato

Re: [systemd-devel] [PATCH] fstab-generator: Support root on tmpfs

2015-03-21 Thread Andrei Borzenkov
В Sun, 22 Mar 2015 00:57:23 +0100 Tobias Hunger пишет: > src/fstab-generator/fstab-generator.c | 12 +++- > 1 file changed, 11 insertions(+), 1 deletion(-) > > diff --git a/src/fstab-generator/fstab-generator.c > b/src/fstab-generator/fstab-generator.c > index ccc7c6e..6b9719b 100644 >

[systemd-devel] [PATCH] fstab-generator: Support root on tmpfs

2015-03-21 Thread Tobias Hunger
Hello everybody, Hi Harald and Zbyszek, I hope you two do not mind me sending directly to you, but you seem to be generally interested in the area I am touching here:-) I am currently experimenting with a stateless system on real hardware. I am using arch here, with systemd in the initrd, but thi