Fix legacy rootfs devices

This commit is contained in:
topjohnwu
2021-01-25 00:19:10 -08:00
parent 4cc41eccb3
commit 3e479726ec
4 changed files with 9 additions and 8 deletions

View File

@ -86,7 +86,7 @@ static int64_t setup_block(bool write_block) {
sprintf(blk_info.block_dev, "/dev/block/%s", dev.devname);
}
dev_t rdev = makedev(dev.major, dev.minor);
mknod(blk_info.block_dev, S_IFBLK | 0600, rdev);
xmknod(blk_info.block_dev, S_IFBLK | 0600, rdev);
return rdev;
}
// Wait 10ms and try again