RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1683906 - rd.skipfsck command line parameter of RHEL-8's dracut does not skip fsck at the time of boot
Summary: rd.skipfsck command line parameter of RHEL-8's dracut does not skip fsck at t...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: dracut
Version: 8.0
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: rc
: 8.0
Assignee: Lukáš Nykrýn
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-28 04:38 UTC by Yogesh Babar
Modified: 2020-08-05 10:24 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-08-05 10:24:28 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Yogesh Babar 2019-02-28 04:38:45 UTC
Description of problem:

rd.skipfsck command line parameter of RHEL-8's Dracut does not work. This seems to be a bug since after using rd.skipfsck parameter also system is performing fsck on root device in initramfs environment. 

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


How reproducible:
Pass rd.skipfsck command line parameter to kernel and capture console messages

Steps to Reproduce:
1.pass rd.skipfsck command line parameter: 

# cat /proc/cmdline
BOOT_IMAGE=(hd0,msdos1)/vmlinuz-4.18.0-32.el8.x86_64 root=/dev/mapper/rhel-root ro crashkernel=auto resume=/dev/mapper/rhel-swap rd.lvm.lv=rhel/root rd.lvm.lv=rhel/swap console=tty0 console=ttyS0,115200 rd.skipfsck

2. Capture console messages and you will notice system still performs fsck on root device every time in initramfs/Dracut environment: 

[  OK  ] Found device /dev/mapper/rhel-root.
[  OK  ] Reached target Initrd Root Device.
[  OK  ] Found device /dev/mapper/rhel-swap.
         Starting Resume from hibernation using device /dev/mapper/rhel-swap...
[  OK  ] Started Resume from hibernation using device /dev/mapper/rhel-swap.
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Local File Systems.
         Starting Create Volatile Files and Directories...
[  OK  ] Started Create Volatile Files and Directories.
[  OK  ] Reached target System Initialization.
[  OK  ] Reached target Basic System.
[  OK  ] Started dracut initqueue hook.
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems.
         Starting File System Check on /dev/mapper/rhel-root...   <------- Note
[  OK  ] Started File System Check on /dev/mapper/rhel-root.
         Mounting /sysroot...
[    3.488724] SGI XFS with ACLs, security attributes, no debug enabled
[    3.494684] XFS (dm-0): Mounting V5 Filesystem
[    3.510994] XFS (dm-0): Ending clean mount
[  OK  ] Mounted /sysroot.
[  OK  ] Reached target Initrd Root File System.
         Starting Reload Configuration from the Real Root...
[  OK  ] Started Reload Configuration from the Real Root.
[  OK  ] Reached target Initrd File Systems.

3. Without passing rd.skipfsk: 

[  OK  ] Started Create Volatile Files and Directories.
[  OK  ] Reached target System Initialization.
[  OK  ] Reached target Basic System.
[  OK  ] Started dracut initqueue hook.
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems.
         Starting File System Check on /dev/mapper/rhel-root... <<------- Note
[  OK  ] Started File System Check on /dev/mapper/rhel-root.
         Mounting /sysroot...
[    3.384020] SGI XFS with ACLs, security attributes, no debug enabled
[    3.390270] XFS (dm-0): Mounting V5 Filesystem
[    3.407362] XFS (dm-0): Ending clean mount
[  OK  ] Mounted /sysroot.
[  OK  ] Reached target Initrd Root File System.
         Starting Reload Configuration from the Real Root...
[  OK  ] Started Reload Configuration from the Real Root.
[  OK  ] Reached target Initrd File Systems.
[  OK  ] Reached target Initrd Default Target.
         Starting dracut pre-pivot and cleanup hook...
[  OK  ] Started dracut pre-pivot and cleanup hook.

Actual results:
Dracut/initramfs performs fsck on root device. 

Expected results:
Dracut/initramfs should not perform fsck on root device is rd.skipfsck has been passed. 

Additional info:

# cat /etc/fstab  | grep -i root
/dev/mapper/rhel-root   /                       xfs     defaults        0 0

I guess fstab does not come in the picture since the fsck is getting performed in initramfs environment.

Man page of dracut.cmdline:- 

rd.skipfsck
           skip fsck for rootfs and /usr. If you’re mounting /usr read-only and the init system performs fsck before remount, you might want to use this option to avoid duplication.

Comment 2 Alexey Kuklin 2020-02-04 12:01:47 UTC
Had the same issue for older server, 7.5

Could not bypass root filesystem check being stuck for XFS root filesystem.

Comment 3 David Tardon 2020-08-05 10:24:28 UTC
(In reply to Yogesh Babar from comment #0)
>          Starting File System Check on /dev/mapper/rhel-root...   <-------
> Note
> [  OK  ] Started File System Check on /dev/mapper/rhel-root.

This is systemd-fsck-root.service . Nothing to do with dracut.

> 
> Man page of dracut.cmdline:- 
> 
> rd.skipfsck
>            skip fsck for rootfs and /usr. If you’re mounting /usr read-only
> and the init system performs fsck before remount, you might want to use this
> option to avoid duplication.

Note that the description does not say that no fsck will be run. It just determines if dracut should run fsck itself or leave it to the init system.


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