From: Kay Sievers Date: Tue, 21 Apr 2015 22:39:36 +0000 (+0200) Subject: efi-boot-generator: set automount expire for /boot X-Git-Tag: v220~356 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=163ab2961268232e1cb49e990a8ccefe24b7649f;p=thirdparty%2Fsystemd.git 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! --- diff --git a/src/efi-boot-generator/efi-boot-generator.c b/src/efi-boot-generator/efi-boot-generator.c index 94d733261a6..128df85c269 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)) {