[Pkg-uml-devel] Re: [Pkg-uml-commit] r81 - in trunk/src/rootstrap: . debian modules

Mattia Dongili malattia at linux.it
Mon May 22 23:05:29 UTC 2006


On Mon, May 22, 2006 at 08:49:47PM +0200, Mattia Dongili wrote:
> Some comments:
[...]
> > Modified: trunk/src/rootstrap/modules/uml
> > ===================================================================
> > --- trunk/src/rootstrap/modules/uml	2006-05-21 20:49:14 UTC (rev 80)
> > +++ trunk/src/rootstrap/modules/uml	2006-05-21 22:38:53 UTC (rev 81)
> > @@ -2,9 +2,11 @@
> >  
> >  # Add ubd devices on host (if not present)
> >  
> > -if [ ! -d /dev/ubd || -e /dev/ubd$i ]; then
> > +if [ ! -d /dev/ubd ]; then
> >  	for i in 0 1 2 3 4 5 6 7; do
> > -		mknod $TARGET/dev/ubd$i b 98 $[$i * 16]; 
> > +		if [ -e /dev/ubd$i ]; then
>                    ^^^^
> if [ ! -e /dev/ubd$i ] ; then ?
> 
> > +                       mknod $TARGET/dev/ubd$i b 98 $[$i * 16];
> 
> and as said Sven, you're still testing for /dev/udb[01234567] and
> creating $TARGET/dev/ubd[01234567]

Aaaah!! now I see how it works! this is executed pretty late in the post
install stage when we need to replicate install-time setup.
Sorry for getting it wrong.

I have a patchset here that let me complete the full root image
creation.
It seems it's still missing the kernel modules being copied in the image
but it's a step ahead.
Oh well, booting that image hangs when starting rmnologin actually...

-- 
mattia
:wq!



More information about the Pkg-uml-devel mailing list