mirror of
https://github.com/systemd/systemd
synced 2024-10-15 20:45:09 +00:00
Merge pull request #31711 from YHNdnzj/gpt-auto-has-node
gpt-auto: ignore fstab_has_node failure
This commit is contained in:
commit
c7edd9f13d
|
@ -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;
|
||||
|
||||
|
|
|
@ -164,8 +164,6 @@ int fstab_is_mount_point_full(const char *where, const char *path) {
|
|||
if (r > 0 || (r < 0 && !ERRNO_IS_DEVICE_ABSENT(r)))
|
||||
return r;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
int fstab_filter_options(
|
||||
|
|
Loading…
Reference in a new issue