Comment 1 for bug 1351295

Revision history for this message
Martin Pitt (pitti) wrote : Re: Boot fails if /sbin/init is an absolute symlink

This is coming from "init" line284:

                 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.