diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-30 22:35:58 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-30 22:35:58 +0200 |
commit | 8abf5291564e771bfc62c74a55ab3f3b56f45257 (patch) | |
tree | ecf94296f296838f99e1b50c7636e3f52caf02c8 /src/gpt-auto-generator/gpt-auto-generator.c | |
parent | 32c6d387bf8bef65edab442d521c2f93bbf2cd2d (diff) | |
parent | 0b6b6787e3f0ae8906ce0212bd629edbe931b73d (diff) |
Merge pull request #1425 from kaysievers/wip
gpt-auto-generator: check fstab for /boot entries
Diffstat (limited to 'src/gpt-auto-generator/gpt-auto-generator.c')
-rw-r--r-- | src/gpt-auto-generator/gpt-auto-generator.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c index bb821797f1..dbb6648daa 100644 --- a/src/gpt-auto-generator/gpt-auto-generator.c +++ b/src/gpt-auto-generator/gpt-auto-generator.c @@ -38,6 +38,7 @@ #include "gpt.h" #include "fileio.h" #include "efivars.h" +#include "fstab-util.h" #include "blkid-util.h" #include "btrfs-util.h" @@ -465,6 +466,12 @@ static int add_boot(const char *what) { return 0; } + /* We create an .automount which is not overridden by the .mount from the fstab generator. */ + if (fstab_is_mount_point("/boot")) { + log_debug("/boot specified in fstab, ignoring."); + return 0; + } + if (path_is_busy("/boot")) { log_debug("/boot already populated, ignoring."); return 0; |