From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: grub-mkrescue and hard links
Date: Sat, 21 Nov 2009 12:39:53 +0100 [thread overview]
Message-ID: <4B07D189.7000302@gmail.com> (raw)
In-Reply-To: <20091120133620.GA5413@thorin>
[-- Attachment #1: Type: text/plain, Size: 1526 bytes --]
Robert Millan wrote:
> On Thu, Nov 19, 2009 at 10:22:57PM +0000, Carles Pina i Estany wrote:
>
>> 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.
>>
>
> One of the purposes of grub-mkrescue is to generate images that are bootable
> using GRUB. These images might be complete CDs or DVDs, making a complete
> copy very undesireable.
>
Why do you need copying at all? mkisofs supports taking source files
from multiple directories:
mkdir h1
mkdir h2
echo 4 > h1/hh
echo 5 > h1/hx
mkisofs -o h.iso h1 h2
isoinfo -l -i h.iso
Directory listing of /
d--------- 0 0 0 2048 Nov 21 2009 [ 23 02] .
d--------- 0 0 0 2048 Nov 21 2009 [ 23 02] ..
---------- 0 0 0 2 Nov 21 2009 [ 24 00] HH.;1
---------- 0 0 0 2 Nov 21 2009 [ 25 00] HX.;1
So you can just take grub files from temporary directory and overlay
from its original place
On a side note: when I did:
./grub-mkrescue -o grub.iso overlay
it added a directory named overlay to iso. E.g: I had a folder
overlay/boot instead of /boot on iso
> I think I'd rather remove the copiing stage altogether and operate on the
> original directory (this is not so strange, e.g. -boot-info-table in
> mkisofs also modifies original data and is widely used).
>
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 293 bytes --]
next prev parent reply other threads:[~2009-11-21 11:40 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2009-11-21 11:50 ` Carles Pina i Estany
2009-11-21 13:25 ` Robert Millan
2009-11-21 13:24 ` Robert Millan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B07D189.7000302@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.