From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mail.openembedded.org (Postfix) with ESMTP id 21CD471637 for ; Fri, 27 Feb 2015 01:06:07 +0000 (UTC) Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga103.jf.intel.com with ESMTP; 26 Feb 2015 16:59:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,656,1418112000"; d="scan'208";a="672399993" Received: from linux.intel.com ([10.23.219.25]) by fmsmga001.fm.intel.com with ESMTP; 26 Feb 2015 17:05:41 -0800 Received: by linux.intel.com (Postfix, from userid 48) id 2897E6A4090; Thu, 26 Feb 2015 17:05:29 -0800 (PST) Received: from 10.254.176.172 (SquirrelMail authenticated user randy.e.witt) by linux.intel.com with HTTP; Thu, 26 Feb 2015 17:05:29 -0800 (PST) Message-ID: <53119.10.254.176.172.1424999129.squirrel@linux.intel.com> In-Reply-To: <1424989287.2764.14.camel@bottazzini-ThinkPad-T430> References: <1424978954-25411-1-git-send-email-bruno.bottazzini@intel.com> <54EF93B1.2020902@linux.intel.com> <1424989287.2764.14.camel@bottazzini-ThinkPad-T430> Date: Thu, 26 Feb 2015 17:05:29 -0800 (PST) From: randy.e.witt@linux.intel.com To: "Bottazzini, Bruno" User-Agent: SquirrelMail/1.4.8-5.el4.centos.8 MIME-Version: 1.0 X-Priority: 3 (Normal) Importance: Normal Cc: Darren Hart , openembedded-core@lists.openembedded.org Subject: Re: [PATCH] mkefidisk: change filesystem to be writeable on grub X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2015 01:06:12 -0000 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit > > On Qui, 2015-02-26 at 13:44 -0800, Randy Witt wrote: >> On 02/26/2015 11:29 AM, Bruno Bottazzini wrote: >> > This patch changes grub configuration so the filesystem will be >> writeable >> > instead, just read only when running the script. >> > --- >> > scripts/contrib/mkefidisk.sh | 2 +- >> > 1 file changed, 1 insertion(+), 1 deletion(-) >> > >> > diff --git a/scripts/contrib/mkefidisk.sh >> b/scripts/contrib/mkefidisk.sh >> > index b96b7d4..9b84831 100755 >> > --- a/scripts/contrib/mkefidisk.sh >> > +++ b/scripts/contrib/mkefidisk.sh >> > @@ -342,7 +342,7 @@ if [ -e "$GRUB_CFG" ]; then >> > sed -i "s/ LABEL=[^ ]*/ /" $GRUB_CFG >> > >> > sed -i "s@ root=[^ ]*@ @" $GRUB_CFG >> > - sed -i "s@vmlinuz @vmlinuz root=$TARGET_ROOTFS ro rootwait quiet @" >> $GRUB_CFG >> > + sed -i "s@vmlinuz @vmlinuz root=$TARGET_ROOTFS rw rootwait quiet @" >> $GRUB_CFG >> > fi >> > >> > # Look for a gummiboot installation >> > >> >> This change basically reverts >> http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=24cd3ddeb70a3d3f2985ec71c87ae0108f3d2777 >> by Darren. It also doesn't change the ro option when using gummiboot >> instead. >> >> What is this change trying to fix? > > Hello Randy, > > I got the following message: > "file system is read-only" > > if I try to touch a file that is not on /tmp, or when I start a systemd > service that tries to write on the file system. > > After some research, I go it fixed by changing to read/write on the > script that was with read only. > > I thought this would be useful for someone else. Thank you for taking the time to do this. If things still don't work after checking /etc/fstab, let us know. > Reading the patch you sent me, Darren says that a proper fstab will ensure > the rootfs is rw. > Maybe I'm missing this. I will look for this to make sure that my fstab > OK. > > Thanks > > > > >