I'm trying to boot an OS (linux kernel) using the debian kernel so i needed to use an initramfs (as everything is builded as modules). But after booting into the initramfs, it doesn't seems to populate /sys/blocks as:
# mdev -s
"failed" to populate dev with devices (/dev/sd[a-z][0-9]).
Then how should i populate "/sys" correctly? i'm booting the system with qemu and using an raw image as "hd".
* this isn't debian (or any other distro for that matter), and my initramfs is created from scratch
* i'm using mdev
* the /init script looks like this:
mount -n -t proc none /proc mount -n -t sysfs none /sys mkdir /.root mdev -s mount -n -t $rootfstype $device /.root umount /proc umount /sys exec switch_root /.root $init $@
EDIT: My problem is not populating dev, that could be done by hand if necessary, just looking at "/sys" and using "mknod". The problem is "/sys" lacking devices "/sys/block/sd[a-z][0-9]".
(As i copied it from the qemu curses, i may have missed something)