| Summary: | fixfiles not working on ext4 filesystems | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | G. Bersano <giorgio.bersano> |
| Component: | policycoreutils | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED ERRATA | QA Contact: | Michal Trunecka <mtruneck> |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 5.6 | CC: | dwalsh, ebenes, mmalik, mtruneck |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | policycoreutils-1.33.12-14.11.el5 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-09-30 23:22:39 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release. Fixed in policycoreutils-1.33.12-14.10.el5 Fixed in policycoreutils-1.33.12-14.11.el5 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2013-1344.html |
Description of problem: /sbin/fixfiles returns without doing anything on filesystems formatted as ext4 Version-Release number of selected component (if applicable): until policycoreutils-1.33.12-14.8 As the scripts enumerates accepted filesys types ( ext2, ext3, jfs, xfs) and ext4 is missing it returns without doing any necessary modification. The following patch make it work as expected. Best regards, Giorgio. # diff -c /sbin/fixfiles-1.33.12-14.8 /sbin/fixfiles *** /sbin/fixfiles-1.33.12-14.8 2010-04-03 05:09:27.000000000 +0200 --- /sbin/fixfiles 2011-07-09 16:21:58.000000000 +0200 *************** *** 88,94 **** fi; \ done | \ while read pattern ; do find $pattern \ ! ! \( -fstype ext2 -o -fstype ext3 -o -fstype jfs -o -fstype xfs \) -prune -o \ \( -wholename /home -o -wholename /root -o -wholename /tmp -wholename /dev \) -prune -o -print; \ done 2> /dev/null | \ ${RESTORECON} ${FORCEFLAG} $2 -v -f - --- 88,94 ---- fi; \ done | \ while read pattern ; do find $pattern \ ! ! \( -fstype ext2 -o -fstype ext3 -o -fstype ext4 -o -fstype jfs -o -fstype xfs \) -prune -o \ \( -wholename /home -o -wholename /root -o -wholename /tmp -wholename /dev \) -prune -o -print; \ done 2> /dev/null | \ ${RESTORECON} ${FORCEFLAG} $2 -v -f - *************** *** 127,133 **** if [ ! -z "$DIRS" ]; then if [ -x /usr/bin/find ]; then for d in ${DIRS} ; do find $d \ ! ! \( -fstype ext2 -o -fstype ext3 -o -fstype jfs -o -fstype xfs \) -prune -o -print | \ ${RESTORECON} ${FORCEFLAG} $* -f - 2>&1 >> $LOGFILE done else --- 127,133 ---- if [ ! -z "$DIRS" ]; then if [ -x /usr/bin/find ]; then for d in ${DIRS} ; do find $d \ ! ! \( -fstype ext2 -o -fstype ext3 -o -fstype ext4 -o -fstype jfs -o -fstype xfs \) -prune -o -print | \ ${RESTORECON} ${FORCEFLAG} $* -f - 2>&1 >> $LOGFILE done else