Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NBFP8-0002J3-PO for mharc-grub-devel@gnu.org; Thu, 19 Nov 2009 17:23:06 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NBFP6-0002IR-Ca for grub-devel@gnu.org; Thu, 19 Nov 2009 17:23:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NBFP1-0002H0-Rx for grub-devel@gnu.org; Thu, 19 Nov 2009 17:23:03 -0500 Received: from [199.232.76.173] (port=34188 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NBFP1-0002Gx-Mq for grub-devel@gnu.org; Thu, 19 Nov 2009 17:22:59 -0500 Received: from 197.red-80-32-81.staticip.rima-tde.net ([80.32.81.197]:40965 helo=mail.pina.cat) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NBFP1-0007iq-3M for grub-devel@gnu.org; Thu, 19 Nov 2009 17:22:59 -0500 Received: from pinux (82-45-164-87.cable.ubr06.hari.blueyonder.co.uk [82.45.164.87]) by mail.pina.cat (Postfix) with ESMTP id 7B8FC288F30C3 for ; Thu, 19 Nov 2009 23:22:53 +0100 (CET) Received: by pinux (Postfix, from userid 1000) id 80079CBB3C; Thu, 19 Nov 2009 22:22:57 +0000 (GMT) Date: Thu, 19 Nov 2009 22:22:57 +0000 From: Carles Pina i Estany To: grub-devel@gnu.org Message-ID: <20091119222257.GA1189@pina.cat> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="k+w/mQv8wyuph6w0" Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: grub-mkrescue and hard links X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Nov 2009 22:23:04 -0000 --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, grub-mkrescue is trying to execute cp -dpRl (l for link). If the origin and destination directories are in different file systems this fails. We could do a symbolic link (-s), detect if it's in the same device, etc. but I think that just copying is enough and this optimization could have other problems (like some utilites doesn't follow symbolic links, etc.) Small patch attached. -- Carles Pina i Estany http://pinux.info --k+w/mQv8wyuph6w0 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="grub-mkrescue-nolinks.patch" === modified file 'util/grub-mkrescue.in' --- util/grub-mkrescue.in 2009-11-14 18:38:11 +0000 +++ util/grub-mkrescue.in 2009-11-19 22:17:36 +0000 @@ -121,7 +121,7 @@ if [ "${source}" != "" ] ; then for d in ${source}; do echo "Processing $d" - cp -dpRl "${d}" ${iso9660_dir}/ + cp -dpR "${d}" ${iso9660_dir}/ done fi --k+w/mQv8wyuph6w0 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=ChangeLog-grub-mkrescue-nolink 2009-11-19 Carles Pina i Estany * util/grub-mkrescue.in: copies the files instead of hard linking --k+w/mQv8wyuph6w0--