diff options
author | Kay Sievers <kay@vrfy.org> | 2015-04-22 00:39:36 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2015-04-22 00:57:52 +0200 |
commit | 163ab2961268232e1cb49e990a8ccefe24b7649f (patch) | |
tree | 31a676d858bd9bdbd400a2d616cadf207c97f1b5 /src/efi-boot-generator/efi-boot-generator.c | |
parent | 8d04b9af96f6cef317d52111b1eac9e42438d976 (diff) |
efi-boot-generator: set automount expire for /boot
This should make the Linux vfat handling less fragile, by unmounting
the idle mount and causing to sync the entire file system to disk.
On my machines, The FAT file system at /boot regularly gets corrupted
with unclean shutdowns, rendering the machines unbootable. Either the
VFS write-back behaviour or the vfat driver itself is just not reliable
enough to be/stay mounted at every bootup.
Because of that, the automount expiry was on top of my personal
wish list. Thanks a lot Michael!
Diffstat (limited to 'src/efi-boot-generator/efi-boot-generator.c')
-rw-r--r-- | src/efi-boot-generator/efi-boot-generator.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/efi-boot-generator/efi-boot-generator.c b/src/efi-boot-generator/efi-boot-generator.c index 94d733261a..128df85c26 100644 --- a/src/efi-boot-generator/efi-boot-generator.c +++ b/src/efi-boot-generator/efi-boot-generator.c @@ -141,7 +141,8 @@ int main(int argc, char *argv[]) { "[Unit]\n" "Description=EFI System Partition Automount\n\n" "[Automount]\n" - "Where=/boot\n", f); + "Where=/boot\n" + "TimeoutIdleSec=120\n", f); fflush(f); if (ferror(f)) { |