Skip to contentSkip to conversation

rootfs_ipk: remove runtime_script_required usage

PATCH Applied Martin Jansa 2 participants 2 messages Jan 25, 2012 – Feb 2, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rootfs_ipk: remove runtime_script_required usage

* it was introduced in 87780fc09b066525e47d0f50ee5497db54d304cd
* then partially removed in 2feba313c991170747381c7cf821a45c2cd04632
* so remove this use too as runtime_script_required is not initialized anymore and results in run.do_rootfs.6328: line 235: [: -eq: unary operator expected

---
 meta/classes/rootfs_ipk.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta/classes/rootfs_ipk.bbclass +1 -1
index 48fb2fb..5342035 100644
@@ -90,7 +90,7 @@ fakeroot rootfs_ipk_do_rootfs () {
 	rm -f ${IMAGE_ROOTFS}${opkglibdir}/lists/*
 
 	if ${@base_contains("IMAGE_FEATURES", "package-management", "false", "true", d)}; then
-		if [ $runtime_script_required -eq 0 ]; then
+		if ! grep Status:.install.ok.unpacked ${IMAGE_ROOTFS}${opkglibdir}status; then
 			# All packages were successfully configured.
 			# update-rc.d, base-passwd are no further use, remove them now
 			opkg-cl ${IPKG_ARGS} --force-depends remove update-rc.d base-passwd || true
Signature · 1 line
1.7.8.4
Applied
#1 lore raw
Quoted 15 lines · Martin Jansa

* it was introduced in 87780fc09b066525e47d0f50ee5497db54d304cd
* then partially removed in 2feba313c991170747381c7cf821a45c2cd04632
* so remove this use too as runtime_script_required is not initialized anymore and results in run.do_rootfs.6328: line 235: [: -eq: unary operator expected

---
  meta/classes/rootfs_ipk.bbclass |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
meta/classes/rootfs_ipk.bbclass +0 -0
index 48fb2fb..5342035 100644

meta/classes/rootfs_ipk.bbclass fakeroot rootfs_ipk_do_rootfs () { · line 96

Quoted 8 lines
meta/classes/rootfs_ipk.bbclass +1 -1
@@ -90,7 +90,7 @@ fakeroot rootfs_ipk_do_rootfs () {
  	rm -f ${IMAGE_ROOTFS}${opkglibdir}/lists/*
 
  	if ${@base_contains("IMAGE_FEATURES", "package-management", "false", "true", d)}; then
-		if [ $runtime_script_required -eq 0 ]; then
+		if ! grep Status:.install.ok.unpacked ${IMAGE_ROOTFS}${opkglibdir}status; then
  			# All packages were successfully configured.
  			# update-rc.d, base-passwd are no further use, remove them now
  			opkg-cl ${IPKG_ARGS} --force-depends remove update-rc.d base-passwd || true

Merged into OE-core

Thanks
Sau!