On Sun, Feb 11, 2018 at 11:56 PM, Linus Walleij <linus.wall...@linaro.org> wrote: > On Mon, Feb 5, 2018 at 11:38 PM, Linus Walleij <linus.wall...@linaro.org> > wrote: >> On Tue, Jan 16, 2018 at 11:22 PM, Linus Walleij <linus.wall...@linaro.org> >> wrote: >> >> No doubt. Ubus didn't come up because it needs unix domain >> sockets (CONFIG_UNIX). > > So I fixed that. > >> Please press Enter to activate this console. >> >> There is no console when I press enter though. >> Just goes on: >> >> Please press Enter to activate this console. >> Please press Enter to activate this console. >> Please press Enter to activate this console. > > I digged around a bit here. > > procd is running fine. It spawns the askconsole action > and properly execve() /sbin/askfirst as we could expect > since the console activation message appears. > > However when askfirst tries to execve() > /usr/libexec/login.sh this exits pretty immediately > with exit code 4 (printed from exit callback). > > I don't know what gives this exit code 4 on anything > askfirst tries to execute :( or why.
So this is libubox returning 4 EINTR (interrupted system call) from the uloop_process. waitpid() returns this while monitoring the process. I wonder why... I traced into the kernel and even checked that the binfmt_script parses and tries to execute the script using the right /bin/sh parser. It would be nice to be able to run strace here I guess. kernel syscall debugging? Yours, Linus Walleij _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel