From 96d8115f574eea746e3bdb9ebeaeb7cb78a2195c Mon Sep 17 00:00:00 2001 From: Stefan Fiedler Date: Mon, 12 May 2008 09:55:06 +0000 Subject: [PATCH] Stefan Fiedler: 1st-stage: don't copy contents of device files [2007122122372014107] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@8983 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/target-finish/1st-stage/1st-stage.conf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package/target-finish/1st-stage/1st-stage.conf b/package/target-finish/1st-stage/1st-stage.conf index 11fe31b34..fd057901b 100644 --- a/package/target-finish/1st-stage/1st-stage.conf +++ b/package/target-finish/1st-stage/1st-stage.conf @@ -105,7 +105,9 @@ for x in $confdir/$initrd_config/initrd_* ; do mkdir -p ${tfile%/*} fi - cp -dp "${f}" "${tfile}" + # without -R, cp would try to copy the contents of e.g. + # /lib/udev/devices/zero + cp -a "${f}" "${tfile}" ls -l "$tfile" file -L "${f}" | grep -q ELF || continue