kinit: convert '/' in block device names to '!', not '.'
register_disk() converts the first slash in a disk name to "!",
so a block device like /dev/cciss/c0d0 shows up in /sys as
/sys/block/cciss!c0d0.
kinit must use the same conversion in order for "root=/dev/cciss/c0d0p1"
to find the device.
Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
diff --git a/usr/kinit/name_to_dev.c b/usr/kinit/name_to_dev.c
index 5aadc06..593bc12 100644
--- a/usr/kinit/name_to_dev.c
+++ b/usr/kinit/name_to_dev.c
@@ -154,7 +154,7 @@
for (p = s; *p; p++)
if (*p == '/')
- *p = '.';
+ *p = '!';
res = try_name(s, 0);
if (res)
return res;