Bug 781811

Summary: missing btrfs.fsck causes shutdown/reboot to be delayed
Product: [Fedora] Fedora Reporter: Alon Levy <alevy>
Component: systemdAssignee: systemd-maint
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: dblechte, jbacik, johannbg, metherid, notting, plautrba, systemd-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-16 11:06: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:

Description Alon Levy 2012-01-15 12:14:33 UTC
Description of problem:
I have my root and home filesystems using btrfs.

when rebooting systemd launches fsck on all filesystems. fsck in turn launches the correct tool per filesystem. But there is no btrfs.fsck. When systemd gets the error code (2) from fsck it fails the reboot process, effectively making it impossible to reboot until some timeout (didn't figure out what it is exactly) is passed but the timeout is considerable.

Version-Release number of selected component (if applicable):
systemd-38-3.fc17.x86_64

How reproducible:
100%

Steps to Reproduce:
1. boot
2. reboot
  
Actual results:
on console systemd says that it can't find btrfs.fsck and stops the reboot process. (I already saw it two times, just forgot to copy the exact error message). This is actually the error message issued by fsck, which tries to launch a non existing file btrfs.fsck

Expected results:
systemd should ignore this error.

Additional info:

Comment 1 Kay Sievers 2012-01-15 21:38:53 UTC
I guess btrfs is not supposed to be checked by userspace before mounting it.
You should probably just set "0 0" in /etc/fstab?

Comment 2 Alon Levy 2012-01-16 11:06:39 UTC
You're right. Thanks for the help, sorry for the noise,

Alon
(closing)