gen_initramfs: make sure to die on mknod() failures

It is extremely important that the device nodes end up into the
initramfs or the whole file will be unusable.