mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
gpt-auto: ignore fstab_has_node failure
After 8a1326581d,
we always check whether there're mounts under
/boot/ or /efi/ first. Let's relax the check
for fstab_has_node hence, since on initrd-less
systems it might produce wrong results.
This commit is contained in:
@@ -533,8 +533,8 @@ static int add_partition_esp(DissectedPartition *p, bool has_xbootldr) {
|
||||
/* Check if there's an existing fstab entry for ESP. If so, we just skip the gpt-auto logic. */
|
||||
r = fstab_has_node(p->node);
|
||||
if (r < 0)
|
||||
return log_error_errno(r,
|
||||
"Failed to check if fstab entry for device '%s' exists: %m", p->node);
|
||||
log_warning_errno(r, "Failed to check if fstab entry for device '%s' exists, ignoring: %m",
|
||||
p->node);
|
||||
if (r > 0)
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user