From: Alan Jenkins <sourcejedi.lkml@googlemail.com>
To: David Wuertele <dave+gmane@wuertele.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Can initramfs be mounted read-only?
Date: Wed, 12 Aug 2009 22:24:16 +0100 [thread overview]
Message-ID: <9b2b86520908121424qff7443fn84d07fb8dff7c863@mail.gmail.com> (raw)
In-Reply-To: <loom.20090812T194647-427@post.gmane.org>
On 8/12/09, David Wuertele <dave+gmane@wuertele.com> wrote:
> 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)
Changing this could potentially break a lot of systems. At least
Debian has "ro" as a default boot option, and it uses an initramfs by
default.
> 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.
Have you tried running "mount / -oremount,ro" in an init script?
Regards
Alan
next prev parent reply other threads:[~2009-08-12 21:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-12 19:47 David Wuertele
2009-08-12 21:24 ` Alan Jenkins [this message]
2009-08-12 22:10 ` David Wuertele
2009-08-12 23:05 ` Christoph Lameter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9b2b86520908121424qff7443fn84d07fb8dff7c863@mail.gmail.com \
--to=sourcejedi.lkml@googlemail.com \
--cc=dave+gmane@wuertele.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®