FS#78664 - [util-linux] 2.39-4 mount no longer follows /etc/fstab

Attached to Project: Arch Linux
Opened by Rev. LeRoy D. Cressy (rev.cressy) - Wednesday, 31 May 2023, 13:48 GMT
Last edited by Christian Hesse (eworm) - Friday, 09 June 2023, 12:48 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Christian Hesse (eworm)
Architecture x86_64
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
When I attempt to mount a flash drive or external drive I get:
mount: /mnt/backup: must be superuser to use mount.

The mount command no longer follows the directions in /etc/fstab!
user,noauto,rw,exec

I rated this with a severity of low because to me it is just an annoyance, but other users who are not listed in the /etc/sudoers file could find this as a real problem.
Additional info:
* package version(s) 2.39-4
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
attempt to mount a flash drive or external drive as a normal user.
This task depends upon

Closed by  Christian Hesse (eworm)
Friday, 09 June 2023, 12:48 GMT
Reason for closing:  Fixed
Additional comments about closing:  util-linux 2.39-6
Comment by loqs (loqs) - Wednesday, 31 May 2023, 14:01 GMT Comment by Michel Koss (MichelKoss1) - Sunday, 04 June 2023, 15:10 GMT
This needs backporting https://github.com/util-linux/util-linux/commit/c0267687fd7b41b00d523d1985182d7eb574effd from upstream since next release may be months away.
Comment by Christian Hesse (eworm) - Monday, 05 June 2023, 19:27 GMT
This is queued for util-linux 2.39.1 already (in stable/v2.39), which should be released really soon.
Comment by Michel Koss (MichelKoss1) - Wednesday, 07 June 2023, 19:17 GMT
Are you sure about that? 2.38.1 was released 5 months after 2.38 and 2.39 was released just 3 weeks ago.

I don't know what are the upstream release plans but it's not obvious the next release will be soon.
Comment by Christian Hesse (eworm) - Friday, 09 June 2023, 09:10 GMT
Pretty sure we will see 2.39.1 really soon. 😉
The new mount API caused some fallout, that needs to be reacted on.

I switched the package to build from git, and fast-forwarded to current stable/v2.39 in util-linux 2.39-5. Please give it a try...
Comment by wtf (oi_wtf) - Friday, 09 June 2023, 11:21 GMT
I've got a similar problem, and 2.39-5 did not fix it for me.

I have a tmpfs in fstab like this, "exec" is after "user" as the man page says it needs to be:

> tmpfs /long/path/tmp tmpfs defaults,nofail,noauto,user,exec 0 0

util-linux 2.39-1 through 2.39-5 breaks this for me:

> $ mount /long/path/tmp
> mount: /long/path/tmp: must be superuser to use mount.

With util-linux 2.38.1-4 this works fine.


(Weirdly util-linux-libs 2.39-5 + util-linux 2.39-4 works fine? But I think that's probably not a good idea to do^^)
Comment by Christian Hesse (eworm) - Friday, 09 June 2023, 12:29 GMT
Please try util-linux 2.39-6...
Comment by wtf (oi_wtf) - Friday, 09 June 2023, 12:45 GMT
2.39-6 works for me.

Loading...