+ char* rootfs;
+ struct v_dnode* dn;
+ struct device* dev;
+
+ if (!kcmd_get_option("rootfs", &rootfs)) {
+ ERROR("no rootfs.");
+ return 0;
+ }
+
+ if ((errno = vfs_walk(NULL, rootfs, &dn, NULL, 0))) {
+ ERROR("%s: no such file (%d)", rootfs, errno);
+ return 0;
+ }
+
+ dev = resolve_device(dn->inode->data);