[Pkg-utopia-maintainers] Bug#1098673: Bug#1098673: udisks2: autopkgtest fails with util-linux 2.41
Karel Zak
kzak at redhat.com
Mon Feb 24 13:17:05 GMT 2025
Hi all,
On Sun, Feb 23, 2025 at 12:52:18PM GMT, Michael Biebl wrote:
> > 625s AssertionError: Mounting read-only device with 'rw' option failed with an unexpected error.
> > 625s Got: udisks-error-quark: GDBus.Error:org.freedesktop.UDisks2.Error.Failed: Error mounting /dev/sr1 at /media/root/702d4ff0-e154-4099-b01b-8f1b578ad23a: fsconfig() failed: /dev/sr1: Can't open blockdev (0)
> > 625s Expected: '(is write-protected but `rw' option given|is write-protected but explicit read-write mode requested|fsconfig system call failed: /dev/sr.*: Can't open blockdev)'
>
>
> The error messages that u-l produces have changed due to
> https://github.com/util-linux/util-linux/commit/14233b28c0169d89d224065c805368893a097a6b
>
> This trips up the udisks2 test suite.
>
> We basically have two options:
> a/ revert that change in u-l
> b/ update udisks to accept both old and new style error messages
Any error messages are not part of the API and I don't think we should
maintain backward compatibility for error, warning, or info messages.
It would be better to check for the exit code or for the substring
"Operation not permitted" only.
Karel
--
Karel Zak <kzak at redhat.com>
http://karelzak.blogspot.com
More information about the Pkg-utopia-maintainers
mailing list