diff options
| author | maximilian attems <maks@debian.org> | 2007-08-27 10:10:40 +0200 |
|---|---|---|
| committer | maximilian attems <maks@debian.org> | 2007-08-27 10:10:40 +0200 |
| commit | f26697d21e617646da61bed3c88e48be1d781cf5 (patch) | |
| tree | ff046c31cb1d6de5681c564d1766b99b21e923ea /mkinitramfs | |
| parent | cd3e97b5b87380e8d1700c6f86d907ad40a1179d (diff) | |
| download | initramfs-tools-f26697d21e617646da61bed3c88e48be1d781cf5.tar.gz initramfs-tools-f26697d21e617646da61bed3c88e48be1d781cf5.zip | |
mkinitramfs, hooks/keymap: add trailing slash to cp destionation
just make sure we really copy into a dir and not a file.
Diffstat (limited to 'mkinitramfs')
| -rwxr-xr-x | mkinitramfs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mkinitramfs b/mkinitramfs index 90a7702..4ba9cd4 100755 --- a/mkinitramfs +++ b/mkinitramfs @@ -219,13 +219,13 @@ for b in $(cd /usr/share/initramfs-tools/scripts/ && find . \ [ -d "${DESTDIR}/scripts/$(dirname "${b}")" ] \ || mkdir -p "${DESTDIR}/scripts/$(dirname "${b}")" cp -p "/usr/share/initramfs-tools/scripts/${b}" \ - "${DESTDIR}/scripts/$(dirname "${b}")" + "${DESTDIR}/scripts/$(dirname "${b}")/" done for b in $(cd "${CONFDIR}/scripts" && find . \ -regextype posix-extended -regex '.*/[[:alnum:]_]+$' -type f); do [ -d "${DESTDIR}/scripts/$(dirname "${b}")" ] \ || mkdir -p "${DESTDIR}/scripts/$(dirname "${b}")" - cp -p "${CONFDIR}/scripts/${b}" "${DESTDIR}/scripts/$(dirname "${b}")" + cp -p "${CONFDIR}/scripts/${b}" "${DESTDIR}/scripts/$(dirname "${b}")/" done echo "DPKG_ARCH=${DPKG_ARCH}" > ${DESTDIR}/conf/arch.conf @@ -264,11 +264,11 @@ copy_exec /sbin/modprobe /sbin copy_exec /sbin/depmod /sbin copy_exec /sbin/rmmod /sbin mkdir -p "${DESTDIR}/etc/modprobe.d" -cp -a /etc/modprobe.d/* "${DESTDIR}/etc/modprobe.d" +cp -a /etc/modprobe.d/* "${DESTDIR}/etc/modprobe.d/" # workaround: libgcc always needed on old-abi arm if [ "$DPKG_ARCH" = arm ] || [ "$DPKG_ARCH" = armeb ]; then - cp -a /lib/libgcc_s.so.1 "${DESTDIR}/lib" + cp -a /lib/libgcc_s.so.1 "${DESTDIR}/lib/" fi run_scripts /usr/share/initramfs-tools/hooks |
