Your message dated Wed, 10 Jul 2019 19:36:33 +0000
with message-id <[email protected]>
and subject line Bug#931399: fixed in udisks2 2.8.3-2
has caused the Debian Bug report #931399,
regarding zram-setup@ ConditionPathExists= (only run when zram is configured by 
udisks2)
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.)


-- 
931399: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=931399
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: udisks2
Version: 2.8.1-4
Severity: minor
File: /lib/systemd/system/[email protected]
Tags: patch

The core package (i.e. udisk2, not udisks2-zram) ships a udev rule and a 
systemd unit to configure zram.
These fire on "modprobe zram", even when udisks2-zram isn't installed, and 
udisks-specific config file doesn't exist.
Please add the following line to modules/zram/data/[email protected], so it 
will only fire when it should:

    [Unit]
    ConditionPathExists=/usr/local/lib/zram.conf.d/%i-env

You might also want to change this rule so it won't report an error when SWAP=n:

    -ExecStart=-/bin/sh -c '[ "$SWAP" = "y" ] && mkswap /dev/%i && swapon 
/dev/%i'
    +ExecStart=/bin/sh -c 'if [ "$SWAP" = "y" ]; then mkswap /dev/%i && swapon 
/dev/%i; fi'

You might also like the confinement suggestions of "systemd-analyze security 
zram-setup@".

-- System Information:
Debian Release: 10.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-proposed-updates'), (500, 
'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages udisks2 depends on:
ii  dbus                   1.12.16-1
ii  libacl1                2.2.53-4
ii  libatasmart4           0.19-5
ii  libblockdev-fs2        2.20-7
ii  libblockdev-loop2      2.20-7
ii  libblockdev-part2      2.20-7
ii  libblockdev-swap2      2.20-7
ii  libblockdev-utils2     2.20-7
ii  libblockdev2           2.20-7
ii  libc6                  2.28-10
ii  libglib2.0-0           2.58.3-2
ii  libgudev-1.0-0         232-2
ii  libmount1              2.33.1-0.1
ii  libpam-systemd         241-5
ii  libpolkit-agent-1-0    0.105-25
ii  libpolkit-gobject-1-0  0.105-25
ii  libsystemd0            241-5
ii  libudisks2-0           2.8.1-4
ii  parted                 3.2-25
ii  udev                   241-5

Versions of packages udisks2 recommends:
ii  dosfstools           4.1-2
ii  e2fsprogs            1.44.5-1
ii  eject                2.1.5+deb1+cvs20081104-13.2
ii  exfat-utils          1.3.0-1
ii  libblockdev-crypto2  2.20-7
ii  ntfs-3g              1:2017.3.23AR.3-3
ii  policykit-1          0.105-25

Versions of packages udisks2 suggests:
ii  btrfs-progs          4.20.1-2
pn  f2fs-tools           <none>
pn  libblockdev-mdraid2  <none>
pn  mdadm                <none>
pn  nilfs-tools          <none>
pn  reiserfsprogs        <none>
pn  udftools             <none>
pn  udisks2-bcache       <none>
pn  udisks2-btrfs        <none>
pn  udisks2-lvm2         <none>
pn  udisks2-vdo          <none>
pn  udisks2-zram         <none>
pn  xfsprogs             <none>

-- no debconf information
Demonstrating the initial problem:

    bash5$ systemctl status | head -2
    ● goll
        State: running
    bash5$ dpkg-query -W udisks2 udisks2-zram
    udisks2     2.8.1-4
    udisks2-zram        
    bash5$ sudo modprobe zram
    bash5$ systemctl status zram-setup@zram0
    ● [email protected] - Setup zram based device zram0
       Loaded: loaded (/lib/systemd/system/[email protected]; static; vendor 
preset: enabled)
       Active: active (exited) since Thu 2019-07-04 11:20:11 AEST; 17s ago
      Process: 1023 ExecStart=/bin/sh -c echo $ZRAM_NUM_STR > 
/sys/class/block/zram0/max_comp_streams (code=exited, status=0/SUCCESS)
      Process: 1028 ExecStart=/bin/sh -c echo $ZRAM_DEV_SIZE > 
/sys/class/block/zram0/disksize (code=exited, status=1/FAILURE)
      Process: 1031 ExecStart=/bin/sh -c [ "$SWAP" = "y" ] && mkswap /dev/zram0 
&& swapon /dev/zram0 (code=exited, status=1/FAILURE)
     Main PID: 1031 (code=exited, status=1/FAILURE)

    Jul 04 11:20:11 goll systemd[1]: Starting Setup zram based device zram0...
    Jul 04 11:20:11 goll sh[1028]: /bin/sh: 1: echo: echo: I/O error
    Jul 04 11:20:11 goll systemd[1]: Started Setup zram based device zram0.

Demonstrating the fix:

    bash5$ sudo systemctl stop zram-setup@zram0
    bash5$ sudo rmmod zram
    bash5$ sudo SYSTEMD_EDITOR=ed systemctl edit zram-setup@
    0
    i
    [Unit]
    ConditionPathExists=/usr/local/lib/zram.conf.d/%i-env
    .
    w
    61
    q
    bash5$ sudo modprobe zram
    bash5$ systemctl status zram-setup@zram0 -l
    ● [email protected] - Setup zram based device zram0
       Loaded: loaded (/lib/systemd/system/[email protected]; static; vendor 
preset: enabled)
      Drop-In: /etc/systemd/system/[email protected]
               └─override.conf
       Active: inactive (dead)
    Condition: start condition failed at Thu 2019-07-04 11:47:30 AEST; 40s ago
               └─ ConditionPathExists=/usr/local/lib/zram.conf.d/zram0-env was 
not met

    [...]
    Jul 04 11:47:30 goll systemd[1]: Condition check resulted in Setup zram 
based device zram0 being skipped.

Demonstrating the fix doesn't break things for existing users:

    bash5$ sudo systemctl stop zram-setup@zram0
    bash5$ sudo rmmod zram
    bash5$ sudo mkdir /usr/local/lib/zram.conf.d
    bash5$ VISUAL= EDITOR=ed sudoedit /usr/local/lib/zram.conf.d/zram0-env
    0
    i
    # This is based on udiskslinuxmanagerzram.c:create_conf_files
    ZRAM_NUM_STR=4
    ZRAM_DEV_SIZE=409600
    SWAP=n
    .
    w
    105
    q
    bash5$ sudo modprobe zram
    bash5$ systemctl status zram-setup@zram0
    ● [email protected] - Setup zram based device zram0
       Loaded: loaded (/lib/systemd/system/[email protected]; static; vendor 
preset: enabled)
      Drop-In: /etc/systemd/system/[email protected]
               └─override.conf
       Active: active (exited) since Thu 2019-07-04 12:01:35 AEST; 6s ago
      Process: 3623 ExecStart=/bin/sh -c echo $ZRAM_NUM_STR > 
/sys/class/block/zram0/max_comp_streams (code=exited, status=0/SUCCESS)
      Process: 3624 ExecStart=/bin/sh -c echo $ZRAM_DEV_SIZE > 
/sys/class/block/zram0/disksize (code=exited, status=0/SUCCESS)
      Process: 3625 ExecStart=/bin/sh -c [ "$SWAP" = "y" ] && mkswap /dev/zram0 
&& swapon /dev/zram0 (code=exited, status=1/FAILURE)
     Main PID: 3625 (code=exited, status=1/FAILURE)

    Jul 04 12:01:35 goll systemd[1]: Starting Setup zram based device zram0...
    Jul 04 12:01:35 goll systemd[1]: Started Setup zram based device zram0.
    bash5$ 

--- End Message ---
--- Begin Message ---
Source: udisks2
Source-Version: 2.8.3-2

We believe that the bug you reported is fixed in the latest version of
udisks2, 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.
Michael Biebl <[email protected]> (supplier of updated udisks2 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: SHA256

Format: 1.8
Date: Wed, 10 Jul 2019 16:48:27 +0200
Source: udisks2
Architecture: source
Version: 2.8.3-2
Distribution: unstable
Urgency: medium
Maintainer: Utopia Maintenance Team 
<[email protected]>
Changed-By: Michael Biebl <[email protected]>
Closes: 931399
Changes:
 udisks2 (2.8.3-2) unstable; urgency=medium
 .
   * Move [email protected] from udisks2 to udisks2-zram.
     Add Breaks/Replaces accordingly. (Closes: #931399)
Checksums-Sha1:
 83c9b50c7b36667b13d0376ec6adfcaf547a9bbc 3449 udisks2_2.8.3-2.dsc
 96b6b5cc2a4a4fd63c5e67796d96f9f34c0b2298 15504 udisks2_2.8.3-2.debian.tar.xz
 5cb067f4f28970b4b541d7fb8a60d878d67b4734 15542 udisks2_2.8.3-2_source.buildinfo
Checksums-Sha256:
 4437afa0d0ac8095bdd5970b0ac28de29823b4bec384fc8f3ed7dc5d27726a5e 3449 
udisks2_2.8.3-2.dsc
 ceb01aa27cdc228557c92d5ef7202bfbc7bfa32b1e9f7202dd310c5674d31ad4 15504 
udisks2_2.8.3-2.debian.tar.xz
 18cab4e366baf67a4ceea72a137275a95a0192aa3e3c9c6b1804e3ab38aa3384 15542 
udisks2_2.8.3-2_source.buildinfo
Files:
 7ee327c7964e10b13956f8d6ca377ae4 3449 admin optional udisks2_2.8.3-2.dsc
 74717e3c9e97f609c59ad9d67778ac6b 15504 admin optional 
udisks2_2.8.3-2.debian.tar.xz
 f7f03f44cc9f11771896ada828369907 15542 admin optional 
udisks2_2.8.3-2_source.buildinfo

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

iQIzBAEBCAAdFiEECbOsLssWnJBDRcxUauHfDWCPItwFAl0l/HUACgkQauHfDWCP
Itwixw/+OYb2pX8cyQi6HQXaHMxyrnIUVKS2/yLIDXSTsvpfzTvxew9vzcbUpv2K
V6PNAJcLt+UDwxx+qt9+mWPdwPexSGThKU19FUZQxRgHHJKYnrreJpP8nikEr6k+
eFQtzEswWktdBQrXhRkvThNMbxdyLybre5Gx10aT5KlmwZdX86MgeaZ8wTKnf4Ls
isuawwT3y38gxb9aW1BVbWjnTBp96SzvFKI9azqDdkPR2sMkcrkVadAoyAoJyFM2
uNhLEwi8nCW6L/J0hUwrIEeRgyztfFnhSYT3t7SQX5rNg0QqFpYURfxxI/0GDEq0
1G5WtTEMyxhojXgdUpKHBw7xuaQ9t6F/BFS0rInsBY3baoX06yir21nEEghjAk0E
h+rFrc17ntUEardKzCvqL+YI2msAe/sIjhKGD3rz1hE6rGdB2FM099c83kkb7y73
7VeclXHr5C/08TJErOdXmtnTLZB6Lfz2L8GCpxgvYD4Qt29brJyhf0RfYfuH8KnI
i7N4SpiwqFG7teC7dE1bT8NP+e30FDJKAhPxC/4hbWDwKZJvtPcj5Eb38NibduNb
RiWGJUJaqL6+kkYI0QbUnCpS9B2M7Vxv8Sl/TYSDpWPP7iqWzEYv5kPoG5+h3OWm
QgcXYvJxRKO/qbiBF8qUjstT8XPLCxhYLlfiE00IgQ0i/k3BlJ4=
=9mst
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Pkg-utopia-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-utopia-maintainers

Reply via email to