* [meta-raspberrypi] Read-Only RootFS is not read only @ 2013-07-30 10:43 Rich Bayliss 2013-08-02 12:47 ` Paul Eggleton 0 siblings, 1 reply; 7+ messages in thread From: Rich Bayliss @ 2013-07-30 10:43 UTC (permalink / raw) To: Yocto Project I am trying to build for Raspberry Pi including "read-only-rootfs" in my image features. My aim is to have my SD Card read-only and at some point add a read-write overlay to certain directories. This should enable my system to boot fresh each time, and have some persistent storage for user files etc. However, after building my image I can SSH into the system and issue "touch test" to create a file in my home directory, then after a reboot it is still there. That isn't very read-only :) Am I missing something, or is this working incorrectly? -- Rich Bayliss ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [meta-raspberrypi] Read-Only RootFS is not read only 2013-07-30 10:43 [meta-raspberrypi] Read-Only RootFS is not read only Rich Bayliss @ 2013-08-02 12:47 ` Paul Eggleton 2013-08-04 0:27 ` Rich Bayliss 0 siblings, 1 reply; 7+ messages in thread From: Paul Eggleton @ 2013-08-02 12:47 UTC (permalink / raw) To: Rich Bayliss, Andrei Gherzan; +Cc: yocto Hi Rich, On Tuesday 30 July 2013 11:43:43 Rich Bayliss wrote: > I am trying to build for Raspberry Pi including "read-only-rootfs" in > my image features. My aim is to have my SD Card read-only and at some > point add a read-write overlay to certain directories. This should > enable my system to boot fresh each time, and have some persistent > storage for user files etc. > > However, after building my image I can SSH into the system and issue > "touch test" to create a file in my home directory, then after a > reboot it is still there. That isn't very read-only :) > > Am I missing something, or is this working incorrectly? It sounds like it's working incorrectly. Since meta-raspberrypi constructs the SD card image using its own custom class I wonder if it has anything to do with that. Andrei, do you know anything about this? BTW, are you using sysvinit or systemd in this image? Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [meta-raspberrypi] Read-Only RootFS is not read only 2013-08-02 12:47 ` Paul Eggleton @ 2013-08-04 0:27 ` Rich Bayliss 2013-08-04 22:35 ` Paul Eggleton 0 siblings, 1 reply; 7+ messages in thread From: Rich Bayliss @ 2013-08-04 0:27 UTC (permalink / raw) To: Paul Eggleton; +Cc: Yocto Project I am using the standard sysvinit/systemd - I haven't specified either, so whichever is default. Cheers, Rich On 2 August 2013 13:47, Paul Eggleton <paul.eggleton@linux.intel.com> wrote: > Hi Rich, > > On Tuesday 30 July 2013 11:43:43 Rich Bayliss wrote: >> I am trying to build for Raspberry Pi including "read-only-rootfs" in >> my image features. My aim is to have my SD Card read-only and at some >> point add a read-write overlay to certain directories. This should >> enable my system to boot fresh each time, and have some persistent >> storage for user files etc. >> >> However, after building my image I can SSH into the system and issue >> "touch test" to create a file in my home directory, then after a >> reboot it is still there. That isn't very read-only :) >> >> Am I missing something, or is this working incorrectly? > > It sounds like it's working incorrectly. Since meta-raspberrypi constructs the > SD card image using its own custom class I wonder if it has anything to do > with that. Andrei, do you know anything about this? > > BTW, are you using sysvinit or systemd in this image? > > Cheers, > Paul > > -- > > Paul Eggleton > Intel Open Source Technology Centre -- Rich Bayliss ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [meta-raspberrypi] Read-Only RootFS is not read only 2013-08-04 0:27 ` Rich Bayliss @ 2013-08-04 22:35 ` Paul Eggleton 2013-08-04 23:51 ` Rich Bayliss 0 siblings, 1 reply; 7+ messages in thread From: Paul Eggleton @ 2013-08-04 22:35 UTC (permalink / raw) To: Rich Bayliss; +Cc: yocto On Sunday 04 August 2013 01:27:01 Rich Bayliss wrote: > On 2 August 2013 13:47, Paul Eggleton <paul.eggleton@linux.intel.com> wrote: > > On Tuesday 30 July 2013 11:43:43 Rich Bayliss wrote: > >> I am trying to build for Raspberry Pi including "read-only-rootfs" in > >> my image features. My aim is to have my SD Card read-only and at some > >> point add a read-write overlay to certain directories. This should > >> enable my system to boot fresh each time, and have some persistent > >> storage for user files etc. > >> > >> However, after building my image I can SSH into the system and issue > >> "touch test" to create a file in my home directory, then after a > >> reboot it is still there. That isn't very read-only :) > >> > >> Am I missing something, or is this working incorrectly? > > > > It sounds like it's working incorrectly. Since meta-raspberrypi constructs > > the SD card image using its own custom class I wonder if it has anything > > to do with that. Andrei, do you know anything about this? > > > > BTW, are you using sysvinit or systemd in this image? > > I am using the standard sysvinit/systemd - I haven't specified either, > so whichever is default. Except the default depends upon what DISTRO you are using. Which DISTRO are you using - "poky" or something else? Cheers, Paul -- Paul Eggleton Intel Open Source Technology Centre ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [meta-raspberrypi] Read-Only RootFS is not read only 2013-08-04 22:35 ` Paul Eggleton @ 2013-08-04 23:51 ` Rich Bayliss 2013-08-05 10:12 ` Andrei Gherzan 0 siblings, 1 reply; 7+ messages in thread From: Rich Bayliss @ 2013-08-04 23:51 UTC (permalink / raw) To: Paul Eggleton; +Cc: Yocto Project Sorry Paul - I am new to all this. I have checked and I am using Poky (1.4) Rich On 4 August 2013 23:35, Paul Eggleton <paul.eggleton@linux.intel.com> wrote: > On Sunday 04 August 2013 01:27:01 Rich Bayliss wrote: >> On 2 August 2013 13:47, Paul Eggleton <paul.eggleton@linux.intel.com> wrote: >> > On Tuesday 30 July 2013 11:43:43 Rich Bayliss wrote: >> >> I am trying to build for Raspberry Pi including "read-only-rootfs" in >> >> my image features. My aim is to have my SD Card read-only and at some >> >> point add a read-write overlay to certain directories. This should >> >> enable my system to boot fresh each time, and have some persistent >> >> storage for user files etc. >> >> >> >> However, after building my image I can SSH into the system and issue >> >> "touch test" to create a file in my home directory, then after a >> >> reboot it is still there. That isn't very read-only :) >> >> >> >> Am I missing something, or is this working incorrectly? >> > >> > It sounds like it's working incorrectly. Since meta-raspberrypi constructs >> > the SD card image using its own custom class I wonder if it has anything >> > to do with that. Andrei, do you know anything about this? >> > >> > BTW, are you using sysvinit or systemd in this image? >> >> I am using the standard sysvinit/systemd - I haven't specified either, >> so whichever is default. > > Except the default depends upon what DISTRO you are using. Which DISTRO are > you using - "poky" or something else? > > Cheers, > Paul > > -- > > Paul Eggleton > Intel Open Source Technology Centre -- Rich Bayliss ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [meta-raspberrypi] Read-Only RootFS is not read only 2013-08-04 23:51 ` Rich Bayliss @ 2013-08-05 10:12 ` Andrei Gherzan 2013-08-21 15:16 ` Andrei Gherzan 0 siblings, 1 reply; 7+ messages in thread From: Andrei Gherzan @ 2013-08-05 10:12 UTC (permalink / raw) To: Rich Bayliss; +Cc: Paul Eggleton, Yocto Project [-- Attachment #1: Type: text/plain, Size: 1911 bytes --] On Mon, Aug 5, 2013 at 2:51 AM, Rich Bayliss <richbayliss@gmail.com> wrote: > Sorry Paul - I am new to all this. I have checked and I am using Poky (1.4) > > Rich > > On 4 August 2013 23:35, Paul Eggleton <paul.eggleton@linux.intel.com> > wrote: > > On Sunday 04 August 2013 01:27:01 Rich Bayliss wrote: > >> On 2 August 2013 13:47, Paul Eggleton <paul.eggleton@linux.intel.com> > wrote: > >> > On Tuesday 30 July 2013 11:43:43 Rich Bayliss wrote: > >> >> I am trying to build for Raspberry Pi including "read-only-rootfs" in > >> >> my image features. My aim is to have my SD Card read-only and at some > >> >> point add a read-write overlay to certain directories. This should > >> >> enable my system to boot fresh each time, and have some persistent > >> >> storage for user files etc. > >> >> > >> >> However, after building my image I can SSH into the system and issue > >> >> "touch test" to create a file in my home directory, then after a > >> >> reboot it is still there. That isn't very read-only :) > >> >> > >> >> Am I missing something, or is this working incorrectly? > >> > > >> > It sounds like it's working incorrectly. Since meta-raspberrypi > constructs > >> > the SD card image using its own custom class I wonder if it has > anything > >> > to do with that. Andrei, do you know anything about this? > >> > > >> > BTW, are you using sysvinit or systemd in this image? > >> > >> I am using the standard sysvinit/systemd - I haven't specified either, > >> so whichever is default. > > > > Except the default depends upon what DISTRO you are using. Which DISTRO > are > > you using - "poky" or something else? > > > > Cheers, > > Paul > > > > -- > > > > Paul Eggleton > > Intel Open Source Technology Centre > Will check on this tomorrow. I've been on the roads these days. -- *Andrei Gherzan* m: +40.744.478.414 | f: +40.31.816.28.12 [-- Attachment #2: Type: text/html, Size: 3167 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [meta-raspberrypi] Read-Only RootFS is not read only 2013-08-05 10:12 ` Andrei Gherzan @ 2013-08-21 15:16 ` Andrei Gherzan 0 siblings, 0 replies; 7+ messages in thread From: Andrei Gherzan @ 2013-08-21 15:16 UTC (permalink / raw) To: Rich Bayliss; +Cc: Paul Eggleton, Yocto Project [-- Attachment #1: Type: text/plain, Size: 2596 bytes --] On Mon, Aug 5, 2013 at 1:12 PM, Andrei Gherzan <andrei@gherzan.ro> wrote: > > > > On Mon, Aug 5, 2013 at 2:51 AM, Rich Bayliss <richbayliss@gmail.com>wrote: > >> Sorry Paul - I am new to all this. I have checked and I am using Poky >> (1.4) >> >> Rich >> >> On 4 August 2013 23:35, Paul Eggleton <paul.eggleton@linux.intel.com> >> wrote: >> > On Sunday 04 August 2013 01:27:01 Rich Bayliss wrote: >> >> On 2 August 2013 13:47, Paul Eggleton <paul.eggleton@linux.intel.com> >> wrote: >> >> > On Tuesday 30 July 2013 11:43:43 Rich Bayliss wrote: >> >> >> I am trying to build for Raspberry Pi including "read-only-rootfs" >> in >> >> >> my image features. My aim is to have my SD Card read-only and at >> some >> >> >> point add a read-write overlay to certain directories. This should >> >> >> enable my system to boot fresh each time, and have some persistent >> >> >> storage for user files etc. >> >> >> >> >> >> However, after building my image I can SSH into the system and issue >> >> >> "touch test" to create a file in my home directory, then after a >> >> >> reboot it is still there. That isn't very read-only :) >> >> >> >> >> >> Am I missing something, or is this working incorrectly? >> >> > >> >> > It sounds like it's working incorrectly. Since meta-raspberrypi >> constructs >> >> > the SD card image using its own custom class I wonder if it has >> anything >> >> > to do with that. Andrei, do you know anything about this? >> >> > >> >> > BTW, are you using sysvinit or systemd in this image? >> >> >> >> I am using the standard sysvinit/systemd - I haven't specified either, >> >> so whichever is default. >> > >> > Except the default depends upon what DISTRO you are using. Which DISTRO >> are >> > you using - "poky" or something else? >> > >> > Cheers, >> > Paul >> > >> > -- >> > >> > Paul Eggleton >> > Intel Open Source Technology Centre >> > > Will check on this tomorrow. I've been on the roads these days. > Summary: I managed to find the root of the problem. We used to have an old fstab which i'm going to get rid of with a patch today - as the default one is working ok and fixes this issue. The problem was related to: tmpfs /run tmpfs mode=0755,nodev,nosuid,strictatime 0 0 We didn't have this specified in our fstab and would make udevd to keep the device busy => remount fail. Thank you for reporting this. And sorry for being late with investigation - managed to get some vacation :) -- *Andrei Gherzan* m: +40.744.478.414 | f: +40.31.816.28.12 [-- Attachment #2: Type: text/html, Size: 4412 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-08-21 15:16 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-07-30 10:43 [meta-raspberrypi] Read-Only RootFS is not read only Rich Bayliss 2013-08-02 12:47 ` Paul Eggleton 2013-08-04 0:27 ` Rich Bayliss 2013-08-04 22:35 ` Paul Eggleton 2013-08-04 23:51 ` Rich Bayliss 2013-08-05 10:12 ` Andrei Gherzan 2013-08-21 15:16 ` Andrei Gherzan
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.