Bug 2386469 - updating fails when there's something mounted on /mnt
Summary: updating fails when there's something mounted on /mnt
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: filesystem
Version: 42
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Martin Osvald 🛹
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-08-05 01:07 UTC by Przemek Klosowski
Modified: 2025-08-07 11:27 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Przemek Klosowski 2025-08-05 01:07:22 UTC
I had a temporary RO mount of an external drive on /mnt, and updates of 'filesystem' package failed. I unmounted /mnt and the update proceeded without error. I wasn't able to reproduce it because the update is not idempotent, and I didn't want to risk (?) rolling it back, but if you have trouble reproducing I could be persuaded to try it.

In any case, the package should not be messing with /mnt.

Reproducible: Always

Steps to Reproduce:
1. mount /dev/sde1 /mnt
2. yum update filesystem
Actual Results:
                                                                                                                                      100% |   4.0   B/s |   2.0   B |  00m00s
[3/4] Upgrading filesystem-0:3.18-47.fc42.x86_64                                                                                                                 100% | 857.9 KiB/s | 212.8 KiB |  00m00s
>>> [RPM] unpacking of archive failed on file /mnt: cpio: chmod failed - Device or resource busy                                                                                                         
>>> Unpack error: filesystem-0:3.18-47.fc42.x86_64                                                                                                                                                       
Transaction failed: Rpm transaction failed.


Expected Results:
successful update

Comment 1 Zbigniew Jędrzejewski-Szmek 2025-08-07 09:26:27 UTC
I guess what is happening is that rpm tries to adjust the mode of /mnt as described in the package, and there's VFAT mounted on /mnt, and that fails as unsupported.

Since /mnt *is* supposed to be used like this, I think it'd make sense to change the entry to be %noverify or %ghost or something like that to make that case work.

Comment 2 Panu Matilainen 2025-08-07 11:27:59 UTC
I don't think any existing rpm file flag will help there, as long as the directory actually exists.

There's no good solution to this ATM, but there's an upstream ticket on this use-case: https://github.com/rpm-software-management/rpm/issues/3400


Note You need to log in before you can comment on or make changes to this bug.