[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#799443: [PATCH initramfs-tools 3/5] hook-functions: Use copy_file to install modules



Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
 hook-functions | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/hook-functions b/hook-functions
index 9c6732d..6940fb7 100644
--- a/hook-functions
+++ b/hook-functions
@@ -71,15 +71,7 @@ manual_add_modules()
 			continue
 		fi
 
-		# Prune duplicates
-		if [ -e "${DESTDIR}/${kmod}" ]; then
-			continue
-		fi
-
-		install -Dpm 644 "$kmod" "${DESTDIR}/$kmod"
-		if [ "${verbose}" = "y" ]; then
-			echo "Adding module ${kmod}"
-		fi
+		copy_file module "${kmod}" || continue
 
 		# Add required firmware
 		for firmware in $(modinfo -k "${version}" -F firmware "${kmod}"); do

Attachment: signature.asc
Description: Digital signature


Reply to: