Devuan bug report logs - #261
eudev: System with encrypted root fs and swap fails to shutdown cleanly

Package: eudev; Reported by: "Nik Wrt" <nikwrt@gmx.de>;
Date: Sat, 17 Nov 2018 09:48:01 UTC;
Maintainer for eudev is (unknown).

View this report as an mbox folder.


Report forwarded to devuan-bugs@lists.dyne.org, owner@bugs.devuan.org:
bug#261; Package eudev. Full text available.



Acknowledgement sent to "Nik Wrt" <nikwrt@gmx.de>:
New bug report received and forwarded. Copy sent to owner@bugs.devuan.org. Full text available.



Message received at submit@bugs.devuan.org:

From: "Nik Wrt" <nikwrt@gmx.de>
To: submit@bugs.devuan.org
Subject: eudev: System with encrypted root fs and swap fails to shutdown
Date: Sat, 17 Nov 2018 10:38:46 +0100

Package: eudev
Version: 3.2.2-13
Severity: normal

On a fresh Devuan ASCII install with encrypted root and swap (no LVM, no RAID), I am experiencing exactly the same symptom described in the first post of https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792552 i.e.

Stopping remaining crypto disks
sda2_crypt (busy)...

and the system hangs for a long time before powering off.
 
This behavior on debian stretch was determined to be caused by a bug in the udev init scripts when using sysvinit, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=791944
 
The relevant fix is in the commit
 
https://salsa.debian.org/systemd-team/systemd/commit/e803efca59978aa5bb1d8806247f986d0c0f7e67
 





Information forwarded to devuan-bugs@lists.dyne.org, owner@bugs.devuan.org:
bug#261; Package eudev. Full text available.



Acknowledgement sent to Daniel Reurich <daniel@centurion.net.nz>:
Extra info received and forwarded to list. Copy sent to owner@bugs.devuan.org. Full text available.



Message received at 261@bugs.devuan.org:

From: Daniel Reurich <daniel@centurion.net.nz>
Subject: Re: [Devuan-bugs] bug#261: eudev: System with encrypted root fs and
To: 261@bugs.devuan.org
Date: Mon, 19 Nov 2018 15:43:26 +1300

[Message part 1 (text/plain, inline)]

On 17/11/18 22:38, Where all about bugs in Devuan packages is reported
wrote:
> Package: eudev
> Version: 3.2.2-13
> Severity: normal
> 
> On a fresh Devuan ASCII install with encrypted root and swap (no LVM, no RAID), I am experiencing exactly the same symptom described in the first post of https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792552 i.e.
> 
> Stopping remaining crypto disks
> sda2_crypt (busy)...
> 
> and the system hangs for a long time before powering off.
>  
> This behavior on debian stretch was determined to be caused by a bug in the udev init scripts when using sysvinit, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=791944
>  
> The relevant fix is in the commit
>  
> https://salsa.debian.org/systemd-team/systemd/commit/e803efca59978aa5bb1d8806247f986d0c0f7e67
>  
> _______________________________________________
> Devuan-bugs mailing list
> Devuan-bugs@lists.dyne.org
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/devuan-bugs
> 

I've developed a patch based on the one for systemd[-udev] that should
resolve the issue.  Can you please test and confirm if it does?

Thanks,
	Daniel.

-- 
Daniel Reurich
Centurion Computer Technology (2005) Ltd.
021 797 722







[signature.asc (application/pgp-signature, attachment)]






Information forwarded to devuan-bugs@lists.dyne.org, owner@bugs.devuan.org:
bug#261; Package eudev. Full text available.



Acknowledgement sent to Daniel Reurich <daniel@centurion.net.nz>:
Extra info received and forwarded to list. Copy sent to owner@bugs.devuan.org. Full text available.



Message received at 261@bugs.devuan.org:

To: 261@bugs.devuan.org
From: Daniel Reurich <daniel@centurion.net.nz>
Subject: bug#261
Date: Tue, 20 Nov 2018 01:22:52 +1300

[Message part 1 (text/plain, inline)]

The fundamental bug in eudev is fixed in ascii-proposed

but cryptsetup does nothing to detect conditions where a root filesystem
is dependent on a crypt volume (directly or indirectly).  In this case
it should not try to stop the encrypted filesystem at all due to a
chicken<->egg scenario (root is needed to stop its encrypted volume but
also needs to be unmounted in order to for cryptmount to stop the
encrypted volume.

The most reliable fix is to not run the stop functions in the initscript
at all on shutdown

(I tested on a vm with an encrypted lvm setup containing root - default
devuan encrypted setup)




-- 
Daniel Reurich
Centurion Computer Technology (2005) Ltd.
021 797 722



[signature.asc (application/pgp-signature, attachment)]






Devuan BTS -- Powered by Debian bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.

Devuan Bugs Owner <owner@bugs.devuan.org>.
Last modified: Tue, 11 Dec 2018 08:44:14 UTC