Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

systemd: fsck EFI-SYSTEM and OEM; drop unnecessary OEM mount option #257

Merged
merged 2 commits into from
Nov 12, 2017
Merged

systemd: fsck EFI-SYSTEM and OEM; drop unnecessary OEM mount option #257

merged 2 commits into from
Nov 12, 2017

Conversation

bgilbert
Copy link
Contributor

Addresses coreos/bugs#2245.

This option is left over from the ChromeOS stateful partition. There's
little need to reduce the OEM filesystem's sync timer to 10 minutes,
since the filesystem is almost never written to, and when writes do
occur it may be surprising if they aren't committed for 10 minutes.
If the filesystem ever had the error flag set (OEM) or was uncleanly
unmounted (EFI-SYSTEM), we were never actually fixing it. Fixes kernel
message after unclean shutdown:

    FAT-fs (vda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

This pulls in systemd-fsck using Requires rather than Wants, since
that's what systemd-fstab-generator does. As a result, this change
will induce mount failures on any machines with ESP or OEM filesystems
which are irreparable but somehow still mountable. Those machines have
problems anyway, and it's better to detect them rather than continuing
in the face of arbitrary filesystem corruption.
Copy link
Contributor

@dm0- dm0- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bgilbert bgilbert merged commit 00977cf into coreos:master Nov 12, 2017
@bgilbert bgilbert deleted the mount branch November 12, 2017 22:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants