[ubuntu/focal-proposed] cryptsetup 2:2.2.2-3ubuntu2.3 (Accepted)
Guilherme G. Piccoli
gpiccoli at canonical.com
Thu Oct 8 16:40:59 UTC 2020
cryptsetup (2:2.2.2-3ubuntu2.3) focal; urgency=medium
* Introduce retry logic for external invocations after mdadm (LP: #1879980)
- Currently, if an encrypted rootfs is configured on top of a MD RAID1
array and such array gets degraded (e.g., a member is removed/failed)
the cryptsetup scripts cannot mount the rootfs, and the boot fails.
We fix that issue here by allowing the cryptroot script to be re-run
by initramfs-tools/local-block stage, as mdadm can activate degraded
arrays at that stage.
There is an initramfs-tools counter-part for this fix, but alone the
cryptsetup portion is harmless.
- d/cryptsetup-initramfs.install: ship the new local-bottom script.
- d/functions: declare variables for local-top|block|bottom scripts
(flag that local-block is running and external invocation counter.)
- d/i/s/local-block/cryptroot: set flag that local-block is running.
- d/i/s/local-bottom/cryptroot: clean up the flag and counter files.
- d/i/s/local-top/cryptroot: change the logic from just waiting 180
seconds to waiting 5 seconds first, then allowing initramfs-tools
to run mdadm (to activate degraded arrays) and call back at least
30 times/seconds more.
Date: Wed, 16 Sep 2020 17:40:05 -0300
Changed-By: gpiccoli at canonical.com (Guilherme G. Piccoli)
Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
Signed-By: Mauricio Faria de Oliveira <mfo at canonical.com>
https://launchpad.net/ubuntu/+source/cryptsetup/2:2.2.2-3ubuntu2.3
-------------- next part --------------
Format: 1.8
Date: Wed, 16 Sep 2020 17:40:05 -0300
Source: cryptsetup
Architecture: source
Version: 2:2.2.2-3ubuntu2.3
Distribution: focal
Urgency: medium
Maintainer: Ubuntu Developers <ubuntu-devel-discuss at lists.ubuntu.com>
Changed-By: Guilherme G. Piccoli <gpiccoli at canonical.com>
Launchpad-Bugs-Fixed: 1879980
Changes:
cryptsetup (2:2.2.2-3ubuntu2.3) focal; urgency=medium
.
* Introduce retry logic for external invocations after mdadm (LP: #1879980)
- Currently, if an encrypted rootfs is configured on top of a MD RAID1
array and such array gets degraded (e.g., a member is removed/failed)
the cryptsetup scripts cannot mount the rootfs, and the boot fails.
We fix that issue here by allowing the cryptroot script to be re-run
by initramfs-tools/local-block stage, as mdadm can activate degraded
arrays at that stage.
There is an initramfs-tools counter-part for this fix, but alone the
cryptsetup portion is harmless.
- d/cryptsetup-initramfs.install: ship the new local-bottom script.
- d/functions: declare variables for local-top|block|bottom scripts
(flag that local-block is running and external invocation counter.)
- d/i/s/local-block/cryptroot: set flag that local-block is running.
- d/i/s/local-bottom/cryptroot: clean up the flag and counter files.
- d/i/s/local-top/cryptroot: change the logic from just waiting 180
seconds to waiting 5 seconds first, then allowing initramfs-tools
to run mdadm (to activate degraded arrays) and call back at least
30 times/seconds more.
Checksums-Sha1:
9170f8d6b7700b287dd8370b752c2e56a475afb4 2993 cryptsetup_2.2.2-3ubuntu2.3.dsc
4c579c006375ed53acaae73cbba959eb788ce3a3 125868 cryptsetup_2.2.2-3ubuntu2.3.debian.tar.xz
4046d75208f831849ae230d9505ef410683b0bd8 7461 cryptsetup_2.2.2-3ubuntu2.3_source.buildinfo
Checksums-Sha256:
ea223463b916df2d46ad7a295035c0bdf3a33c66529d1a12f3c925617af11627 2993 cryptsetup_2.2.2-3ubuntu2.3.dsc
21c6cdff840d73761619403e17d2ade77ddfc9b2e3773feff68e395b499d94ed 125868 cryptsetup_2.2.2-3ubuntu2.3.debian.tar.xz
06edb61e4729f8094b6af64b35c46152d76bc42f98dc07c3c7afa961f138857c 7461 cryptsetup_2.2.2-3ubuntu2.3_source.buildinfo
Files:
9e39c8535afe8c8a5ae4bd0dd3652fb7 2993 admin optional cryptsetup_2.2.2-3ubuntu2.3.dsc
42fbacc684fd88d5f8813131335b3921 125868 admin optional cryptsetup_2.2.2-3ubuntu2.3.debian.tar.xz
eb42e792fe660eb449ab1c6ddeb9630c 7461 admin optional cryptsetup_2.2.2-3ubuntu2.3_source.buildinfo
Original-Maintainer: Debian Cryptsetup Team <pkg-cryptsetup-devel at alioth-lists.debian.net>
More information about the Focal-changes
mailing list