Re: [OE-core] [PATCH 2/8] initscripts: add setup-commands.sh

2013-11-11 Thread Mark Hatle
On 11/11/13, 6:12 AM, Burton, Ross wrote: On 11 November 2013 02:52, ChenQi wrote: The problem here is that the init scripts under /etc/rcS.d/ need to execute commands like awk, dirname, and readlink which are from /usr. Yes. So why do you really need to support split /usr, and why isn't an

Re: [OE-core] [PATCH 2/8] initscripts: add setup-commands.sh

2013-11-11 Thread Mark Hatle
On 11/11/13, 5:53 AM, Phil Blundell wrote: On Mon, 2013-11-11 at 10:52 +0800, ChenQi wrote: On 11/10/2013 07:00 AM, Phil Blundell wrote: ... I thought that last time this topic came up on the mailing list, the eventual conclusion was that Wind River (being more-or-less the only people who se

Re: [OE-core] [PATCH 2/8] initscripts: add setup-commands.sh

2013-11-11 Thread Phil Blundell
On Mon, 2013-11-11 at 20:40 +0800, ChenQi wrote: > Hi Phil, > > First of all, thank you for your careful review and explanation. > To conclude, you suggest modifying the init scripts and moving commands > around if needed, right? Well, I'm not sure that I'm necessarily suggesting any particular

Re: [OE-core] [PATCH 2/8] initscripts: add setup-commands.sh

2013-11-11 Thread ChenQi
On 11/11/2013 08:12 PM, Burton, Ross wrote: On 11 November 2013 02:52, ChenQi wrote: The problem here is that the init scripts under /etc/rcS.d/ need to execute commands like awk, dirname, and readlink which are from /usr. Yes. So why do you really need to support split /usr, and why isn't an

Re: [OE-core] [PATCH 2/8] initscripts: add setup-commands.sh

2013-11-11 Thread ChenQi
Hi Phil, First of all, thank you for your careful review and explanation. To conclude, you suggest modifying the init scripts and moving commands around if needed, right? And please see comments inline. On 11/11/2013 07:53 PM, Phil Blundell wrote: On Mon, 2013-11-11 at 10:52 +0800, ChenQi wr

Re: [OE-core] [PATCH 2/8] initscripts: add setup-commands.sh

2013-11-11 Thread Burton, Ross
On 11 November 2013 02:52, ChenQi wrote: > The problem here is that the init scripts under /etc/rcS.d/ need to execute > commands like awk, dirname, and readlink which are from /usr. Yes. So why do you really need to support split /usr, and why isn't an initramfs a suitable alternative? People

Re: [OE-core] [PATCH 2/8] initscripts: add setup-commands.sh

2013-11-11 Thread Phil Blundell
On Mon, 2013-11-11 at 10:52 +0800, ChenQi wrote: > On 11/10/2013 07:00 AM, Phil Blundell wrote: > > 1. initscript doesn't obviously rdepend on busybox so it's not obvious > > that the latter will always be available; > > Yes. Initscript doesn't rdepend on busybox. But note it also doesn't > rdepen

Re: [OE-core] [PATCH 2/8] initscripts: add setup-commands.sh

2013-11-10 Thread ChenQi
On 11/10/2013 07:00 AM, Phil Blundell wrote: On Sat, 2013-11-09 at 13:28 +0800, qi.c...@windriver.com wrote: +for dir in /usr/bin /usr/sbin; do +if [ ! -e $dir ]; then + if [ "$VERBOSE" != "no" ]; then + echo "WARN: $dir missing, setting up links to busybox" + fi +

Re: [OE-core] [PATCH 2/8] initscripts: add setup-commands.sh

2013-11-09 Thread Phil Blundell
On Sat, 2013-11-09 at 13:28 +0800, qi.c...@windriver.com wrote: > +for dir in /usr/bin /usr/sbin; do > +if [ ! -e $dir ]; then > + if [ "$VERBOSE" != "no" ]; then > + echo "WARN: $dir missing, setting up links to busybox" > + fi > + mkdir -p $dir > + for suffix in ".nosu