From unknown Fri Mar 29 04:40:29 2024 Received: (at 271) by bugs.devuan.org; 24 Feb 2019 16:40:07 +0000 Return-Path: Delivered-To: devuanbugs@dyne.org Received: from tupac3.dyne.org [195.169.149.119] by fulcanelli with IMAP (fetchmail-6.3.26) for (single-drop); Sun, 24 Feb 2019 17:40:07 +0100 (CET) Received: from mail-qt1-f195.google.com (mail-qt1-f195.google.com [209.85.160.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by vm6.ganeti.dyne.org (Postfix) with ESMTPS id 4B021F60C0D for <271@bugs.devuan.org>; Sun, 24 Feb 2019 17:34:02 +0100 (CET) Authentication-Results: vm6.ganeti.dyne.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="pB187suD"; dkim-atps=neutral Received: by mail-qt1-f195.google.com with SMTP id a48so7947375qtb.4 for <271@bugs.devuan.org>; Sun, 24 Feb 2019 08:34:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:references:to:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=zzmFtdMZn+G7a4aJ8marMDi8krFDZAM9grOuwzocbPM=; b=pB187suD5+FpOn1ELQkeYFxT+kV8XM18WqLuN9TwYhpflKEMbtF/CgzHB+tE2yp3vQ yO0dvckhLi2JReQDwrX5YGz8nylCuj8LL0bhEmIFJqjCr9eNHZFXE+PG1nGHCZ94ybAd QmPlOUopdZFAuKehvpPp0WxEM3LnmVvuaNyvQoqusN4pMgZ7fO6OwlrQDBwgV5gpbqJL ER6GtGgBOCxGpAkWhgpb9oTeRGbkpKhLl/afVMsC6nfaqC54Iar+S+jyT4nJmgtN1Rzy XTzO4cQRUvP9QFoCl9VfuiAxMzuVAGGaiX3PYbhUSoFYYItSIRFhtLT55NG7uljRMnRl auww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:references:to:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=zzmFtdMZn+G7a4aJ8marMDi8krFDZAM9grOuwzocbPM=; b=lUS6vM5JxxE29mEtiiK6lWQRpMCQ4IXszLIbmPr5sma8X0jDl0iwNvkF53tsmOk3SO rPu6XEi6Y3DrJzbsD4tN4QEh7rY9Z6JaY8ZTL5thaQNjcy2Zc20/4/n2HSlgXNY/KRen ym67BFiGEQJyBDw+o3PJsX+UDniWzOVrf89FGLW5lgzkMdCsFbB2nE6hA7fmA+j2SIys O157A9Rcc1eo6tgt23dhAN/5vg7WRB+bi0vu4SYsacc4e1GpepYdMlQjvsdQSSX9l9os w9T3psV4cSLCrrmdSAGmUVWEwP88Ze4VZ8l0re/x+gQLf7rxAdwQ6CzioAGvulHdoakZ mEjg== X-Gm-Message-State: AHQUAuYUp2/K6RwlOt+dJ8MPf4KvyCZBzpYM8Bnx79dmklEF0GovpilS GgdJvG5VI/C8mBkCe0eHPfKNmqRc X-Google-Smtp-Source: AHgI3IbsPsqTvMHFMVHjV0F9AGAFAs+UJqhJqPd/KaMXGiM6NWcmFMxfSWx4FeMrg0f7HhTGx+drFA== X-Received: by 2002:ac8:3f98:: with SMTP id d24mr10539176qtk.219.1551026040419; Sun, 24 Feb 2019 08:34:00 -0800 (PST) Received: from [192.168.1.41] (047-014-239-165.res.spectrum.com. [47.14.239.165]) by smtp.googlemail.com with ESMTPSA id g2sm3903851qkc.72.2019.02.24.08.33.59 for <271@bugs.devuan.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Feb 2019 08:33:59 -0800 (PST) Subject: Re: [Devuan-bugs] bug#271: same in beowulf, but References: To: 271@bugs.devuan.org From: fsmithred X-Forwarded-Message-Id: Message-ID: <8951d96a-1241-e9c4-eed0-27bca905c15b@gmail.com> Date: Sun, 24 Feb 2019 11:33:52 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------F02DEE9477C62A9DEA57871C" Content-Language: en-US X-Spam-Status: No, score=4.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RAZOR2_CF_RANGE_51_100, RAZOR2_CHECK,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_PASS autolearn=disabled version=3.4.2 X-Spam-Level: *** X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tupac3.dyne.org 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--