View Single Post
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#12
Originally Posted by qole View Post
I don't have an initfs_flasher folder under /mnt either. I have an initfs folder, but fanoush wrote initfs_flasher.

Can I copy the file from /mnt/initfs/dev and drop it into the initfs_flasher folder somewhere and get it to copy over when I flash the initfs?

EDIT: AAHHH I think I get it. When the initfs_flasher process gets to the part where it is waiting for an answer from the user about dropbear, I open a second terminal window and "touch .../initfs_flasher/dev/sda2" ? Or maybe "cp .../initfs_flasher/dev/sda1 .../initfs_flasher/dev/sda2"? Then carry on with the install in the first window. Theoretically, this file will get copied over to the initfs.
Close, but no. the names of devices are merely conventional; the actual determination of what gets accessed through the file is from the major and minor numbers (you can see these with ls -l, where the size of an ordinary file would be), so touch will make a regular file, and cp will make a block special file named sda2 and accessing sda1.

Either copy the one from the root filesystem (and maybe chmod to match the others in the initfs?) or use mknod.