cannot be upgraded if the system has readonly mountpoint #1

Closed
opened 2025-07-30 05:08:29 +00:00 by metalefty · 1 comment

The filesystem package cannot be upgraded if the system has readonly mountpoint such as cdrom.

=====================================================================================================================================
 Package                          Architecture                 Version                            Repository                    Size
=====================================================================================================================================
Upgrading:
 filesystem                       x86_64                       3.16-5.el9                         baseos                       1.1 M

Transaction Summary
=====================================================================================================================================
Upgrade  1 Package

Total download size: 1.1 M
Is this ok [y/N]: y
Downloading Packages:
filesystem-3.16-5.el9.x86_64.rpm                                                                     1.4 MB/s | 1.1 MB     00:00
-------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                573 kB/s | 1.1 MB     00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Running scriptlet: filesystem-3.16-5.el9.x86_64                                                                                1/1
  Preparing        :                                                                                                             1/1
  Upgrading        : filesystem-3.16-5.el9.x86_64                                                                                1/2
error: lsetfilecon: (32 /mnt, system_u:object_r:mnt_t:s0) Read-only file system
error: Plugin selinux: hook fsm_file_prepare failed

Error unpacking rpm package filesystem-3.16-5.el9.x86_64
  Verifying        : filesystem-3.16-5.el9.x86_64                                                                                1/2
  Verifying        : filesystem-3.16-2.el9.x86_64                                                                                2/2

Failed:
  filesystem-3.16-2.el9.x86_64                                      filesystem-3.16-5.el9.x86_64

Error: Transaction failed

Steps to reproduce

  1. Boot AlmaLinux image with the older filesystem package (9.4) or downgrade to reproduce
  2. Mount something readonly: mount -o ro /dev/cdrom /mnt or mount -t tmpfs -o ro tmpfs /mnt
  3. Upgrade filesystem: dnf upgrade filesystem
The filesystem package cannot be upgraded if the system has readonly mountpoint such as cdrom. ``` ===================================================================================================================================== Package Architecture Version Repository Size ===================================================================================================================================== Upgrading: filesystem x86_64 3.16-5.el9 baseos 1.1 M Transaction Summary ===================================================================================================================================== Upgrade 1 Package Total download size: 1.1 M Is this ok [y/N]: y Downloading Packages: filesystem-3.16-5.el9.x86_64.rpm 1.4 MB/s | 1.1 MB 00:00 ------------------------------------------------------------------------------------------------------------------------------------- Total 573 kB/s | 1.1 MB 00:01 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Running scriptlet: filesystem-3.16-5.el9.x86_64 1/1 Preparing : 1/1 Upgrading : filesystem-3.16-5.el9.x86_64 1/2 error: lsetfilecon: (32 /mnt, system_u:object_r:mnt_t:s0) Read-only file system error: Plugin selinux: hook fsm_file_prepare failed Error unpacking rpm package filesystem-3.16-5.el9.x86_64 Verifying : filesystem-3.16-5.el9.x86_64 1/2 Verifying : filesystem-3.16-2.el9.x86_64 2/2 Failed: filesystem-3.16-2.el9.x86_64 filesystem-3.16-5.el9.x86_64 Error: Transaction failed ``` ## Steps to reproduce 1. Boot AlmaLinux image with the older filesystem package (9.4) or downgrade to reproduce 2. Mount something readonly: `mount -o ro /dev/cdrom /mnt` or `mount -t tmpfs -o ro tmpfs /mnt` 3. Upgrade filesystem: dnf upgrade filesystem
Author

Closing due to not a bug in upstream. https://bugzilla.redhat.com/show_bug.cgi?id=538674

/mnt is not meant to be used as a direct mount point for filesystems, we need to create mount point such as /mnt/foobar and mount other filesystem there.

Closing due to not a bug in upstream. https://bugzilla.redhat.com/show_bug.cgi?id=538674 `/mnt` is not meant to be used as a direct mount point for filesystems, we need to create mount point such as `/mnt/foobar `and mount other filesystem there.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: rpms/filesystem#1
No description provided.