diff options
author | Theodore Ts'o <tytso@mit.edu> | 2007-09-22 20:42:04 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2007-09-22 20:43:11 -0400 |
commit | 60702c267d83bc75ca22e8efb5eff0e1a8821800 (patch) | |
tree | e76ded9dd8a78fae134b987d96c30618097533fc /e2fsck/e2fsck.conf.5.in | |
parent | ed773a263829493e4e4bf612dbec2380cf09349f (diff) | |
download | e2fsprogs-60702c267d83bc75ca22e8efb5eff0e1a8821800.tar.gz |
Work around lame Ubuntu init scripts / installer bugs
The Ubuntu init scripts don't properly set the system time correctly
from hardware clock if the hardware clock is configured to tick local
time instead of GMT time.
Work around this as best as we can by providing an option in
/etc/e2fsck.conf which can be set on Ubuntu systems:
[options]
buggy_init_scripts = 1
Addresses-Debian-Bug: #441093
Addresses-Ubuntu-Bug: #131201
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'e2fsck/e2fsck.conf.5.in')
-rw-r--r-- | e2fsck/e2fsck.conf.5.in | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/e2fsck/e2fsck.conf.5.in b/e2fsck/e2fsck.conf.5.in index 8c580d23..9d121716 100644 --- a/e2fsck/e2fsck.conf.5.in +++ b/e2fsck/e2fsck.conf.5.in @@ -86,6 +86,20 @@ If this relation is set to a boolean value of true, then if the user interrupts e2fsck using ^C, and the filesystem is not explicitly flagged as containing errors, e2fsck will exit with an exit status of 0 instead of 32. This setting defaults to false. +.TP +.I buggy_init_scripts +Some buggy distributions (such as Ubuntu) have init scripts and/or +installers which fail to correctly set the system clock before running +e2fsck and/or formatting the filesystem initially. Normally this +happens because the hardware clock is ticking localtime, instead of the +more proper and less error-prone UTC time. So while the kernel is +booting, the system time (which in Linux systems always ticks in UTC +time) is set from the hardware clock, but since the hardware clock is +ticking localtime, the system time is incorrect. Unfortunately, some +buggy distributions do not correct this before running e2fsck. If this +option is set to a boolean value of true, we attempt to work around this +situation by allowing the superblock last write time, last mount time, +and last check time to be in the future by up to 24 hours. .TP .I defer_check_on_battery This boolean relation controls whether or not the interval between |