>> I updated my USB (really IDE in my case) rootfs.
> Ahhh. Care to post the patch?
As I said, the "patch" was
ln -sf /rom/etc/init./boot /etc/init.d/boot
>> More specifically, the
>> /etc/init.d/boot script
> The one on the flash, that calls /sbin/mount_root?
The flash is uptodate, the USB isn't. Both rootfs have it.
>> needs to "killall -q hotplug2" before starting
>> hotplug2
> So where is this first hotplug2 being started from if /etc/init.d/boot
> is starting the second one?
I think the first is started in /etc/preinit.
> Surely this must be a bug (i.e. two hotplug2 processes) even on
> installations with no externally mounted /, no?
Starting it twice is fairly normal: once in the "initramfs" (aka
"miniroot" in Irix parlance) before the real rootfs is mounted, and once
after the real rootfs is mounted.
The "killall hotplug2" was moved a little while ago from one place to
another, so if the two rootfs aren't in sync, the first hotplug2 doesn't
get killed.
> So something like:
> [ "$FAILSAFE" = "true" ] && touch /tmp/.failsafe
> + killall -q hotplug2
> [ -x /sbin/hotplug2 ] && /sbin/hotplug2 --override --persistent \
> --max-children 1 --no-coldplug &
Yes.
>> (I did that by changing it into a symlink to
>> /rom/etc/init.d/boot).
> Hrm. I must be missing what you mean. /etc/init.d/boot
> and /rom/etc/init.d/boot for all intents and purposes are the same on my
> router.
Try a diff, and you'll probably get something very similar to your above
suggested patch.
Stefan
_______________________________________________
openwrt-devel mailing list
[email protected]
http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel