Re: [OE-core] [RFC PATCH] bind: add support for read-only rootfs

2013-11-21 Thread Phil Blundell
On Thu, 2013-11-21 at 00:59 -0600, Mark Hatle wrote: +# When using a read-only rootfs additional setup may be required +# uncomment the following line to make bind start in read-only rootfs +#ALLOW_ROOTFS_READ_ONLY=yes If the filesystem is read-only then it's going to be fairly difficult for

Re: [OE-core] [RFC PATCH] bind: add support for read-only rootfs

2013-11-21 Thread Paul Eggleton
Hi Mark, On Thursday 21 November 2013 01:02:11 Mark Hatle wrote: Sorry I forgot to add, this requires the patch that was sent to the list 2013-09-29 -- bind: run in the chrooted jail ... which seems to have been rejected: http://patches.openembedded.org/patch/53845/ Cheers, Paul -- Paul

Re: [OE-core] [RFC PATCH] bind: add support for read-only rootfs

2013-11-21 Thread ChenQi
On 11/21/2013 08:12 PM, Phil Blundell wrote: On Thu, 2013-11-21 at 00:59 -0600, Mark Hatle wrote: +# When using a read-only rootfs additional setup may be required +# uncomment the following line to make bind start in read-only rootfs +#ALLOW_ROOTFS_READ_ONLY=yes If the filesystem is read-only

Re: [OE-core] [RFC PATCH] bind: add support for read-only rootfs

2013-11-21 Thread Phil Blundell
On Thu, 2013-11-21 at 20:24 +0800, ChenQi wrote: The purpose is to disable bind in a read-only file system by default. But if user really wants it, they can set this value to 'yes'. I'm still struggling a bit to understand the reasoning here. Why would you install bind in the first place if

Re: [OE-core] [RFC PATCH] bind: add support for read-only rootfs

2013-11-21 Thread Phil Blundell
On Thu, 2013-11-21 at 08:42 -0600, Mark Hatle wrote: On 11/21/13, 6:12 AM, Phil Blundell wrote: On Thu, 2013-11-21 at 00:59 -0600, Mark Hatle wrote: +# When using a read-only rootfs additional setup may be required +# uncomment the following line to make bind start in read-only rootfs

Re: [OE-core] [RFC PATCH] bind: add support for read-only rootfs

2013-11-21 Thread Mark Hatle
On 11/21/13, 6:12 AM, Phil Blundell wrote: On Thu, 2013-11-21 at 00:59 -0600, Mark Hatle wrote: +# When using a read-only rootfs additional setup may be required +# uncomment the following line to make bind start in read-only rootfs +#ALLOW_ROOTFS_READ_ONLY=yes If the filesystem is read-only

Re: [OE-core] [RFC PATCH] bind: add support for read-only rootfs

2013-11-21 Thread Mark Hatle
On 11/21/13, 6:40 AM, Phil Blundell wrote: On Thu, 2013-11-21 at 20:24 +0800, ChenQi wrote: The purpose is to disable bind in a read-only file system by default. But if user really wants it, they can set this value to 'yes'. I'm still struggling a bit to understand the reasoning here. Why

Re: [OE-core] [RFC PATCH] bind: add support for read-only rootfs

2013-11-21 Thread Phil Blundell
On Thu, 2013-11-21 at 08:44 -0600, Mark Hatle wrote: I have to send these patches, due to the YP compliance guidelines, which is why this is an RFC and not something I'm suggesting for the actual oe-core.. (since the patch it depends on was not accepted.) Ah, right, sorry, I hadn't quite

[OE-core] [RFC PATCH] bind: add support for read-only rootfs

2013-11-20 Thread Mark Hatle
From: Chen Qi qi.c...@windriver.com This patch adds support for read-only rootfs to the bind service. Now the init script will check a variable, ALLOW_ROOTFS_READ_ONLY, to see whether it should start the bind service in a read-only rootfs or not. The value is by default unset, thus disabling

Re: [OE-core] [RFC PATCH] bind: add support for read-only rootfs

2013-11-20 Thread Mark Hatle
Sorry I forgot to add, this requires the patch that was sent to the list 2013-09-29 -- bind: run in the chrooted jail On 11/21/13, 12:59 AM, Mark Hatle wrote: From: Chen Qi qi.c...@windriver.com This patch adds support for read-only rootfs to the bind service. Now the init script will check