Devuan bug report logs - #271
crytpsetup: none

Package: cryptsetup; Reported by: rsev@riseup.net; dated Sun, 16 Dec 2018 16:33:01 UTC; Maintainer for cryptsetup is (unknown).


Message received at 271@bugs.devuan.org:


Received: (at 271) by bugs.devuan.org; 24 Feb 2019 16:40:07 +0000
Subject: Re: [Devuan-bugs] bug#271: same in beowulf, but
To: 271@bugs.devuan.org
From: fsmithred <fsmithred@gmail.com>
Date: Sun, 24 Feb 2019 11:33:52 -0500

This is a multi-part message in MIME format.
--------------F02DEE9477C62A9DEA57871C
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

On 02/01/2019 01:02 PM, Where all about bugs in Devuan packages is
reported wrote:
> cryptsetup in beowulf/ceres faces same issue. shutdown takes almost a
> minute to complete. startup takes ~5-10".
> 
> version in beowulf at the moment is 2:2.0.6-1 and a lot of things seem
> changed, but this bug still occurs.

It's still present in 2:2.1.0-1 (currently in ceres/beowulf)
I applied Jan's patch from bug#237 and it seems to be working. (my diff
attached)
https://bugs.devuan.org//cgi/bugreport.cgi?bug=237

Another user tried it and sees a cryptsetup error go by quickly on
shutdown. My shutdown goes by too fast for me to see anything.


> i believe mx package can be found here :
> http://mxrepo.com/mx/repo/pool/main/c/cryptsetup-modified-functions/

Looks like it's for the older version of cryptsetup - it uses
cryptdisk.functions instead of cryptdisk-functions

> 
> also, could this be a eudev issue like in debian?
> ( https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=791944#305 ) and
> fixed in eudev init script like this :
> https://salsa.debian.org/systemd-team/systemd/commit/e803efca59978aa5bb1d8806247f986d0c0f7e67
> , perhaps??
> don't know much about internals, just wandering.

Those fixes are already in eudev in beowulf.

fsmithred



--------------F02DEE9477C62A9DEA57871C
Content-Type: text/x-patch;
 name="cryptdisks-functions_2.1.0-1.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="cryptdisks-functions_2.1.0-1.patch"

--- /lib/cryptsetup/cryptdisks-functions.orig	2019-02-23 18:47:10.260093106 -0500
+++ /lib/cryptsetup/cryptdisks-functions	2019-02-23 18:49:21.940097241 -0500
@@ -179,7 +179,18 @@
 
 # Removes all mappings in crypttab
 do_stop() {
+
+    local vgs vg
+
     dmsetup mknodes
+    if [ -x /sbin/lvm ]; then
+        vgs="$(/sbin/lvm vgscan | sed -n '/"/s/^.*"\([^'\'']*\)".*$/\1/p')"
+        if [ -n "${vgs}" ]; then
+          for vg in ${vgs}; do
+            /sbin/lvm vgchange -a n ${vg} >/dev/null 2>&1 
+          done 
+        fi
+    fi
     log_action_begin_msg "Stopping $INITSTATE crypto disks"
 
     crypttab_foreach_entry _do_stop_callback


--------------F02DEE9477C62A9DEA57871C--


Acknowledgement sent to fsmithred <fsmithred@gmail.com>:
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#271; Package cryptsetup. Full text available.


Message received at 271@bugs.devuan.org:


Received: (at 271) by bugs.devuan.org; 1 Feb 2019 18:10:02 +0000
To: 271@bugs.devuan.org
From: Dimitris <dimitris@stinpriza.org>
Subject: same in beowulf, but
Date: Fri, 1 Feb 2019 20:02:00 +0200

This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--ypV5vixCkyMYAuqg6eL5Ckq3kjvxca3rS
Content-Type: multipart/mixed; boundary="xcpsA7oljMOnlWKs7Loit5EFwabc2PBz1";
 protected-headers="v1"
From: Dimitris <dimitris@stinpriza.org>
To: 271@bugs.devuan.org
Message-ID: <452f3056-c987-9a11-6ef5-3126a72a0d24@stinpriza.org>
Subject: same in beowulf, but

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

cryptsetup in beowulf/ceres faces same issue. shutdown takes almost a
minute to complete. startup takes ~5-10".

version in beowulf at the moment is 2:2.0.6-1 and a lot of things seem
changed, but this bug still occurs.
haven't tried the patches yet, but from what i see filename is different
in beowulf (/lib/cryptsetup/cryptdisks-functions) and maybe other things
too. so i didn't want to risk untested patches for beowulf.

and FYI, MXlinux has a working version for sysvinit without this bug.
remember trying MX not long ago, with luks (included lately in mx
installer), and indeed shutdown had no such issues.
i believe mx package can be found here :
http://mxrepo.com/mx/repo/pool/main/c/cryptsetup-modified-functions/

also, could this be a eudev issue like in debian?
( https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D791944#305 ) and
fixed in eudev init script like this :
https://salsa.debian.org/systemd-team/systemd/commit/e803efca59978aa5bb1d=
8806247f986d0c0f7e67
, perhaps??
don't know much about internals, just wandering.

---
using openrc, amd64, fully upgraded beowulf/ceres.

thanks,
d.


--xcpsA7oljMOnlWKs7Loit5EFwabc2PBz1--

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

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

iQIzBAEBCgAdFiEECppUFUF7C9a+eth/9jQAR3Vpa4YFAlxUiZgACgkQ9jQAR3Vp
a4b2bw//RKxF0/uptHA6Jiq/OzPALHYgn4sRFKX29bK9NJniCV/zzodotREpedmz
pZxzOmw8WX+MYGNWufXXxkrxHkTQ85YA4nLsNTXFQ2wvyWIXRX5ktLdYPadIxUYC
VFNHOxp2i4pXs0+yLZx94Rcq6mhn1PHu6QaO53JwxeRmbGwSi8OjFqQZKCmvma9X
VigI42k5ipptYzzMiwb1sMRH6lkLprAPaAYyXhBTrtmO6LHZCi3Hkv+hbr0ho+aA
V7BN94XnKFhKh9jWAYzyU1EDrvdmlP6D/VhaGhVj1yUxqzPlG/SQ4kpqVBJlRIuC
BwumBNkkFSP0yI5wLFTW0NsKOBZO+ZbWFXAMReHzViF/XqgsNiIE+OMniUvWf1G8
zTtghhFEaYKBlYOsGa3tl+f+D+6PEQpSek91rsjaCMKSQNcI5mM5k3RSAhFuPN//
sUIvsgHtuzVv1BG+QT/FJAxIaa4SJimw7D6jsyObOQVK5h7xOGMfy5J+prGOvWzF
NqD9siaKJ+i3kyFU1Ia2mk8UvEzlWQkY29C2Br/qcoM94l+yYeJOmdjshvZvxHOd
adf6xqkMu51m1i3l10lLLiQ2MkliZQrpHwNR1OrAwml6OIZM7d8wprBECXbrScS+
BZYTtP+Scdj/5MQ4A7XiR7ymOCEgKMx7iA8dpDNmgMHmCq89wa8=
=C8LP
-----END PGP SIGNATURE-----

--ypV5vixCkyMYAuqg6eL5Ckq3kjvxca3rS--


Acknowledgement sent to Dimitris <dimitris@stinpriza.org>:
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#271; Package cryptsetup. Full text available.


Message received at submit@bugs.devuan.org:


Received: (at submit) by bugs.devuan.org; 16 Dec 2018 16:30:04 +0000
Date: Sun, 16 Dec 2018 08:19:59 -0800
From: rsev@riseup.net
To: Devuan Bug Tracking System <submit@bugs.devuan.org>
Subject: crytpsetup: none

Package: cryptsetup
Version: 2:1.7.3-4
Severity: normal

Dear Maintainer,

When shuting down my Devuan LVM + LUKS install, it hangs just at the end
of the shutdown sequence presenting messages like "sda5_crypt is busy"
and "sdb_crypt is busy". Only after 30 seconds or so pass, it acatully
shuts down.

Aplying one the patchs available at
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792552#5 or
https://bugs.devuan.org//cgi/bugreport.cgi?bug=237 fixes the problems
just fine for me.


Regards,

Rodrigo


-- Package-specific info:
-- /proc/cmdline
BOOT_IMAGE=/vmlinuz-4.18.0-0.bpo.1-amd64 root=/dev/mapper/cinza--vg-root
ro quiet

-- /etc/crypttab
sda5_crypt UUID=70c51778-8972-4ccd-b554-3377e25087a3 none luks
sdb_crypt UUID=42730e90-3b0c-4c8e-a8de-ade923baddb6
/root/.sdb_crypt.keyfile luks


-- /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name
devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/mapper/cinza--vg-root /               ext4    errors=remount-ro 0  
    1
# /boot was on /dev/sda1 during installation
UUID=18c90b2d-2409-4717-8ecf-c39f2d3c3484 /boot           ext2   
defaults        0       2
/dev/mapper/cinza--vg-home /home           ext4    defaults        0    
  2
/dev/mapper/cinza--vg-tmp /tmp            ext4    defaults        0     
 2
/dev/mapper/cinza--vg-var /var            ext4    defaults        0     
 2
/dev/mapper/cinza--vg-swap_1 none            swap    sw              0  
    0
/dev/vg2/vm /vm ext4 defaults 0 2


-- lsmod
Module                  Size  Used by
ctr                    16384  2
ccm                    20480  3
appletalk              40960  0
psnap                  16384  1 appletalk
llc                    16384  1 psnap
ax25                   65536  0
cmac                   16384  1
bnep                   24576  2
cpufreq_conservative    16384  0
cpufreq_userspace      16384  0
cpufreq_powersave      16384  0
bbswitch               16384  0
snd_hda_codec_realtek   110592  1
snd_hda_codec_generic    86016  1 snd_hda_codec_realtek
arc4                   16384  2
intel_rapl             24576  0
x86_pkg_temp_thermal    16384  0
intel_powerclamp       16384  0
iwldvm                159744  0
btusb                  53248  0
coretemp               16384  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
kvm_intel             237568  0
btintel                24576  1 btusb
mac80211              827392  1 iwldvm
i915                 1732608  5
bluetooth             630784  26 btrtl,btintel,btbcm,bnep,btusb
kvm                   733184  1 kvm_intel
uvcvideo              114688  0
videobuf2_vmalloc      16384  1 uvcvideo
videobuf2_memops       16384  1 videobuf2_vmalloc
iwlwifi               229376  1 iwldvm
snd_hda_intel          45056  3
videobuf2_v4l2         28672  1 uvcvideo
irqbypass              16384  1 kvm
drbg                   28672  1
videobuf2_common       49152  2 videobuf2_v4l2,uvcvideo
asus_nb_wmi            28672  0
snd_hda_codec         151552  3
snd_hda_codec_generic,snd_hda_intel,snd_hda_codec_realtek
asus_wmi               32768  1 asus_nb_wmi
iTCO_wdt               16384  0
ansi_cprng             16384  0
videodev              217088  3 videobuf2_v4l2,uvcvideo,videobuf2_common
intel_cstate           16384  0
iTCO_vendor_support    16384  1 iTCO_wdt
sparse_keymap          16384  1 asus_wmi
wmi_bmof               16384  0
mxm_wmi                16384  0
snd_hda_core           94208  4
snd_hda_codec_generic,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
intel_uncore          135168  0
media                  45056  2 videodev,uvcvideo
drm_kms_helper        196608  1 i915
ecdh_generic           24576  2 bluetooth
snd_hwdep              20480  1 snd_hda_codec
joydev                 24576  0
cfg80211              782336  3 iwldvm,iwlwifi,mac80211
intel_rapl_perf        16384  0
snd_pcm               118784  3 snd_hda_intel,snd_hda_codec,snd_hda_core
evdev                  28672  15
snd_timer              36864  1 snd_pcm
drm                   475136  6 drm_kms_helper,i915
pcspkr                 16384  0
serio_raw              16384  0
snd                    98304  13
snd_hda_codec_generic,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
rfkill                 28672  5 asus_wmi,bluetooth,cfg80211
soundcore              16384  1 snd
mei_me                 45056  0
i2c_algo_bit           16384  1 i915
acpi_als               16384  0
mei                   110592  1 mei_me
lpc_ich                28672  0
kfifo_buf              16384  1 acpi_als
wmi                    28672  3 asus_wmi,wmi_bmof,mxm_wmi
battery                24576  0
industrialio           81920  2 acpi_als,kfifo_buf
video                  45056  2 asus_wmi,i915
button                 16384  1 i915
asus_wireless          16384  0
ac                     16384  0
pcc_cpufreq            16384  0
uinput                 20480  1
ext4                  741376  6
crc16                  16384  2 bluetooth,ext4
mbcache                16384  1 ext4
jbd2                  118784  1 ext4
crc32c_generic         16384  0
fscrypto               32768  1 ext4
ecb                    16384  0
algif_skcipher         16384  0
af_alg                 28672  1 algif_skcipher
dm_crypt               45056  2
dm_mod                147456  23 dm_crypt
sg                     36864  0
sd_mod                 53248  4
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
crc32c_intel           24576  11
ghash_clmulni_intel    16384  0
pcbc                   16384  0
ahci                   40960  3
libahci                40960  1 ahci
ehci_pci               16384  0
aesni_intel           200704  9
aes_x86_64             20480  1 aesni_intel
libata                278528  2 libahci,ahci
crypto_simd            16384  1 aesni_intel
ehci_hcd               94208  1 ehci_pci
cryptd                 28672  5
crypto_simd,ghash_clmulni_intel,aesni_intel
glue_helper            16384  1 aesni_intel
psmouse               172032  0
scsi_mod              253952  3 sd_mod,libata,sg
i2c_i801               28672  0
atl1c                  53248  0
usbcore               290816  4 ehci_pci,uvcvideo,ehci_hcd,btusb
usb_common             16384  1 usbcore
thermal                20480  0


-- System Information:
Distributor ID:	Devuan
Description:	Devuan GNU/Linux 2.0 (ascii)
Release:	2.0
Codename:	ascii

Architecture: x86_64

Kernel: Linux 4.18.0-0.bpo.1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages cryptsetup depends on:
ii  cryptsetup-bin         2:2.0.6-1
ii  debconf [debconf-2.0]  1.5.61
ii  dmsetup                2:1.02.137-2
ii  libc6                  2.28-2

Versions of packages cryptsetup recommends:
ii  busybox                                 1:1.22.0-19+b3
ii  console-setup                           1.164
ii  initramfs-tools [linux-initramfs-tool]  0.130
ii  kbd                                     2.0.3-2+b1

Versions of packages cryptsetup suggests:
ii  dosfstools              4.1-1
pn  keyutils                <none>
ii  liblocale-gettext-perl  1.07-3+b1

-- debconf information:
* cryptsetup/prerm_active_mappings: true


Acknowledgement sent to rsev@riseup.net:
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#271; Package cryptsetup. 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: Fri, 15 Nov 2019 21:39:01 UTC