> to make alone. I think pivot_root is better than chroot for the
> purposes of running init and in general for avoiding gotchas, but that
> can be done without an overlay, if that is the consensus.
As someone who uses an external root (tho using a hand-made patch
rather than your extroot, mostly because your extroot came later),
I don't want an overlay, but I indeed want a pivot_root rather than
a chroot.
Also OpenWRT should be careful to perform the pivot_root with a minimum
amount of dependencies between the before-pivot and after-pivot code
(e.g. at some point OpenWRT's scripts let a hotplugd running during the
pivot_root, relying on the after-pivot code to kill the daemon started
by the before-pivot code. This creates an undesired dependency between
the two which makes upgrades more difficult).
At some point I used a Debian install as extroot, using OpenWRT as
a kind of "kernel+initramfs", and while I do not encourage people to do
that, I think it's good to keep this kind of usage in mind: it helps
keep the code's behavior clean.
Stefan
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel