From 736eeadb4d640b4cc73c26c0dca687a68bbb4fd3 Mon Sep 17 00:00:00 2001 From: Jeffrey Townsend Date: Sun, 15 Apr 2018 22:41:28 +0000 Subject: [PATCH] Use onldebni to automatically run debian operations non-interactively under policy-rc.d protection. This is useful for automated RFS modifications after first creation. --- packages/base/all/vendor-config-onl/src/bin/onldebni | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 packages/base/all/vendor-config-onl/src/bin/onldebni diff --git a/packages/base/all/vendor-config-onl/src/bin/onldebni b/packages/base/all/vendor-config-onl/src/bin/onldebni new file mode 100755 index 00000000..1d02eeac --- /dev/null +++ b/packages/base/all/vendor-config-onl/src/bin/onldebni @@ -0,0 +1,9 @@ +#!/bin/bash +/bin/echo -e "#!/bin/sh\\nexit 101" >/usr/sbin/policy-rc.d +chmod +x /usr/sbin/policy-rc.d +export DEBIAN_FRONTEND=noninteractive +export DEBCONF_NONINTERACTIVE_SEEN=true +$@ +rc=$? +rm -f /usr/sbin/policy-rc.d +exit $rc