[Pkg-uml-commit] r83 - trunk/src/rootstrap/modules
Mattia Dongili
malattia at costa.debian.org
Mon May 22 23:06:41 UTC 2006
Author: malattia
Date: 2006-05-22 23:06:41 +0000 (Mon, 22 May 2006)
New Revision: 83
Modified:
trunk/src/rootstrap/modules/mkfs
Log:
create device nodes early for mkfs
Modified: trunk/src/rootstrap/modules/mkfs
===================================================================
--- trunk/src/rootstrap/modules/mkfs 2006-05-22 23:04:52 UTC (rev 82)
+++ trunk/src/rootstrap/modules/mkfs 2006-05-22 23:06:41 UTC (rev 83)
@@ -2,9 +2,13 @@
# which others support -q?
if [ $fstype = "ext2" -o $fstype = "ext3" ]; then
- options="-q"
+ options="-q"
elif [ $fstype = "reiserfs"]; then
option="-fq"
fi
-mkfs.$fstype $options /dev/ubd1 | yes
+for i in 0 1 2 3 4 5 6 7; do
+ mknod /dev/ubd$i b 98 $[$i * 16];
+done
+
+echo yes | mkfs.$fstype $options /dev/ubd1
More information about the Pkg-uml-commit
mailing list