Patchwork [1/1] sysvinit-inittab: change default runlevel for lsb

login
register
mail settings
Submitter Kang Kai
Date March 6, 2013, 6:16 a.m.
Message ID <43b5f9785b001759b6280bf50015a5505fcb0b2b.1362550241.git.kai.kang@windriver.com>
Download mbox | patch
Permalink /patch/45581/
State New
Headers show

Comments

Kang Kai - March 6, 2013, 6:16 a.m.
LSB images are used to run LSB test suite and there is no test case to
check GUI so X/GUI is not included into LSB images. And in LSB
specification, runlevel 5 is to boot with GUI, so change the default
runlevel from 5 to 3 for LSB images.

[YOCTO #3927]

Signed-off-by: Kang Kai <kai.kang@windriver.com>
---
 .../sysvinit/sysvinit-inittab_2.88dsf.bb           |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
Kang Kai - March 27, 2013, 8:39 a.m.
On 2013?03?06? 14:16, Kang Kai wrote:
> LSB images are used to run LSB test suite and there is no test case to
> check GUI so X/GUI is not included into LSB images. And in LSB
> specification, runlevel 5 is to boot with GUI, so change the default
> runlevel from 5 to 3 for LSB images.
Any comment?

--Kai

>
> [YOCTO #3927]
>
> Signed-off-by: Kang Kai<kai.kang@windriver.com>
> ---
>   .../sysvinit/sysvinit-inittab_2.88dsf.bb           |    4 ++++
>   1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
> index b289853..87c701b 100644
> --- a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
> +++ b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
> @@ -73,6 +73,10 @@ else
>   fi
>   }
>
> +do_install_append_linuxstdbase() {
> +	sed -i 's/^id:5:initdefault/id:3:initdefault/' ${D}${sysconfdir}/inittab
> +}
> +
>   # USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf.
>   # Set PACKAGE_ARCH appropriately.
>   PACKAGE_ARCH = "${MACHINE_ARCH}"

Patch

diff --git a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
index b289853..87c701b 100644
--- a/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
+++ b/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb
@@ -73,6 +73,10 @@  else
 fi
 }
 
+do_install_append_linuxstdbase() {
+	sed -i 's/^id:5:initdefault/id:3:initdefault/' ${D}${sysconfdir}/inittab
+}
+
 # USE_VT and SERIAL_CONSOLE are generally defined by the MACHINE .conf.
 # Set PACKAGE_ARCH appropriately.
 PACKAGE_ARCH = "${MACHINE_ARCH}"