[systemd-devel] [PATCH 1/2] fstab-generator: Support root on tmpfs (or other deviceless FS)

Andrei Borzenkov arvidjaar at gmail.com
Tue Mar 24 09:00:04 PDT 2015


On Tue, Mar 24, 2015 at 6:39 PM, Tom Gundersen <teg at jklm.no> wrote:
> Hi Tobias and Zbigniew,
>
> This already went in, but I was just looking at it again.
>
> Is there any reason the kernel commandline handling must be treated
> differently here than the fstab handling? We already support
> deviceless mounts (obviously) when specified in fstab without the need
> for any whitelist, so why not just the same logic for the kernel
> commandline? In fact, that should already work without this patch,
> should it not (didn't actually try, just looked at the code)?
>
> "root=none rootfstype=tmpfs"
>

I suspect this will fail the check

>>
>> -        what = fstab_node_to_udev_node(arg_root_what);
>> -        if (!path_is_absolute(what)) {
>> -                log_debug("Skipping entry what=%s where=/sysroot type=%s", what, strna(arg_root_fstype));
>> -                return 0;


More information about the systemd-devel mailing list