case $(readlink "${rootmnt}${checktarget}") in /*)
That's the readlink that isn't found (not the chrooted one in the next line). I added a few debugging steps, and "type readlink" says "readlink is readlink". I cannot reproduce this in break=bottom, in the interactive shell readlink /root/bin/systemd works just fine. But as soon as I Ctrl+D, readlink doesn't work any more. Some subtle busybox difference between interactive and shell script mode?
It works if I replace this with
case $(/bin/busybox readlink "${rootmnt}${checktarget}") in /*)
but that's not a proper solution but a workaround.
This is coming from "init" line284:
That's the readlink that isn't found (not the chrooted one in the next line). I added a few debugging steps, and "type readlink" says "readlink is readlink". I cannot reproduce this in break=bottom, in the interactive shell readlink /root/bin/systemd works just fine. But as soon as I Ctrl+D, readlink doesn't work any more. Some subtle busybox difference between interactive and shell script mode?
It works if I replace this with
but that's not a proper solution but a workaround.