Thread (14 messages) 14 messages, 4 authors, 2018-04-16

[RFC PATCH] rootfs: force mounting rootfs as tmpfs

flat view

From: Rob Landley <hidden>
Date: 2018-02-01 15:20:35
Also in: lkml


On 01/31/2018 10:22 PM, Mimi Zohar wrote:
On Wed, 2018-01-31 at 21:03 -0500, Arvind Sankar wrote:
quoted
On Wed, Jan 31, 2018 at 05:48:20PM -0600, Rob Landley wrote:
quoted
On 01/31/2018 04:07 PM, Mimi Zohar wrote:
quoted
On Wed, 2018-01-31 at 13:32 -0600, Rob Landley wrote:>> (The old "I configured in tmpfs and am using rootfs but I want that
rootfs
quoted
quoted
to be ramfs, not tmpfs" code doesn't seem to be a real-world concern, does
it?)
I must be missing something. ?Which systems don't specify "root=" on
the boot command line.
Any system using initrd or initramfs?
Don't a lot of initramfs setups use root= to tell the initramfs which
actual root file system to switch to after early boot?
You mean the option that _isn't_ passed through as an environment
variable (the way ROOT= would be) so you have to parse /proc/cmdline to
to see if it was passed in?

If you really, really, really, really, really want to double down on the
"no, this is the button, it doesn't do what I thought but I will MAKE it
work" obsession, sure.
With your patch and specifying "root=tmpfs", dracut is complaining:

dracut: FATAL: Don't know how to handle 'root=tmpfs'
dracut: refusing to continue
[googles]... I do not understand why this package exists.

If you're switching to another root filesystem, using a tool that
wikipedia[citation needed] says has no purpose but to switch to another
root filesystem, (so let's reproduce the kernel infrastructure in
userspace while leaving it the kernel too)... why do you need initramfs
to be tmpfs? You're using it for half a second, then discarding it,
what's the point of it being tmpfs?

Sigh. If people are ok with having rootfs just be tmpfs whenever tmpfs
is configured in, even when you're then going to overmount it with
something else like you're doing, let's just _remove_ the test. If it
can be tmpfs, have it be tmpfs.

Rob
--
To unsubscribe from this list: send the line "unsubscribe linux-security-module" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help