systemd: add postrm u-a calls
PATCH 1/1 systemd: add postrm u-a calls
--- meta-oe/recipes-core/systemd/systemd_git.bb | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-)
meta-oe/recipes-core/systemd/systemd_git.bb +9 -2
@@ -14,7 +14,7 @@ inherit gitpkgv PKGV = "v${GITPKGVTAG}" PV = "git" -PR = "r5" +PR = "r6" inherit useradd pkgconfig autotools vala perlnative
@@ -108,7 +108,6 @@ RRECOMMENDS_${PN} += "kbd kbd-consolefonts \ # TODO: # u-a for runlevel and telinit -# u-a prerm pkg_postinst_systemd () { update-alternatives --install ${base_sbindir}/init init ${base_bindir}/systemd 300
@@ -117,3 +116,11 @@ update-alternatives --install ${base_sbindir}/reboot reboot ${base_bindir}/syste update-alternatives --install ${base_sbindir}/shutdown shutdown ${base_bindir}/systemctl 300 update-alternatives --install ${base_sbindir}/poweroff poweroff ${base_bindir}/systemctl 300 } + +pkg_postrm_systemd () { +update-alternatives --remove init ${base_bindir}/systemd +update-alternatives --remove halt ${base_bindir}/systemctl +update-alternatives --remove reboot ${base_bindir}/systemctl +update-alternatives --remove shutdown ${base_bindir}/systemctl +update-alternatives --remove poweroff ${base_bindir}/systemctl +}
Signature · 1 line
1.7.8.rc1
meta-oe/recipes-core/systemd/systemd_git.bb inherit gitpkgv · line 16
Quoted 13 lines · Martin Jansa
Signed-off-by Martin Jansa <[email protected]>--- meta-oe/recipes-core/systemd/systemd_git.bb | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-)meta-oe/recipes-core/systemd/systemd_git.bb +0
-1@@ -14,7 +14,7 @@ inherit gitpkgv # TODO: # u-a for runlevel and telinit -# u-a prerm
Here on your todo list, it stated u-a for prerm, but you applied it to the postrm. In this case, it probably doesn't really matter, but I'd still guess that it would make more sense to remove the u-a before removing the binaries. Although, I don't think it'll actually cause any problems in this case.
Cheers,
Anders
Quoted 14 lines
meta-oe/recipes-core/systemd/systemd_git.bb +8
-0pkg_postinst_systemd () { update-alternatives --install ${base_sbindir}/init init ${base_bindir}/systemd 300@@ -117,3 +116,11 @@ update-alternatives --install ${base_sbindir}/reboot reboot ${base_bindir}/syste update-alternatives --install ${base_sbindir}/shutdown shutdown ${base_bindir}/systemctl 300 update-alternatives --install ${base_sbindir}/poweroff poweroff ${base_bindir}/systemctl 300 } + +pkg_postrm_systemd () { +update-alternatives --remove init ${base_bindir}/systemd +update-alternatives --remove halt ${base_bindir}/systemctl +update-alternatives --remove reboot ${base_bindir}/systemctl +update-alternatives --remove shutdown ${base_bindir}/systemctl +update-alternatives --remove poweroff ${base_bindir}/systemctl +}
Signature · 2 lines
Anders Darander ChargeStorm AB / eStorm AB
Quoted 6 lines · Anders Darander
Quoted 4 lines · Martin Jansa
Signed-off-by Martin Jansa <[email protected]>--- meta-oe/recipes-core/systemd/systemd_git.bb | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-)
Quoted 14 lines
meta-oe/recipes-core/systemd/systemd_git.bb inherit gitpkgv · line 16
Quoted 8 lines
meta-oe/recipes-core/systemd/systemd_git.bb +0
-1@@ -14,7 +14,7 @@ inherit gitpkgv # TODO: # u-a for runlevel and telinit -# u-a prermHere on your todo list, it stated u-a for prerm, but you applied it to the postrm. In this case, it probably doesn't really matter, but I'd still guess that it would make more sense to remove the u-a before removing the binaries. Although, I don't think it'll actually cause any problems in this case.
I did what u-a.bbclass usually do.. if you think it should be in prerm then it would be best to first fix in u-a.bbclass and then we can update the rest of metadata.
Cheers,
Quoted 26 lines
Cheers,
AndersQuoted 14 lines
meta-oe/recipes-core/systemd/systemd_git.bb +8
-0pkg_postinst_systemd () { update-alternatives --install ${base_sbindir}/init init ${base_bindir}/systemd 300@@ -117,3 +116,11 @@ update-alternatives --install ${base_sbindir}/reboot reboot ${base_bindir}/syste update-alternatives --install ${base_sbindir}/shutdown shutdown ${base_bindir}/systemctl 300 update-alternatives --install ${base_sbindir}/poweroff poweroff ${base_bindir}/systemctl 300 } + +pkg_postrm_systemd () { +update-alternatives --remove init ${base_bindir}/systemd +update-alternatives --remove halt ${base_bindir}/systemctl +update-alternatives --remove reboot ${base_bindir}/systemctl +update-alternatives --remove shutdown ${base_bindir}/systemctl +update-alternatives --remove poweroff ${base_bindir}/systemctl +}Signature · 7 lines
Anders Darander ChargeStorm AB / eStorm AB _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 22 lines · Martin Jansa
Quoted 6 lines · Anders Darander
Quoted 4 lines · Martin Jansa
Signed-off-by Martin Jansa <[email protected]>--- meta-oe/recipes-core/systemd/systemd_git.bb | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-)Quoted 14 lines
meta-oe/recipes-core/systemd/systemd_git.bb inherit gitpkgv · line 16
Quoted 8 lines
meta-oe/recipes-core/systemd/systemd_git.bb +0
-1@@ -14,7 +14,7 @@ inherit gitpkgv # TODO: # u-a for runlevel and telinit -# u-a prermHere on your todo list, it stated u-a for prerm, but you applied it to the postrm. In this case, it probably doesn't really matter, but I'd still guess that it would make more sense to remove the u-a before removing the binaries. Although, I don't think it'll actually cause any problems in this case.
Quoted 3 lines
I did what u-a.bbclass usually do.. if you think it should be in prerm then it would be best to first fix in u-a.bbclass and then we can update the rest of metadata.
Yeah, like I said, is't likely not a real problem. There'll probably just be a tiny window during which, in this case, e.g. reboot isn't available, before u-a has been told to change the reboot link.
I'm currently just a little bit catious as I've recently stumbled upon post-/prerm issues using rpm... (Although the ones I know of (busybox updates, rsyslog removal) are either fixed or there has been patches submitted).
I'll see if I ever get the time to look into it.
Cheers,
Anders
Signature · 2 lines
Anders Darander ChargeStorm AB / eStorm AB
Quoted 27 lines · Anders Darander
Quoted 22 lines · Martin Jansa
Quoted 6 lines · Anders Darander
Quoted 4 lines · Martin Jansa
Signed-off-by Martin Jansa <[email protected]>--- meta-oe/recipes-core/systemd/systemd_git.bb | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-)Quoted 14 lines
meta-oe/recipes-core/systemd/systemd_git.bb inherit gitpkgv · line 16
Quoted 8 lines
meta-oe/recipes-core/systemd/systemd_git.bb +0
-1@@ -14,7 +14,7 @@ inherit gitpkgv # TODO: # u-a for runlevel and telinit -# u-a prermHere on your todo list, it stated u-a for prerm, but you applied it to the postrm. In this case, it probably doesn't really matter, but I'd still guess that it would make more sense to remove the u-a before removing the binaries. Although, I don't think it'll actually cause any problems in this case.
Quoted 3 lines
I did what u-a.bbclass usually do.. if you think it should be in prerm then it would be best to first fix in u-a.bbclass and then we can update the rest of metadata.
Quoted 8 lines
Yeah, like I said, is't likely not a real problem. There'll probably just be a tiny window during which, in this case, e.g. reboot isn't available, before u-a has been told to change the reboot link.
I'm currently just a little bit catious as I've recently stumbled upon post-/prerm issues using rpm... (Although the ones I know of (busybox updates, rsyslog removal) are either fixed or there has been patches submitted).
So should I change postrm to prerm in this patch or is there other reason why it wasn't applied yet?
Cheers,
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 32 lines · Martin Jansa
Quoted 31 lines · Anders Darander
Quoted 22 lines · Martin Jansa
Quoted 6 lines · Anders Darander
Quoted 4 lines · Martin Jansa
Signed-off-by Martin Jansa <[email protected]>--- meta-oe/recipes-core/systemd/systemd_git.bb | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-)Quoted 14 lines
meta-oe/recipes-core/systemd/systemd_git.bb inherit gitpkgv · line 16
Quoted 8 lines
meta-oe/recipes-core/systemd/systemd_git.bb +0
-1@@ -14,7 +14,7 @@ inherit gitpkgv # TODO: # u-a for runlevel and telinit -# u-a prermHere on your todo list, it stated u-a for prerm, but you applied it to the postrm. In this case, it probably doesn't really matter, but I'd still guess that it would make more sense to remove the u-a before removing the binaries. Although, I don't think it'll actually cause any problems in this case.
Quoted 3 lines
I did what u-a.bbclass usually do.. if you think it should be in prerm then it would be best to first fix in u-a.bbclass and then we can update the rest of metadata.
Yeah, like I said, is't likely not a real problem. There'll probably just be a tiny window during which, in this case, e.g. reboot isn't available, before u-a has been told to change the reboot link.
Quoted 7 lines
Quoted 4 lines
I'm currently just a little bit catious as I've recently stumbled upon post-/prerm issues using rpm... (Although the ones I know of (busybox updates, rsyslog removal) are either fixed or there has been patches submitted).
So should I change postrm to prerm in this patch or is there other reason why it wasn't applied yet?
ping
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Op 21-11-11 09:46, Martin Jansa schreef:
Quoted 31 lines · Martin Jansa
Quoted 30 lines · Anders Darander
Quoted 29 lines · Martin Jansa
Quoted 20 lines · Anders Darander
Quoted 5 lines · Martin Jansa
Quoted 3 lines
Signed-off-by Martin Jansa <[email protected]> ---meta-oe/recipes-core/systemd/systemd_git.bb | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)Quoted 13 lines
Quoted 7 lines
(quoted diff) +0
-0b/meta-oe/recipes-core/systemd/systemd_git.bb index 90862a3..d1d4306 100644 --- a/meta-oe/recipes-core/systemd/systemd_git.bb +++ b/meta-oe/recipes-core/systemd/systemd_git.bb @@ -14,7 +14,7 @@ inherit gitpkgv # TODO: # u-a for runlevel and telinit -# u-a prerm
Here on your todo list, it stated u-a for prerm, but you applied it to the postrm. In this case, it probably doesn't really matter, but I'd still guess that it would make more sense to remove the u-a before removing the binaries. Although, I don't think it'll actually cause any problems in this case.
Quoted 3 lines
I did what u-a.bbclass usually do.. if you think it should be in prerm then it would be best to first fix in u-a.bbclass and then we can update the rest of metadata.
Yeah, like I said, is't likely not a real problem. There'll probably just be a tiny window during which, in this case, e.g. reboot isn't available, before u-a has been told to change the reboot link.
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
I'm currently just a little bit catious as I've recently stumbled upon post-/prerm issues using rpm... (Although the ones I know of (busybox updates, rsyslog removal) are either fixed or there has been patches submitted).
So should I change postrm to prerm in this patch or is there other reason why it wasn't applied yet?
I was waiting for Anders to comment on it :) Changing to prerm would be better.
regards,
Koen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: GPGTools - http://gpgtools.org
iEYEARECAAYFAk7KGs8ACgkQMkyGM64RGpFddACghK4Srey32MmPC9KSCl5uLP4T KDwAoKc4IGiGwRrOVXzgRtHTjmhxYzra
=QnvQ
-----END PGP SIGNATURE-----
PATCH v2 1/1 systemd: add prerm u-a calls
--- meta-oe/recipes-core/systemd/systemd_git.bb | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-)
meta-oe/recipes-core/systemd/systemd_git.bb +8 -1
@@ -108,7 +108,6 @@ RRECOMMENDS_${PN} += "kbd kbd-consolefonts \ # TODO: # u-a for runlevel and telinit -# u-a prerm pkg_postinst_systemd () { update-alternatives --install ${base_sbindir}/init init ${base_bindir}/systemd 300
@@ -117,3 +116,11 @@ update-alternatives --install ${base_sbindir}/reboot reboot ${base_bindir}/syste update-alternatives --install ${base_sbindir}/shutdown shutdown ${base_bindir}/systemctl 300 update-alternatives --install ${base_sbindir}/poweroff poweroff ${base_bindir}/systemctl 300 } + +pkg_prerm_systemd () { +update-alternatives --remove init ${base_bindir}/systemd +update-alternatives --remove halt ${base_bindir}/systemctl +update-alternatives --remove reboot ${base_bindir}/systemctl +update-alternatives --remove shutdown ${base_bindir}/systemctl +update-alternatives --remove poweroff ${base_bindir}/systemctl +}
Signature · 1 line
1.7.8.rc3
Quoted 37 lines · Koen Kooi
Op 21-11-11 09:46, Martin Jansa schreef:
Quoted 35 lines · Martin Jansa
Quoted 34 lines · Anders Darander
Quoted 33 lines · Martin Jansa
Quoted 20 lines · Anders Darander
Quoted 5 lines · Martin Jansa
Quoted 3 lines
Signed-off-by Martin Jansa <[email protected]> ---meta-oe/recipes-core/systemd/systemd_git.bb | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)Quoted 13 lines
Quoted 7 lines
(quoted diff) +0
-0b/meta-oe/recipes-core/systemd/systemd_git.bb index 90862a3..d1d4306 100644 --- a/meta-oe/recipes-core/systemd/systemd_git.bb +++ b/meta-oe/recipes-core/systemd/systemd_git.bb @@ -14,7 +14,7 @@ inherit gitpkgv # TODO: # u-a for runlevel and telinit -# u-a prerm
Here on your todo list, it stated u-a for prerm, but you applied it to the postrm. In this case, it probably doesn't really matter, but I'd still guess that it would make more sense to remove the u-a before removing the binaries. Although, I don't think it'll actually cause any problems in this case.
Quoted 3 lines
I did what u-a.bbclass usually do.. if you think it should be in prerm then it would be best to first fix in u-a.bbclass and then we can update the rest of metadata.
Yeah, like I said, is't likely not a real problem. There'll probably just be a tiny window during which, in this case, e.g. reboot isn't available, before u-a has been told to change the reboot link.
I'm currently just a little bit catious as I've recently stumbled upon post-/prerm issues using rpm... (Although the ones I know of (busybox updates, rsyslog removal) are either fixed or there has been patches submitted).
Quoted 4 lines
Quoted 2 lines
Quoted 2 lines
So should I change postrm to prerm in this patch or is there other reason why it wasn't applied yet?
I was waiting for Anders to comment on it :) Changing to prerm would be better.
Sorry, for the delay. I've been out of the loop for almost a week (hardly read any emails at all).
Well, prerm would probably be better, as Koen stated, not least long-ternm. But postrm has been working as far as I see, so I'll leave it to you to decide.
Cheers,
/Anders
Signature · 2 lines
Anders Darander ChargeStorm AB / eStorm AB