summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2018-01-29 14:01:28 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-29 23:08:12 +0000
commit853ac4a061e47c70b61e255c3cf6109d2058d2cc (patch)
tree043f9a67c3f4dda685c126a97128e6581a3eab10
parenta65081b27109393ff6ec29cd122c017bff637928 (diff)
downloadopenembedded-core-contrib-853ac4a061e47c70b61e255c3cf6109d2058d2cc.tar.gz
openembedded-core-contrib-853ac4a061e47c70b61e255c3cf6109d2058d2cc.tar.bz2
openembedded-core-contrib-853ac4a061e47c70b61e255c3cf6109d2058d2cc.zip
postinst_intercepts: add a delay_to_first_boot hook
This allows postinsts scripts to explicitly request a deferral to first boot (by calling 'postinst_intercept delay_to_first_boot') instead of 'exit 1' which should be used only to indicate actual script failures. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--scripts/postinst-intercepts/delay_to_first_boot2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/postinst-intercepts/delay_to_first_boot b/scripts/postinst-intercepts/delay_to_first_boot
new file mode 100644
index 0000000000..ecdbef95dd
--- /dev/null
+++ b/scripts/postinst-intercepts/delay_to_first_boot
@@ -0,0 +1,2 @@
+#!/bin/sh
+exit 1