Page MenuHomeFreeBSD

Fix circular dependency created after r287197 between ldconfig and mountcritremote
ClosedPublic

Authored by ngie on May 29 2016, 2:43 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jul 28, 2:13 AM
Unknown Object (File)
Sun, Jul 27, 3:15 AM
Unknown Object (File)
Thu, Jul 24, 10:32 PM
Unknown Object (File)
Tue, Jul 22, 9:40 PM
Unknown Object (File)
Sun, Jul 13, 2:00 PM
Unknown Object (File)
Mon, Jul 7, 5:12 AM
Unknown Object (File)
Fri, Jul 4, 8:27 AM
Unknown Object (File)
Jul 2 2025, 3:18 PM

Details

Reviewers
jilles
Summary

Fix circular dependency created after r287197 between ldconfig and mountcritremote

ldconfig is already required by mountcritremote indirectly, as noted by rcorder:

rcorder: Circular dependency on provision mountcritremote' in file ldconfig'.

Having mountcritremote REQUIRE ldconfig breaks dependency ordering.

Making the ldconfig hints be conditionally regenerated from mountcritremote when
remote filesystems are mounted is done after this change, similar to cleanvar
being conditionally called after the change.

PR: 202726
Sponsored by: EMC / Isilon Storage Division

Test Plan
  • Booted systems multiple times successfully, with NFS mounted late, and not.

Before change:

% rcorder /etc/rc.d/* | awk '/ldconfig|mount.*/ { print NR, $NF }'
rcorder: Circular dependency on provision mountcritremote' in file /etc/rc.d/ldconfig'.
14 /etc/rc.d/mountcritlocal
34 /etc/rc.d/ldconfig
54 /etc/rc.d/mountcritremote
85 /etc/rc.d/mountd
97 /etc/rc.d/mountlate

After change:

% rcorder /etc/rc.d/* | awk '/ldconfig|mount.*/ { print NR, $NF }'
14 /etc/rc.d/mountcritlocal
34 /etc/rc.d/ldconfig
54 /etc/rc.d/mountcritremote
85 /etc/rc.d/mountd
97 /etc/rc.d/mountlate

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4011
Build 4054: arc lint + arc unit

Event Timeline

ngie retitled this revision from to Fix circular dependency created after r287197 between ldconfig and mountcritremote.
ngie updated this object.
ngie edited the test plan for this revision. (Show Details)
ngie added subscribers: cem, glebius, jilles, trasz.
jilles added a reviewer: jilles.

Looks good to me.

On another note, it would be nice to check for circular dependencies during the build; this is made harder by rcorder being written in C.

This revision is now accepted and ready to land.May 29 2016, 7:16 PM