Skip to contentSkip to conversation

change default runlevel for lsb images

PATCH In review Kang Kai 1 participant 3 messages Mar 6, 2013 – Mar 27, 2013

lore
Share & tools
lore

Kang Kai

author
#0 lore raw

cover change default runlevel for lsb images

The following changes since commit 6663b79452bcdd95fc69e1ec853baae6c5297ab2:

libpcap: fix description variable (2013-03-05 18:00:34 +0000)

are available in the git repository at:
git://git.pokylinux.org/poky-contrib kangkai/sysvinit-inittab-lsb
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kangkai/sysvinit-inittab-lsb

Kang Kai (1):
sysvinit-inittab: change default runlevel for lsb

 .../sysvinit/sysvinit-inittab_2.88dsf.bb           |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
Signature · 1 line
1.7.5.4
author
#1 lore raw

PATCH 1/1 sysvinit-inittab: change default runlevel for lsb

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]

---
 .../sysvinit/sysvinit-inittab_2.88dsf.bb           |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb +4 -0
index b289853..87c701b 100644
@@ -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}"
Signature · 1 line
1.7.5.4
author
#2 lore raw

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

Quoted 4 lines · Kang Kai

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

Quoted 23 lines

[YOCTO #3927]

---
  .../sysvinit/sysvinit-inittab_2.88dsf.bb           |    4 ++++
  1 files changed, 4 insertions(+), 0 deletions(-)
meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb +4 -0
index b289853..87c701b 100644
@@ -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}"