From cb0afc7b58c062129001a8a0e4fd713f983cc08a Mon Sep 17 00:00:00 2001 From: Stefan Fiedler Date: Sun, 23 Nov 2008 12:48:33 +0000 Subject: [PATCH] Stefan Fiedler: 1st-stage: only copy libnss* files when available [2008101921234827712] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@9145 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 fd057901b..590b0ea71 100644 --- a/package/target-finish/1st-stage/1st-stage.conf +++ b/package/target-finish/1st-stage/1st-stage.conf @@ -44,7 +44,9 @@ echo "/dev/root / auto defaults 0 0" > etc/fstab # supress udev uig/gid warnings cp -vp ${rootdir}/etc/{passwd,group} etc/ -cp -vp ${rootdir}/$multilib/libnss_files.so.* $multilib/ +for x in ${rootdir}/$multilib/libnss_files.so.* ; do + [ -f "$x" ] && cp -vp "$x" $multilib/ +done echo "Creating some device nodes" mknod dev/ram0 b 1 0