All of lore.kernel.org
 help / color / mirror / Atom feed
* grub-mkrescue and hard links
@ 2009-11-19 22:22 Carles Pina i Estany
  2009-11-20 13:36 ` Robert Millan
  0 siblings, 1 reply; 8+ messages in thread
From: Carles Pina i Estany @ 2009-11-19 22:22 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 439 bytes --]


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

[-- Attachment #2: grub-mkrescue-nolinks.patch --]
[-- Type: text/x-diff, Size: 349 bytes --]

=== 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
 


[-- Attachment #3: ChangeLog-grub-mkrescue-nolink --]
[-- Type: text/plain, Size: 120 bytes --]

2009-11-19  Carles Pina i Estany <carles@pina.cat>

	* util/grub-mkrescue.in: copies the files instead of hard linking


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-11-21 13:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-19 22:22 grub-mkrescue and hard links Carles Pina i Estany
2009-11-20 13:36 ` Robert Millan
2009-11-21  1:54   ` Carles Pina i Estany
2009-11-21 13:14     ` Robert Millan
2009-11-21 11:39   ` Vladimir 'φ-coder/phcoder' Serbinenko
2009-11-21 11:50     ` Carles Pina i Estany
2009-11-21 13:25       ` Robert Millan
2009-11-21 13:24     ` Robert Millan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.