- Red Hat Enterprise Linux v7.x
- Upgrade of Red Hat Enterprise Linux fails if a filesystem is mounted on /XXX.
- Upgrade of filesystems package filesystem-*.el7.x86_64 fails if a filesystem is mounted on /XXX.
- The yum update filesystem package fails with error "error: unpacking of archive failed on file /XXX: cpio: YYY".
- Do not use /mnt as a mount point. Mount points should be at least one directory level beneath /mnt, such as /mnt/mountpoint
- Unmount the filesystem mounted on the /XXX directory.
XXX is mounted directory by the system.
The filesystem-*.el7.x86_64 package contains the /mnt directory. Any upgrade that includes this package will error if a filesystem is mounted on /mnt.
Running transaction Updating : filesystem-3.2-25.el7.x86_64 1/2 Error unpacking rpm package filesystem-3.2-25.el7.x86_64 error: unpacking of archive failed on file /mnt: cpio: lsetfilecon Uploading Package Profile Verifying : filesystem-3.2-25.el7.x86_64 1/2 filesystem-3.2-21.el7.x86_64 was supposed to be removed but is not! Verifying : filesystem-3.2-21.el7.x86_64 2/2 Failed: filesystem.x86_64 0:3.2-21.el7 filesystem.x86_64 0:3.2-25.el7
# rpm -ql filesystem | grep /mnt /mnt # yum provides /mnt filesystem-3.2-20.el7.x86_64 : The basic directory layout for a Linux system
The /mnt directory is provided the filesystem package.
The ISO media was mounted on /mnt directory hence the yum update filesystem failed
[root@rhel79 ~]# df -h | grep media /dev/sr0 4.3G 4.3G 0 100% /media [root@rhel79 ~]#
[root@rhel79 ~]# df -h | grep media /dev/loop 4.3G 4.3G 0 100% /mnt [root@rhel79 ~]#
- Red Hat Enterprise Linux
- Learn more
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.