summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2020-01-18 15:35:50 +0000
committerBen Hutchings <ben@decadent.org.uk>2020-01-18 15:35:50 +0000
commit15fd713e73d6a89d63bf7bdc4c6bfccb409f1cec (patch)
tree46b1b054da4902f5118c28c99181c5678ccfcd67
parent30298d850de3c1e879d9896fcd2db9854ce64fc3 (diff)
initramfs-tools(7): Change example to use copy_exec instead of cp
Executables should always be installed into the initramfs with copy_exec. Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r--initramfs-tools.72
1 files changed, 1 insertions, 1 deletions
diff --git a/initramfs-tools.7 b/initramfs-tools.7
index 45b7de7..a36b50a 100644
--- a/initramfs-tools.7
+++ b/initramfs-tools.7
@@ -516,7 +516,7 @@ if [ ! \-x "/sbin/frobnicate" ]; then
fi
force_load frobnicator interval=10
-cp /sbin/frobnicate "${DESTDIR}/sbin"
+copy_exec /sbin/frobnicate /sbin
exit 0
.fi
.RE