From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752255AbZHLWKi (ORCPT ); Wed, 12 Aug 2009 18:10:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752200AbZHLWKi (ORCPT ); Wed, 12 Aug 2009 18:10:38 -0400 Received: from main.gmane.org ([80.91.229.2]:49850 "EHLO ciao.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752061AbZHLWKh (ORCPT ); Wed, 12 Aug 2009 18:10:37 -0400 X-Injected-Via-Gmane: http://gmane.org/ To: linux-kernel@vger.kernel.org From: David Wuertele Subject: Re: Can initramfs be mounted read-only? Date: Wed, 12 Aug 2009 22:10:21 +0000 (UTC) Message-ID: References: <9b2b86520908121424qff7443fn84d07fb8dff7c863@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 136.182.2.26 (Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.13) Gecko/2009073021 Firefox/3.0.13) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Alan Jenkins 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