diff options
author | Daniel Baumann <daniel@debian.org> | 2012-08-14 20:29:34 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2012-08-14 20:29:34 +0200 |
commit | eb77833cf3f40583fe02dad42b667cc6b091f2c3 (patch) | |
tree | c9894ddd51089dc5ed5b0b1a367b487499af39f3 | |
parent | eeb372f937d3aad92d889f457ffad6e807d7dc23 (diff) | |
download | live-boot-eb77833cf3f40583fe02dad42b667cc6b091f2c3.tar.gz live-boot-eb77833cf3f40583fe02dad42b667cc6b091f2c3.zip |
Simplifying usage of copy_exec function from hooks-function in initramfs-tools hook.
-rwxr-xr-x | backends/initramfs-tools/live.hook | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/backends/initramfs-tools/live.hook b/backends/initramfs-tools/live.hook index df1a86c..86ef117 100755 --- a/backends/initramfs-tools/live.hook +++ b/backends/initramfs-tools/live.hook @@ -46,11 +46,7 @@ done # udev dependencies for FILE in /lib/udev/*_id do - if [ ! -e "${DESTDIR}/${FILE}" ] - then - mkdir -p "${DESTDIR}/lib/udev" - copy_exec "${FILE}" /lib/udev - fi + copy_exec "${FILE}" done # wheezy/sid @@ -65,7 +61,7 @@ fi # Configuration: keymap (usefull when using encryption) if [ -x /bin/loadkeys ] && [ -r /etc/console/boottime.kmap.gz ] then - copy_exec /bin/loadkeys /bin + copy_exec /bin/loadkeys mkdir -p "${DESTDIR}"/etc cp /etc/console/boottime.kmap.gz "${DESTDIR}"/etc @@ -84,7 +80,7 @@ manual_add_modules btrfs # Filesystem: cifs if [ -x /sbin/mount.cifs ] then - copy_exec /sbin/mount.cifs /sbin + copy_exec /sbin/mount.cifs manual_add_modules cifs fi @@ -101,7 +97,7 @@ then fi # Filesystem: squashfs -copy_exec /sbin/losetup /sbin +copy_exec /sbin/losetup manual_add_modules loop manual_add_modules squashfs manual_add_modules sqlzma @@ -166,7 +162,7 @@ fi if [ -x /sbin/udevadm ] then [ "${QUIET}" ] || echo -n " udev" - copy_exec /sbin/udevadm /sbin + copy_exec /sbin/udevadm fi if [ -x /usr/bin/udevinfo ] then @@ -185,7 +181,7 @@ fi if [ -x /sbin/blockdev ] then [ "${QUIET}" ] || echo -n " blockdev" - copy_exec /sbin/blockdev /sbin + copy_exec /sbin/blockdev fi # FUSE kernel module |