#816326 schroot: don't fail on 15binfmt with a missing /bin/sh

Package:
src:schroot
Source:
schroot
Submitter:
Raphael Geissert
Date:
2021-03-23 17:42:07 UTC
Severity:
normal
Tags:
#816326#5
Date:
2016-02-29 21:44:42 UTC
From:
To:
Source: schroot
Version: 1.6.10-2
Tags: patch
Severity: minor

Hi,

Once upon a time I found a chroot that didn't have a /bin/sh and
schroot failed miserably due to a call to binfmt --find on a
non-existing file...
Attached patch makes 15binfmt test for $shell to be readable.

Cheers,

#816326#10
Date:
2016-03-01 08:28:14 UTC
From:
To:
Hi,


Quoting Raphael Geissert (2016-02-29 22:44:42)

this sounds like a possible fix for #815175

cheers, josch

#816326#15
Date:
2016-03-01 09:26:07 UTC
From:
To:
Hi,

Oh, I somehow missed that bug report. Yes, the chroot I was talking
about was more or less in a similar state: it was actually a session
that had failed to be cleaned up (EBUSY at some point) and at the
second attempt to end it, 15binfmt failed.

My patch won't fix the 20copyfiles problem, however.

Cheers,

#816326#20
Date:
2016-08-02 17:20:13 UTC
From:
To:
I can confirm that Raphael's patch fixes this issue for me too (not
very surprisingly).

Wookey