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>; dated Sat, 17 Nov 2018 09:48:01 UTC; Maintainer for eudev is (unknown).


Message received at 261@bugs.devuan.org:


Received: (at 261) by bugs.devuan.org; 30 Mar 2019 22:40:08 +0000
Date: Sat, 30 Mar 2019 15:32:44 -0700
From: Tom <tgrom.automail@nuegia.net>
To: 261@bugs.devuan.org
Subject: Also effects OpenRC

Hello, I just wanted to report this issue also effects Devuan ASCII
when using OpenRC INIT instead of sysV INIT.


Acknowledgement sent to Tom <tgrom.automail@nuegia.net>:
Extra info received and forwarded to list. Copy sent to owner@bugs.devuan.org. Full text available.


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


Message received at 261@bugs.devuan.org:


Received: (at 261) by bugs.devuan.org; 19 Nov 2018 12:30:06 +0000
To: 261@bugs.devuan.org
From: Daniel Reurich <daniel@centurion.net.nz>
Subject: bug#261
Date: Tue, 20 Nov 2018 01:22:52 +1300

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--LvledHhg9CpfmB20gp6ZE1u9IM2CeMNfI
Content-Type: multipart/mixed; boundary="lg6SbXnSaMecu2lGG1KK4JnPtYLUOc0Os";
 protected-headers="v1"
From: Daniel Reurich <daniel@centurion.net.nz>
To: 261@bugs.devuan.org
Message-ID: <63e09749-036b-f0b5-80b0-0d461fb9aef2@centurion.net.nz>
Subject: bug#261

--lg6SbXnSaMecu2lGG1KK4JnPtYLUOc0Os
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

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)




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


--lg6SbXnSaMecu2lGG1KK4JnPtYLUOc0Os--

--LvledHhg9CpfmB20gp6ZE1u9IM2CeMNfI
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQJMBAEBCAA2FiEEW7Mf40yO2uo447D40wYlDyh978oFAlvyqxwYHGRhbmllbEBj
ZW50dXJpb24ubmV0Lm56AAoJENMGJQ8ofe/KxcsP/RuLjUALQZ9eE9u+LDZlMGNV
aMrCea9ggykSb7GbLQ/rd4rgoWHbEtgaEGIYod1esOu6qWiVxKXPYvBrXLYXDNXS
4ST+DqbVi8KsZCDtpR0ngkr4hwujN4e/mkfadPtkkwqhB4hx1FmcWiTO73m0MoBl
euzJqw1rRHTy4c0tNQoCorKKss4iiswgrJDih/Hse+jyJ2YQFO8q6h3uhB/HjbcP
KKRI89tzWcbKIwWnb/6vLw+a8RdwxbCmiZjyI4OMutMoksS6gw/QtoOoRhxW/Y5j
YsYwKgoecOrxf2ckEWIxIWs82K+MVIgNrjbqftJZsMp9PwjKmKpelgQZg+ttzOSV
hOSbzwe+qRZ3/H7BQDbElz49yV5TwHnyIkJe48w3HFjnIy8yPSGdnPRb+I05pNYs
dDyQPJHLfHMuNy2BkpCjA1wfer00lRZ1q4FIukYbqO4RKwZp2nq0Cazxyk/n2C0x
T+XidaTdlkAl5kfP7VDGJ5gJ4hei1lRo8uyIbaZQ1dAsxYqMbTcRV/ioaba0JJlY
JrdMMZ/cWlLmPBzg01guaueKec4iKUPFjSaEikFkEUBVxKuwMnEugQpiOGeJH762
r0J1U/k89Dn4dXuazCCHusC/io998SLvI6Nhx94RjqSM/mvZmlLehxmK4zScAVF8
9W3ZKfdv993Px6wL+Dsp
=/wA8
-----END PGP SIGNATURE-----

--LvledHhg9CpfmB20gp6ZE1u9IM2CeMNfI--


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.


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


Message received at 261@bugs.devuan.org:


Received: (at 261) by bugs.devuan.org; 19 Nov 2018 02:50:07 +0000
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

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--yONcMTi8nrafXh1i4ju85E9JaldoQeucw
Content-Type: multipart/mixed; boundary="UN17Sel9EWjtdlAUKRaU6DPkCr4ShlUKy";
 protected-headers="v1"
From: Daniel Reurich <daniel@centurion.net.nz>
To: 261@bugs.devuan.org
Message-ID: <79d7fdc6-c282-7ab7-ce50-a7a7b73ad6d4@centurion.net.nz>
Subject: Re: [Devuan-bugs] bug#261: eudev: System with encrypted root fs and
 swap fails to shutdown cleanly
References: <mailman.72.1542448139.15980.devuan-bugs@lists.dyne.org>
In-Reply-To: <mailman.72.1542448139.15980.devuan-bugs@lists.dyne.org>

--UN17Sel9EWjtdlAUKRaU6DPkCr4ShlUKy
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

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
>=20
> On a fresh Devuan ASCII install with encrypted root and swap (no LVM, n=
o RAID), I am experiencing exactly the same symptom described in the firs=
t post of https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D792552 i.e.=

>=20
> Stopping remaining crypto disks
> sda2_crypt (busy)...
>=20
> and the system hangs for a long time before powering off.
> =20
> 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/c=
gi-bin/bugreport.cgi?bug=3D791944
> =20
> The relevant fix is in the commit
> =20
> https://salsa.debian.org/systemd-team/systemd/commit/e803efca59978aa5bb=
1d8806247f986d0c0f7e67
> =20
> _______________________________________________
> Devuan-bugs mailing list
> Devuan-bugs@lists.dyne.org
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/devuan-bugs
>=20

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.

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






--UN17Sel9EWjtdlAUKRaU6DPkCr4ShlUKy--

--yONcMTi8nrafXh1i4ju85E9JaldoQeucw
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQJMBAEBCAA2FiEEW7Mf40yO2uo447D40wYlDyh978oFAlvyI08YHGRhbmllbEBj
ZW50dXJpb24ubmV0Lm56AAoJENMGJQ8ofe/KmYEQAKxjWFcDTiHkY5h1sorCpPr4
3fNwM/DKvDZ/J4gDqN1w/USBWsFA2lyFf/FnrWtRn1dmf5rQ2AA68nFQ66EzdgFj
OhWANwjRZSZ8/JANbNn9KZYvZsayl9zCKyuakj7vlhgBzL78hXNg3qxyG7PteStl
aFuHxlLN9Ajnn+dkZC2DCEThBUtjEG2zJpY2GH6KCDIpjXzz7x9GBD+POTzZY7GV
PV+alCAGZYO3iXcPkkgw6/Y29L9bH6zUpCnmxUM9vZk3G8eMvogdBC9TQ2hco4BB
eYcdMJqMCCxhvg9y9Ljf5YZDNngj2eKFQ3HVgUi/3MqAsHg/qe7gFWIiVV662R9F
rvnPQOphYi8PTSs/+jUgA93rUJurJPAzXyOINBmNaDCzAnhk+nCJbV2/R19vCBBp
yzlDZr65BKI/HYyZ/ZznaQ4Ru0/Wdn7vGEkeJx/xTfpzOPN7MPYd+bjBYxX81TcP
0a1Yv1y1pGXwp4fnDaP3xe6AAr3BF9mUG5gb3VOswhzdSZ2nZyxFpuR4NXxUYVjd
n8MpK/fA48RhJQpAqbePsZmE5Z4OCMyWwStyUwk4ngwNp2EXhSdJ56Gb579vjyJ0
7wpoRBRfO0S4ft2vflO+rP4MZj0/ShRwSGhEdE2xcUIA5CwdF4x3ACdTSOTG5miL
tOWr8+CHSvKczm17kCat
=HztD
-----END PGP SIGNATURE-----

--yONcMTi8nrafXh1i4ju85E9JaldoQeucw--


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.


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


Message received at submit@bugs.devuan.org:


Received: (at submit) by bugs.devuan.org; 17 Nov 2018 09:40:05 +0000
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
 


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


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


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: Mon, 27 May 2019 10:39:01 UTC