Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/2] make runlevel to return correct value
@ 2013-09-04  6:56 rongqing.li
  2013-09-04  6:56 ` [PATCH 1/2] systemd-compat-units: do not create runlevel command rongqing.li
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: rongqing.li @ 2013-09-04  6:56 UTC (permalink / raw)
  To: openembedded-core

From: "Roy.Li" <rongqing.li@windriver.com>

The following changes since commit 8c272641ef3e8410f331ca4133d28dea8f36e4f4:

  lib/oeqa/runtime: smart: serve repo on host ip only and increase timeout (2013-09-03 19:57:31 +0100)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib roy/systemd-1
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=roy/systemd-1

Roy.Li (2):
  systemd-compat-units: do not create runlevel command
  systemd: link runlevel from systemctl

 meta/recipes-core/systemd/systemd-compat-units.bb |    5 -----
 meta/recipes-core/systemd/systemd_206.bb          |    6 +++++-
 2 files changed, 5 insertions(+), 6 deletions(-)

-- 
1.7.10.4



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH 1/2] systemd-compat-units: do not create runlevel command
  2013-09-04  6:56 [PATCH 0/2] make runlevel to return correct value rongqing.li
@ 2013-09-04  6:56 ` rongqing.li
  2013-09-04  7:00   ` Rongqing Li
  2013-09-04  6:56 ` [PATCH 2/2] systemd: link runlevel from systemctl rongqing.li
  2013-09-12  0:08 ` [PATCH 0/2] make runlevel to return correct value Rongqing Li
  2 siblings, 1 reply; 6+ messages in thread
From: rongqing.li @ 2013-09-04  6:56 UTC (permalink / raw)
  To: openembedded-core

From: "Roy.Li" <rongqing.li@windriver.com>

It seems strange that runlevel always returns 1, we should create
a runlevel link to systemctl if systemd is installed.

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
---
 meta/recipes-core/systemd/systemd-compat-units.bb |    5 -----
 1 file changed, 5 deletions(-)

diff --git a/meta/recipes-core/systemd/systemd-compat-units.bb b/meta/recipes-core/systemd/systemd-compat-units.bb
index 9b4a8a4..c47c14b 100644
--- a/meta/recipes-core/systemd/systemd-compat-units.bb
+++ b/meta/recipes-core/systemd/systemd-compat-units.bb
@@ -21,11 +21,6 @@ do_install() {
 	install -m 0644 ${WORKDIR}/machineid.service ${D}${systemd_unitdir}/system
 	ln -sf ../machineid.service ${D}${systemd_unitdir}/system/sysinit.target.wants/
 	ln -sf ../machineid.service ${D}${systemd_unitdir}/system/basic.target.wants/
-
-	# hack to make old style sysvinit postinsts succeed
-	install -d ${D}${bindir}
-	echo "echo 1" > ${D}${bindir}/runlevel
-	chmod 0755 ${D}${bindir}/runlevel
 }
 
 SYSTEMD_DISABLED_SYSV_SERVICES = " \
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH 2/2] systemd: link runlevel from systemctl
  2013-09-04  6:56 [PATCH 0/2] make runlevel to return correct value rongqing.li
  2013-09-04  6:56 ` [PATCH 1/2] systemd-compat-units: do not create runlevel command rongqing.li
@ 2013-09-04  6:56 ` rongqing.li
  2013-09-12  0:08 ` [PATCH 0/2] make runlevel to return correct value Rongqing Li
  2 siblings, 0 replies; 6+ messages in thread
From: rongqing.li @ 2013-09-04  6:56 UTC (permalink / raw)
  To: openembedded-core

From: "Roy.Li" <rongqing.li@windriver.com>

using update-alternatives to link runlevel from systemctl, as on Fedora 18

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
---
 meta/recipes-core/systemd/systemd_206.bb |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-core/systemd/systemd_206.bb b/meta/recipes-core/systemd/systemd_206.bb
index 75bdc61..519d50f 100644
--- a/meta/recipes-core/systemd/systemd_206.bb
+++ b/meta/recipes-core/systemd/systemd_206.bb
@@ -253,7 +253,7 @@ python __anonymous() {
 # TODO:
 # u-a for runlevel and telinit
 
-ALTERNATIVE_${PN} = "init halt reboot shutdown poweroff"
+ALTERNATIVE_${PN} = "init halt reboot shutdown poweroff runlevel"
 
 ALTERNATIVE_TARGET[init] = "${rootlibexecdir}/systemd/systemd"
 ALTERNATIVE_LINK_NAME[init] = "${base_sbindir}/init"
@@ -275,6 +275,10 @@ ALTERNATIVE_TARGET[poweroff] = "${base_bindir}/systemctl"
 ALTERNATIVE_LINK_NAME[poweroff] = "${base_sbindir}/poweroff"
 ALTERNATIVE_PRIORITY[poweroff] ?= "300"
 
+ALTERNATIVE_TARGET[runlevel] = "${base_bindir}/systemctl"
+ALTERNATIVE_LINK_NAME[runlevel] = "${base_sbindir}/runlevel"
+ALTERNATIVE_PRIORITY[runlevel] ?= "300"
+
 pkg_postinst_udev-hwdb () {
 	if test -n "$D"; then
 		${@qemu_run_binary(d, '$D', '${base_bindir}/udevadm')} hwdb --update \
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH 1/2] systemd-compat-units: do not create runlevel command
  2013-09-04  6:56 ` [PATCH 1/2] systemd-compat-units: do not create runlevel command rongqing.li
@ 2013-09-04  7:00   ` Rongqing Li
  0 siblings, 0 replies; 6+ messages in thread
From: Rongqing Li @ 2013-09-04  7:00 UTC (permalink / raw)
  To: rongqing.li; +Cc: openembedded-core

On 09/04/2013 02:56 PM, rongqing.li@windriver.com wrote:
> From: "Roy.Li" <rongqing.li@windriver.com>
>
> It seems strange that runlevel always returns 1, we should create
> a runlevel link to systemctl if systemd is installed.
>
> Signed-off-by: Roy.Li <rongqing.li@windriver.com>
> ---
>   meta/recipes-core/systemd/systemd-compat-units.bb |    5 -----
>   1 file changed, 5 deletions(-)
>
> diff --git a/meta/recipes-core/systemd/systemd-compat-units.bb b/meta/recipes-core/systemd/systemd-compat-units.bb
> index 9b4a8a4..c47c14b 100644
> --- a/meta/recipes-core/systemd/systemd-compat-units.bb
> +++ b/meta/recipes-core/systemd/systemd-compat-units.bb
> @@ -21,11 +21,6 @@ do_install() {
>   	install -m 0644 ${WORKDIR}/machineid.service ${D}${systemd_unitdir}/system
>   	ln -sf ../machineid.service ${D}${systemd_unitdir}/system/sysinit.target.wants/
>   	ln -sf ../machineid.service ${D}${systemd_unitdir}/system/basic.target.wants/
> -
> -	# hack to make old style sysvinit postinsts succeed
> -	install -d ${D}${bindir}
> -	echo "echo 1" > ${D}${bindir}/runlevel
> -	chmod 0755 ${D}${bindir}/runlevel


In fact, I am not sure what they are fixing, if these codes are still using,
I will think other methods to make runlevel work

-Roy



>   }
>
>   SYSTEMD_DISABLED_SYSV_SERVICES = " \
>

-- 
Best Reagrds,
Roy | RongQing Li


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/2] make runlevel to return correct value
  2013-09-04  6:56 [PATCH 0/2] make runlevel to return correct value rongqing.li
  2013-09-04  6:56 ` [PATCH 1/2] systemd-compat-units: do not create runlevel command rongqing.li
  2013-09-04  6:56 ` [PATCH 2/2] systemd: link runlevel from systemctl rongqing.li
@ 2013-09-12  0:08 ` Rongqing Li
  2013-09-12 15:45   ` Saul Wold
  2 siblings, 1 reply; 6+ messages in thread
From: Rongqing Li @ 2013-09-12  0:08 UTC (permalink / raw)
  To: openembedded-core

ping...

-Roy

On 09/04/2013 02:56 PM, rongqing.li@windriver.com wrote:
> From: "Roy.Li" <rongqing.li@windriver.com>
>
> The following changes since commit 8c272641ef3e8410f331ca4133d28dea8f36e4f4:
>
>    lib/oeqa/runtime: smart: serve repo on host ip only and increase timeout (2013-09-03 19:57:31 +0100)
>
> are available in the git repository at:
>
>    git://git.pokylinux.org/poky-contrib roy/systemd-1
>    http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=roy/systemd-1
>
> Roy.Li (2):
>    systemd-compat-units: do not create runlevel command
>    systemd: link runlevel from systemctl
>
>   meta/recipes-core/systemd/systemd-compat-units.bb |    5 -----
>   meta/recipes-core/systemd/systemd_206.bb          |    6 +++++-
>   2 files changed, 5 insertions(+), 6 deletions(-)
>

-- 
Best Reagrds,
Roy | RongQing Li


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH 0/2] make runlevel to return correct value
  2013-09-12  0:08 ` [PATCH 0/2] make runlevel to return correct value Rongqing Li
@ 2013-09-12 15:45   ` Saul Wold
  0 siblings, 0 replies; 6+ messages in thread
From: Saul Wold @ 2013-09-12 15:45 UTC (permalink / raw)
  To: Rongqing Li; +Cc: openembedded-core

On 09/11/2013 05:08 PM, Rongqing Li wrote:
> ping...
>
You replied to your patch question if it was right, therefore I put this 
off expecting an updated patchset.

Or are you asking about 2/2?

Sau!

> -Roy
>
> On 09/04/2013 02:56 PM, rongqing.li@windriver.com wrote:
>> From: "Roy.Li" <rongqing.li@windriver.com>
>>
>> The following changes since commit
>> 8c272641ef3e8410f331ca4133d28dea8f36e4f4:
>>
>>    lib/oeqa/runtime: smart: serve repo on host ip only and increase
>> timeout (2013-09-03 19:57:31 +0100)
>>
>> are available in the git repository at:
>>
>>    git://git.pokylinux.org/poky-contrib roy/systemd-1
>>    http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=roy/systemd-1
>>
>> Roy.Li (2):
>>    systemd-compat-units: do not create runlevel command
>>    systemd: link runlevel from systemctl
>>
>>   meta/recipes-core/systemd/systemd-compat-units.bb |    5 -----
>>   meta/recipes-core/systemd/systemd_206.bb          |    6 +++++-
>>   2 files changed, 5 insertions(+), 6 deletions(-)
>>
>


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-09-12 15:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-04  6:56 [PATCH 0/2] make runlevel to return correct value rongqing.li
2013-09-04  6:56 ` [PATCH 1/2] systemd-compat-units: do not create runlevel command rongqing.li
2013-09-04  7:00   ` Rongqing Li
2013-09-04  6:56 ` [PATCH 2/2] systemd: link runlevel from systemctl rongqing.li
2013-09-12  0:08 ` [PATCH 0/2] make runlevel to return correct value Rongqing Li
2013-09-12 15:45   ` Saul Wold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox