diff options
author | maximilian attems <maks@debian.org> | 2008-12-21 01:25:44 +0100 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2008-12-21 01:25:44 +0100 |
commit | d2791a8fa458d473ff92d0710fe4d71487c76d6b (patch) | |
tree | 820bc3af7f44eccf683dbaba5be6c1dc42a6387a | |
parent | 90ad6ff31f66112e863ea86c9960b9770a0a245e (diff) | |
download | initramfs-tools-d2791a8fa458d473ff92d0710fe4d71487c76d6b.tar.gz initramfs-tools-d2791a8fa458d473ff92d0710fe4d71487c76d6b.zip |
mkinitramfs: Use cp instead of copy_exec for configs.
should be just a bit faster and fixes relative path for -d option.
(closes: 472409)
-rwxr-xr-x | mkinitramfs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mkinitramfs b/mkinitramfs index 0fc45db..355ec9c 100755 --- a/mkinitramfs +++ b/mkinitramfs @@ -221,7 +221,7 @@ ln -s /usr/lib/klibc/bin/* ${DESTDIR}/bin ln -s /lib/klibc-*.so ${DESTDIR}/lib rm -f ${DESTDIR}/bin/kinit* ${DESTDIR}/bin/gzip -copy_exec /usr/share/initramfs-tools/init /init +cp -p /usr/share/initramfs-tools/init /init # add existant boot scripts for b in $(cd /usr/share/initramfs-tools/scripts/ && find . \ @@ -239,7 +239,7 @@ for b in $(cd "${CONFDIR}/scripts" && find . \ done echo "DPKG_ARCH=${DPKG_ARCH}" > ${DESTDIR}/conf/arch.conf -copy_exec "${CONFDIR}/initramfs.conf" /conf +cp -p "${CONFDIR}/initramfs.conf" /conf for i in ${EXTRA_CONF}; do if [ -e "${CONFDIR}/conf.d/${i}" ]; then copy_exec "${CONFDIR}/conf.d/${i}" /conf/conf.d |