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>
This commit is contained in:
Ben Hutchings 2020-01-18 15:35:50 +00:00
parent 30298d850d
commit 15fd713e73

View File

@ -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