>2009/10/31 T4ndeta <[email protected]>:
> 1. Make a cpio package with init in root directory then you can use
> exec switch_root (this is the best solution)
> 2. After exec chroot . /sbin/init you would have to send a signal to
> init to restart it self (from a script on real_root), this should free
> some fd's from initrd
>

initrd could not be mounted as root fs if it was made a cpio package and
loaded by boot loader into memory instead of being embedded inside kernel.
I wish initrd separated from kernel, in order that kernel contains as little
platform-dependent hardware drivers as possible. It seems to be a popular
solution in distribution.

---
PRC
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to