[Grml] grml2hd - Grml Hd Installation

Michael Prokop mika at grml.org
Mon Aug 20 10:52:46 CEST 2007


* - Tong - <mlist4suntong at yahoo.com> [20070820 01:35]:

> I used to use grml2hd after booting off grml, but today I tried the grml2hd
> from the chroot. I think nobody has ever done this before. I'm just trying
> to see if I can get it working. If so, I could do the Grml HD installation
> then system customization from within my current system, so that I could
> have almost zero down time.

Nice idea! :)

> Here are some issues/questions regarding grml2hd. 

> - I think the document (http://grml.org/grml2hd/grml2hd.html) is not
>   up-to-date with the script. E.g., I didn't find the switch
>   "--noninteractive" documented.

Thanks, I updated the docs (it's "-i"/GRML2HD_NONINTERACTIVE=1)
according to what's shipped with grml.

> - I saw that the script is trying to duplicate the whole /dev directory. 
>   Is this still necessary? -- this is not a question but a request for
>   explanation, because I thought udev would take care of populating the 
>   /dev directory on the fly.

As we support a 'noudev' bootoption we want to make sure you always
have a valid /dev present. It shouldn't hurt anyone this way.

> - now to the issue of using grml2hd from the chroot itself. It didn't work
>   for me. It almost failed to copy over anything:

>   cp: cannot stat `backups': No such file or directory
>   cp: cannot stat `boot': No such file or directory
>   cp: cannot stat `cdrom': No such file or directory
>   cp: cannot stat `dev': No such file or directory
>   cp: cannot stat `etc': No such file or directory
>   cp: cannot stat `floppy': No such file or directory
>   cp: cannot stat `home': No such file or directory
>   cp: cannot stat `initrd': No such file or directory
>   cp: cannot stat `lib': No such file or directory
>   cp: cannot stat `media': No such file or directory
>   cp: cannot stat `mnt': No such file or directory
>   cp: cannot stat `none': No such file or directory
>   cp: cannot stat `opt': No such file or directory
>   cp: cannot stat `root': No such file or directory
>   cp: cannot stat `sbin': No such file or directory
>   cp: cannot stat `selinux': No such file or directory
>   cp: cannot stat `swap': No such file or directory
>   cp: cannot stat `usr': No such file or directory
>   cp: cannot stat `var': No such file or directory

> UTSL reveals that it might cause by the 1st line, "cd /UNIONFS", in the
> copy_files function. Can we do something about it? I mean do something to
> make it chroot friendly? Further, my currently grml was first grml2hd'ed
> from grml ver0.7, and there is no /UNIONFS mount point or directory in my
> current system. I guess I can't use grml2hd to dupe my currently grml
> to another HD as well, can I?

Yes, would be great to have a grml2hd version which could install
grml directly from a chroot (so you don't have to boot it at all ;)).
But currently I don't have the time to implement the relevant
changes for grml2hd on my own. I welcome any patches of course - but
if you want to see that implemented by myself you'd have to wait a
little bit.

I've added it to our BTS (see http://bts.grml.org/grml/issue270)
so we don't forget it.

regards,
-mika-
-- 
 http://grml.org/            # Linux for texttool-users and sysadmins
 http://wiki.grml.org/       # share your knowledge
 http://grml.supersized.org/ # the grml development weblog
 #grml @ irc.freenode.org    # meet us on irc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://ml.grml.org/pipermail/grml/attachments/20070820/750bd0c3/attachment-0004.pgp>


More information about the Grml mailing list