Bug#933523: Possible solution
- To: Sebastian Neuser <sebastian.neuser@fnordkollektiv.de>
- Cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>, 933523@bugs.debian.org
- Subject: Bug#933523: Possible solution
- From: Emanuele Rocca <ema@debian.org>
- Date: Sun, 12 Feb 2023 22:03:13 +0100
- Message-id: <Y+lUEUq+/UDGQFX7@pinolo.local>
- Reply-to: Emanuele Rocca <ema@debian.org>, 933523@bugs.debian.org
- In-reply-to: <28d68460f7e12f9d2d42ddcd53ae3751482ceb7a.camel@fnordkollektiv.de>
- References: <156456115904.13020.6858061059421720911.reportbug@damogran.benoswald.de> <69d436b82eae0caebe90b7d1a71b6dbf59d0ef7a.camel@fnordkollektiv.de> <156456115904.13020.6858061059421720911.reportbug@damogran.benoswald.de> <a5b9ce9d-9627-bd41-ea07-a87f297d2f82@physik.fu-berlin.de> <bb5cd683d99a3430eb34b7ae5cee21f650698667.camel@fnordkollektiv.de> <156456115904.13020.6858061059421720911.reportbug@damogran.benoswald.de> <d871429c-791a-6f4c-9b6e-bbf5e57ca4b0@physik.fu-berlin.de> <28d68460f7e12f9d2d42ddcd53ae3751482ceb7a.camel@fnordkollektiv.de> <156456115904.13020.6858061059421720911.reportbug@damogran.benoswald.de>
Hi,
On Wed, Jul 21, 2021 at 03:42:25PM +0200, Sebastian Neuser wrote:
>
> On Wed, 2021-07-21 at 14:59 +0200, John Paul Adrian Glaubitz wrote:
> > That's probably because of the "|| true" that Steve added to the mount
> > call which means that this line will always succeed even when the
> > mount attempt actually failed.
>
> I don't think so:
> mountvirtfs() mounts efivarfs with `mount ... || die ...` and die() ends
> with `exit 1`, so `|| true` after the call to mountvirtfs() is actually
> dead code.
>
> Unless I still don't get shell script logic, which is of course entirely
> possible. :-)
Just to confirm your understanding of the logic, indeed in case of mount
efivarfs errors the script should fail because of the die() calls, see
https://bugs.debian.org/1031183.
Why did the mount command seemingly succeed in this case and yet the FS did not
get mounted I guess is the open question.
Is this bug still reproducible with a recent installer image?
Reply to: