mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Wuertele <dave+gmane@wuertele.com>
To: linux-kernel@vger.kernel.org
Subject: Re: Can initramfs be mounted read-only?
Date: Wed, 12 Aug 2009 22:10:21 +0000 (UTC)	[thread overview]
Message-ID: <loom.20090812T220624-312@post.gmane.org> (raw)
In-Reply-To: <9b2b86520908121424qff7443fn84d07fb8dff7c863@mail.gmail.com>

Alan Jenkins <sourcejedi.lkml <at> googlemail.com> writes:

>> I've been trying to create a system with a read-only rootfs using initramfs,
> 
> 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.

I don't want to change it for everybody, just my own system.  Since I'm not
using Debian, or any other distribution, I can handle the consequences.

>> Is it possible to
>> mount an initramfs read-only?
>
> Have you tried running "mount / -oremount,ro" in an init script?

Yes, and it works (the rootfs appears read-only after doing this).
I was hoping to get it to be read-only before init gets run.

Dave



  reply	other threads:[~2009-08-12 22:10 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
2009-08-12 22:10   ` David Wuertele [this message]
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=loom.20090812T220624-312@post.gmane.org \
    --to=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®