Your message dated Fri, 27 Sep 2019 04:49:13 +0000 with message-id <[email protected]> and subject line Bug#941019: fixed in zfs-linux 0.8.2-1 has caused the Debian Bug report #941019, regarding zfs-initramfs: Mounting natively encrypted ZFS root filesystem doesn't work, when plymouth is enabled to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 941019: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=941019 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: zfs-initramfs Version: 0.8.1-4~bpo10+1 Severity: normal Tags: patch Dear Maintainer, the "zfs" initramfs script tries to mount natively encrypted ZFS filesystem and fails if plymouth is enabled. Asking and relaying of a password to "zfs load-key" doesn't work. The same problem would probably occur if it were a systemd enabled initramfs. Error message: cannot open ''POOLNAME'' invalid character ''' in name There is a problem with quote removal shell processing, if the command is given as the --command parameter to plymouth. It also shouldn't be invoked through variable expansion. Eval would be the way I suppose. Unfortunately --command="eval ${DECRYPT_CMD}" also doesn't work. Here's a possible quick fix: --- /usr/share/initramfs-tools/scripts/zfs 2019-09-23 14:37:05.131987571 +0200 +++ /etc/initramfs-tools/scripts/zfs 2019-09-23 14:46:36.461307188 +0200 @@ -415,19 +415,22 @@ # If root dataset is encrypted... if ! [ "${ENCRYPTIONROOT}" = "-" ]; then - + # Prompt with plymouth, if active if [ -e /bin/plymouth ] && /bin/plymouth --ping 2>/dev/null; then - plymouth ask-for-password --prompt "Encrypted ZFS password for ${ENCRYPTIONROOT}" \ - --number-of-tries="3" \ - --command="${DECRYPT_CMD}" - + TRY_COUNT=3 + while [ $TRY_COUNT -gt 0 ]; do + plymouth ask-for-password --prompt "Encrypted ZFS password for ${ENCRYPTIONROOT}" | \ + eval "${DECRYPT_CMD}" && break + TRY_COUNT=$((TRY_COUNT - 1)) + done + # Prompt with systemd, if active elif [ -e /run/systemd/system ]; then TRY_COUNT=3 while [ $TRY_COUNT -gt 0 ]; do systemd-ask-password "Encrypted ZFS password for ${ENCRYPTIONROOT}" --no-tty | \ - ${DECRYPT_CMD} && break + eval "${DECRYPT_CMD}" && break TRY_COUNT=$((TRY_COUNT - 1)) done -- System Information: Debian Release: 10.1 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.2.0-0.bpo.2-amd64 (SMP w/8 CPU cores) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages zfs-initramfs depends on: ii busybox-static [busybox] 1:1.30.1-4 ii initramfs-tools 0.133+deb10u1 ii zfs-dkms [zfs-modules] 0.8.1-4~bpo10+1 ii zfsutils-linux 0.8.1-4~bpo10+1 zfs-initramfs recommends no packages. zfs-initramfs suggests no packages. -- no debconf information
--- End Message ---
--- Begin Message ---Source: zfs-linux Source-Version: 0.8.2-1 We believe that the bug you reported is fixed in the latest version of zfs-linux, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Mo Zhou <[email protected]> (supplier of updated zfs-linux package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Fri, 27 Sep 2019 12:35:34 +0800 Source: zfs-linux Architecture: source Version: 0.8.2-1 Distribution: unstable Urgency: medium Maintainer: Debian ZFS on Linux maintainers <[email protected]> Changed-By: Mo Zhou <[email protected]> Closes: 934631 940932 941019 Changes: zfs-linux (0.8.2-1) unstable; urgency=medium . * New upstream version 0.8.2 (Closes: #941019) * Deprecate control.in and use ${linux:Recommends} for the dynamic part. * French debconf templates translation by Julien Patriarca (Closes: #934631) * Remove merged patches: - 2000-increase-default-zcmd-allocation-to-256K.patch - git_fix_mount_race.patch * Disable linux-5.0-simd-compat.patch due to its incorrect assumption that may lead to system instability when SIMD is enabled. (Closes: #940932) See also https://github.com/zfsonlinux/zfs/issues/9346 * Install new service that waits on zvol links to be created (gh#8975). * Remove unused control variable ${python3:Depends} for zfsutils-linux. * Track symbols for lib{nvpair1,uutil1,zfs2,zpool2}. * lintian: Override source: excessive-debhelper-overrides * lintian: Remove unused overrides for zfs-test. Checksums-Sha1: 2e9d1084e32dcfeac065339541e6eafd4212d3d9 3429 zfs-linux_0.8.2-1.dsc 1e5a153b6758416342e9b04c034d95cc4df803a1 8738111 zfs-linux_0.8.2.orig.tar.gz a9d7b38213c51fe697be1ddeefe24366e4e78d7f 72508 zfs-linux_0.8.2-1.debian.tar.xz bc584c4ac3fd2171786600beffb6ee2a567ca578 7999 zfs-linux_0.8.2-1_source.buildinfo Checksums-Sha256: 2f0535b3109084a928e45a03a167f5dffe82b51d810e7196ad852752f079a40f 3429 zfs-linux_0.8.2-1.dsc 47608e257c8ecebb918014ef1da6172c3a45d990885891af18e80f5cc28beab8 8738111 zfs-linux_0.8.2.orig.tar.gz a66a0f70d212e0682731acbb2f50e9e50b8245e207ab7420a4fafa645487bfb4 72508 zfs-linux_0.8.2-1.debian.tar.xz abe7dee1852af04db1900770deb6217437a648ca3bc91505d836891a81570283 7999 zfs-linux_0.8.2-1_source.buildinfo Files: f54e89ffd9f23692ecf64d4891356803 3429 contrib/kernel optional zfs-linux_0.8.2-1.dsc 9952c0fb48bf55df18053aa7084ea405 8738111 contrib/kernel optional zfs-linux_0.8.2.orig.tar.gz 28c39cde2178d0c079cfb991def8e4e9 72508 contrib/kernel optional zfs-linux_0.8.2-1.debian.tar.xz 3463a6f1cb3d542213e456999a9f4590 7999 contrib/kernel optional zfs-linux_0.8.2-1_source.buildinfo -----BEGIN PGP SIGNATURE----- iQJJBAEBCgAzFiEEY4vHXsHlxYkGfjXeYmRes19oaooFAl2NkegVHGNkbHVtaW5h dGVAZ21haWwuY29tAAoJEGJkXrNfaGqKpioP/jkumt4CvcsgXWskK+KWdfNoDPju gERqxN8qxyL+TDx7JJfNKA3aPm9cU0g9ro+bLZeXNUPanqyONtUJdz9a7S0k3Rbo z4jxrncLxUZ/ZPkr8NHYrsHV6578lvSYdmC/iu93GCiYHe0wqagtj8wNLmT3IRHE TkfCw3ak+upp7kDHK5iK/Y4B/QT7fNaTxyw2qsrykJBBqhFM3uTHDNI/LPxkj8do HdVjrkxUynLwdLekZLKkxqO2SCrukoFTnHgwwPEd9+Jej46onmWcQORX5F63x4wN tE28cZKMEq4JsGi1XUcUm9JcF7u42zk1IPWDvFBr5h79FPxWiqQH/9T5n38PMCR8 weQn7+nK2vMU+Fh1oolrf2DLH8mhJYaySWmPRork4gGTCq7FMV7Yxp6hTWozVtBy AFswtpn/yd6IV5KsjgFeGVVuapodIS3g2H4COO+0UhynCwP4dNwqCq3yY5UjNuwI EM9dGK/CEwulNeTSYP0ISI7uhXZnSUxxeRvi0r3fdqQGz8MRlmac/fU/krruAJIZ CItZ0Z9vhITb8VWSm1oZlkgA5hW+mrqJezK9kHNm9LHyJ5pwYSndtE86gyji24BB JL3R/bw3U053MpO4rsIwTiG1epAbI8Z358jBohCfewBk71GlWZSvnedplBKMpqwD UhFYwz6I6gV+5Q6A =MjLw -----END PGP SIGNATURE-----
--- End Message ---

