Bug#707040: initramfs-tools: missing busybox package creates unbootable initramfs missing /bin/sh
tags 707040 pending
stop
On Wed, 08 May 2013, Ben Love wrote:
> Two potential solutions:
>
> 1) Change the -x test to a -e test. I don't know if sh.shared would
> ever legitimately exist, yet should not be used as /bin/sh.
ack, done.
> 2) Create a final, unconditional block that does "something" sane
> to provide a fallback /bin/sh. (Or else bail entirely!)
Added copy_exec of system /bin/sh to mkinitramfs so if none of the
hooks provided a proper shell the system default is taken.
Both patches are initramfs-tools git and will land soon in unstable
plus than in Jessie. Once there i'll nominate them at the release
team for 7.0 update fix.
> I think the right answer is probably to do some kind combination:
> The sh.shared text should be changed to -e, to fix the noexec mount
> problem. And then there should be a final, unconditional block that
> halts the entire initramfs image creation. An image without /bin/sh
> will never work!
Thank you very much for your good analysis and sorry for the late
response.
--
maks
Reply to: