Your message dated Wed, 27 Dec 2023 18:04:37 +0000
with message-id <[email protected]>
and subject line Bug#1057295: fixed in bcachefs-tools 24+really1.3.4-2~exp1
has caused the Debian Bug report #1057295,
regarding bcachefs-tools: breaks "mount" if the package is installed
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.)


-- 
1057295: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1057295
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: bcachefs-tools
Version: 24+really1.3.4-1
Severity: important

If bcachefs-tools is installed, "mount" fails to mount any bcachefs
filesystems, saying:

.----
Unknown command /dev/nvme0n1p2
bcachefs - tool for managing bcachefs filesystems
usage: bcachefs <command> [<args>]

Superblock commands:
  format                   Format a new filesystem
  show-super               Dump superblock information to stdout
  set-option               Set a filesystem option
[... (eleventy lines of help snipped)]
`----

Conversely, if the package is _not_ installed, everything goes fine.
Stracing "mount", I see that it tries to run /sbin/mount.bcachefs (which
is symlinked to "bcachefs") if it exists.

The culprit is:
.--====[ bcachefs.c ]
#ifndef BCACHEFS_NO_RUST
        if (strstr(full_cmd, "mount"))
                return cmd_mount(argc, argv);
#endif

...

#ifndef BCACHEFS_NO_RUST
        if (!strcmp(cmd, "mount"))
                return cmd_mount(argc, argv);
    if (strstr(cmd, "completions"))
        return cmd_completions(argc, argv);
#endif
`----

Ie, the "mount" subcommand (both invoked explicitly and via argv[0]) is not
compiled in our current package.  It's not actually needed for basic operation
(the default logic in /sbin/mount is good enough), but if the helper exists,
"mount" will abort if it the helper fails.

I found it puzzling that no one reported this, quite fatal, bug in two weeks
since your upload (I for one have been away from this machine for a while).
However, it turns out systemd does not use this helper but reinvents it
(expect incompatible ways of handling options, but I digress).  This means,
out of 21 popcon votes, most folks had boot-time mount succeed, while only
manual mount would fail.

In other words:
 ✓ boot-time via systemd
 ✗ boot-time via initscripts
 ✗ manual via "mount"

A simple workaround would be to just drop the /sbin/mount.bcachefs symlink
until rust pieces are back.  But alas, I see that the helper is needed for
handling UUID= stanzas.  A typical person would say /dev/nvme0n1p2 while
d-i prefers PARTUUID= thus that'd _usually_ work... but still not ideal.

On the other hand, at least UUID= has never worked for bcachefs on Debian,
thus at least that part is no regression.


Meow!
-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (666, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
merged-usr: no
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.6.0-rc5-mithlond-02787-gf0f2365d02d9 (SMP w/4 CPU threads; 
PREEMPT)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages bcachefs-tools depends on:
ii  libaio1       0.3.113-5
ii  libblkid1     2.39.2-6
ii  libc6         2.37-12
ii  libkeyutils1  1.6.3-2
ii  liblz4-1      1.9.4-1
ii  libsodium23   1.0.18-1
ii  liburcu8      0.14.0-2
ii  libuuid1      2.39.2-6
ii  libzstd1      1.5.5+dfsg2-2
ii  zlib1g        1:1.2.13.dfsg-3

Versions of packages bcachefs-tools recommends:
ii  initramfs-tools [linux-initramfs-tool]  0.142

bcachefs-tools suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: bcachefs-tools
Source-Version: 24+really1.3.4-2~exp1
Done: Jonathan Carter <[email protected]>

We believe that the bug you reported is fixed in the latest version of
bcachefs-tools, 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.
Jonathan Carter <[email protected]> (supplier of updated bcachefs-tools 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: Wed, 27 Dec 2023 19:22:06 +0200
Source: bcachefs-tools
Architecture: source
Version: 24+really1.3.4-2~exp1
Distribution: experimental
Urgency: medium
Maintainer: Jonathan Carter <[email protected]>
Changed-By: Jonathan Carter <[email protected]>
Closes: 1057295 1059373
Changes:
 bcachefs-tools (24+really1.3.4-2~exp1) experimental; urgency=medium
 .
   [ Chris Hofstaedtler ]
   * Non-maintainer upload.
   * Install files into /usr instead of /. (Closes: #1059373)
 .
   [ Jonathan Carter ]
   * Do not install bcachefs.mount symlink (Closes: #1057295)
Checksums-Sha1:
 dd675a678f02c6ab14c9bfeb7c78672e3a2eb3ff 2200 
bcachefs-tools_24+really1.3.4-2~exp1.dsc
 aac9dfb7d64a770ac001d7e52d723c951d6dac62 1034759 
bcachefs-tools_24+really1.3.4.orig.tar.gz
 ef40b70bf54031b5fc6b140bd8726a5ffb83e054 4124 
bcachefs-tools_24+really1.3.4-2~exp1.debian.tar.xz
 e62dd75905ff71a275c18afd610dca69a2ed399e 8447 
bcachefs-tools_24+really1.3.4-2~exp1_source.buildinfo
Checksums-Sha256:
 df6e4d901cf1204658d10696e6dccd94a4b3043dc4328129856dba641e50790b 2200 
bcachefs-tools_24+really1.3.4-2~exp1.dsc
 0f763e38e1c69f7928ffe978581975419dd42519dda4ff33dce90c6b9d0407e6 1034759 
bcachefs-tools_24+really1.3.4.orig.tar.gz
 aeffbe42ce99ac7c9809039c85e597d5762045decd191c87bfa8a45a886c5fd9 4124 
bcachefs-tools_24+really1.3.4-2~exp1.debian.tar.xz
 11664ad20ef9d741a49c56d4444c1a934ec54f95e349002620047483bf872f10 8447 
bcachefs-tools_24+really1.3.4-2~exp1_source.buildinfo
Files:
 2ad06eb3c92c7cdf6e3bbf1ec59a141f 2200 utils optional 
bcachefs-tools_24+really1.3.4-2~exp1.dsc
 7f44467835460f15222c877d67c5fc47 1034759 utils optional 
bcachefs-tools_24+really1.3.4.orig.tar.gz
 6d95b18be1f7ca4c03a42b8e4967430c 4124 utils optional 
bcachefs-tools_24+really1.3.4-2~exp1.debian.tar.xz
 da6c777141ec57100a32ac8b52c7bd12 8447 utils optional 
bcachefs-tools_24+really1.3.4-2~exp1_source.buildinfo

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

iQJDBAEBCgAtFiEExyA8CpIGcL+U8AuxsB0acqyNyaEFAmWMX2EPHGpjY0BkZWJp
YW4ub3JnAAoJELAdGnKsjcmhjk4P/Au8YVpDqnl4ZPrvQD9vQ7G78xE3tQaI9dJ4
kW0yMMk8Pcsas2/Bvi/futL8D5eD5tYMPEDERVtxagEpQ1kVXB82tysiWZQlL6EC
38s+2UMOE+VBgfQbiXCkiCkv6/Zde4OzBVzXyr+e7qcqgBAp1RJ1QO+1XRUJ0Ze9
MBsPkWC9xLlCC6vdkOLaoh8SqqO10B5DRHsSMkb4/yypjvPKwMTAA5mgCkSLWODy
T/3Ezh9D+obvhVkjhvHsgFmDMLlsBJV1vxwdiwXPB3jK3ohqOtJhN2GDlHPGGvxq
+LgGd99HNxNelt1Njl14IogC+nlt2t9LzT+yX1xy6elrwbLzpRHXX+0xYF8NN8l/
DODntFwE+nUmc2HVgmOs+VkPGAC55MN//DV/zY5XJ+MDd1rxuI5FbOQh2o+Zv/oB
n+IUfZJgKy2YV5q15anu22iebn4s1cy0ZAtqIqH7fXTjPboVFfUqhoh7MW3mVsxr
h01QxZkA34oo3FO6hDzab9RcXc87FoECloorUaG2vbliP1jIZd0VPeecMFd6p3zf
u4bLYG+eq9FZ459ErOs96jsqeSnagPgfW87IKYcXDR+v81DniGKJmJKVCV5g3w3+
tST+HgGmbvsuZNXLZLVVMLCJN8YPYGHFv0EJ3SeYmLXhdpQ5qGo3jyRa4y4Bc521
xlPew7i2
=5dhx
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to