This service will be undergoing maintenance at 00:00 UTC, 2017-10-23 It is expected to last about 30 minutes
Bug 175803 - Cannot force fsck because of rc.sysinit typo
Cannot force fsck because of rc.sysinit typo
Product: Fedora
Classification: Fedora
Component: initscripts (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2005-12-15 00:50 EST by Mamoru TASAKA
Modified: 2014-03-16 22:57 EDT (History)
1 user (show)

See Also:
Fixed In Version: 8,.19-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-12-15 16:21:50 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Mamoru TASAKA 2005-12-15 00:50:31 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc3 Firefox/1.0.7

Description of problem:
When I want to check file systems forcely and shutdown the machine
with "shutdown -Fr now" or "touch /forcefsck && reboot", 
it mounts file systems normally and do not fsck forcely at all.

I think this is the bug of rc.sysinit caused by the fix for bug 169403.
The line 394 of rc.sysinit should be

    fsck -T -t \!opts=_netdev -A -a $fsckoptions

( and the line 392 must be like above ).

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Execute "touch /forcefsck && reboot"
2. See if fsck is executed forcely

Actual Results:  On next boot time, forced fsck is not executed.

Expected Results:  The command fsck should be executed forcely.

Additional info:
Comment 1 Mamoru TASAKA 2005-12-15 00:57:07 EST
On my system:
[root@halo TEMP]# cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot1            /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
LABEL=/home             /home                   ext3    defaults,usrquota        1 2
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
LABEL=/tmp              /tmp                    ext3    defaults        1 2
LABEL=/usr              /usr                    ext3    defaults        1 2
LABEL=/var              /var                    ext3    defaults        1 2
LABEL=SWAP-hda8         swap                    swap    defaults        0 0
LABEL=SWAP-hda9         swap                    swap    defaults        0 0
/dev/hdc                /media/cdrecorder       auto   
pamconsole,exec,noauto,managed 0 0

[root@halo TEMP]# fsck -T -t opts=!_netdev -A -a -N  ; echo $?
bash: !_netdev: event not found
[root@halo TEMP]# fsck -T -t opts=\!_netdev -A -a -N  ; echo $?
[root@halo TEMP]# fsck -T -t \!opts=_netdev -A -a -N  ; echo $?
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/hda3
[/sbin/fsck.ext3 (1) -- /boot] fsck.ext3 -a /dev/hda2
[/sbin/fsck.ext3 (1) -- /home] fsck.ext3 -a /dev/hda10
[/sbin/fsck.ext3 (1) -- /tmp] fsck.ext3 -a /dev/hda6
[/sbin/fsck.ext3 (1) -- /usr] fsck.ext3 -a /dev/hda5
[/sbin/fsck.ext3 (1) -- /var] fsck.ext3 -a /dev/hda7

The last behavior is what is required.
Comment 2 Mamoru TASAKA 2005-12-15 01:16:32 EST
Oh, initscripts rpm version is 8.18-1.1, not 8.18.1-1.    
Comment 3 Bill Nottingham 2005-12-15 16:21:50 EST
I think I'll just use noopts=_netdev, and avoid the shell quoting entirely. :)

Fixed in 8.19-1.

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