From 2c80876ac2a42928167ed5567dc803179485c815 Mon Sep 17 00:00:00 2001 From: Gabriel Ionescu Date: Mon, 20 Nov 2017 19:03:25 +0100 Subject: run-postinsts: Disable dpkg --configure for debs to fix boot lockup When a board boots for the first time, it executes run-postinsts.service and dpkg-configure.service. Since both services run dpkg --configure, it sometimes results in locking up the login service. This patch disables the execution of dpkg --configure from run-postinsts by removing the deb keyword from the list of scanned packet types. Signed-off-by: Gabriel Ionescu Signed-off-by: Adrian Dudau --- recipes-devtools/run-postinsts/run-postinsts_1.0.bbappend | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 recipes-devtools/run-postinsts/run-postinsts_1.0.bbappend (limited to 'recipes-devtools') diff --git a/recipes-devtools/run-postinsts/run-postinsts_1.0.bbappend b/recipes-devtools/run-postinsts/run-postinsts_1.0.bbappend new file mode 100644 index 0000000..37b648b --- /dev/null +++ b/recipes-devtools/run-postinsts/run-postinsts_1.0.bbappend @@ -0,0 +1,7 @@ + +# Don't run 'dpkg --configure' for debs, because it is already executed by a +# service included in the dpkg recipe +do_install_append() { + sed -i 's/backend_list="rpm deb ipk"/backend_list="rpm ipk"/' \ + ${D}${sbindir}/run-postinsts +} -- cgit v1.2.3-54-g00ecf