[Pkg-uml-devel] Re: [Pkg-uml-commit] r80 - trunk/src/rootstrap/modules

Sven Mueller debian at incase.de
Mon May 22 07:05:01 UTC 2006


+if [ ! -d /dev/ubd || -e /dev/ubd$i ]; then
+	for i in 0 1 2 3 4 5 6 7; do
+		mknod $TARGET/dev/ubd$i b 98 $[$i * 16];
+	done
+fi

This looks a bit weird to me. Perhaps I'm not seeing the full context of
that part of the source, however, the if clause tests for only a single
device node (/dev/ubd$i), but the for loop creates 8 such nodes.
What's more is that it is testing in the normal root (/) and creating
the devices in $TARGET/ when the devices don't exist on /. Is that
really the intended behaviour?

Regards,
Sven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 188 bytes
Desc: OpenPGP digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-uml-devel/attachments/20060522/1e489bc2/signature.pgp


More information about the Pkg-uml-devel mailing list