summaryrefslogtreecommitdiff
path: root/scripts/build/chroot_dpkg
diff options
context:
space:
mode:
authorLyndon Brown <jnqnfe@gmail.com>2020-02-26 03:57:30 +0000
committerRaphaƫl Hertzog <hertzog@debian.org>2020-03-05 11:52:01 +0000
commit7fb46c464b8ee697e4c91364b8f4ae0b3c277d87 (patch)
tree903af9e22b6285c151805374a6c298430fb035fa /scripts/build/chroot_dpkg
parent2f5ae873b0d0cb0a0f94ba03a279db09fdeb5fa6 (diff)
downloadvyos-live-build-7fb46c464b8ee697e4c91364b8f4ae0b3c277d87.tar.gz
vyos-live-build-7fb46c464b8ee697e4c91364b8f4ae0b3c277d87.zip
chroot_dpkg: start-stop-daemon simplification
inspired by what it does for `/usr/sbin/flash-kernel` Gbp-Dch: Short Closes: #952891
Diffstat (limited to 'scripts/build/chroot_dpkg')
-rwxr-xr-xscripts/build/chroot_dpkg7
1 files changed, 1 insertions, 6 deletions
diff --git a/scripts/build/chroot_dpkg b/scripts/build/chroot_dpkg
index b02dc648f..6615dfbc7 100755
--- a/scripts/build/chroot_dpkg
+++ b/scripts/build/chroot_dpkg
@@ -42,12 +42,7 @@ case "${1}" in
# Create custom start-stop-daemon program
Chroot chroot dpkg-divert --rename --quiet --add /sbin/start-stop-daemon
-
-cat > chroot/sbin/start-stop-daemon << EOF
-#!/bin/sh
-
-exit 0
-EOF
+ ln -fs /bin/true chroot/sbin/start-stop-daemon
chmod 755 chroot/sbin/start-stop-daemon