Skip to content

Commit

Permalink
unit: don't add Requires for tmp.mount
Browse files Browse the repository at this point in the history
rhel-only: policy

Related: RHEL-40924
  • Loading branch information
lnykryn authored and github-actions[bot] committed Jul 19, 2024
1 parent 352f8ad commit e794e57
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/mount.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ static int mount_add_mount_dependencies(Mount *m) {
if (r < 0)
return r;

if (UNIT(m)->fragment_path) {
if (UNIT(m)->fragment_path && !streq(UNIT(m)->id, "tmp.mount")) {
/* If we have fragment configuration, then make this dependency required/wanted */
r = unit_add_dependency(
other,
Expand Down
2 changes: 1 addition & 1 deletion src/core/unit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1544,7 +1544,7 @@ static int unit_add_mount_dependencies(Unit *u) {
return r;
changed = changed || r > 0;

if (m->fragment_path) {
if (m->fragment_path && !streq(m->id, "tmp.mount")) {
r = unit_add_dependency(
u,
unit_mount_dependency_type_to_dependency_type(t),
Expand Down

0 comments on commit e794e57

Please sign in to comment.