Can initramfs be mounted read-only?

From: David Wuertele
Date: Wed Aug 12 2009 - 15:55:18 EST


I've been trying to create a system with a read-only rootfs using initramfs,
but I'm not having any luck. I've included "ro" on my command line and when
I cat /proc/cmdline it reports "ro" like I expect. But when I type "mount",
I see this:

rootfs on / type rootfs (rw)

And I can create new files and write to them just fine. Is it possible to
mount an initramfs read-only?

The documentation for early userspace and initramfs does not talk about
read/write permissions.

Thanks,
Dave


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/