Hello Markus, Thanks for your feedback on the pkgutils symlink behaviour. I agree that the /var/run issue can be addressed on its own, without having to patch pkgutils for all subsequent instances when a port update converts a directory to a symlink.
For the /var/run issue I am unsure if this case should have been handled by pkgutils: At least on my system there have been some leftovers which had been owned by old unrelated port versions or even by no port.
Avoidance of data loss was the motivation for the following patch to iso/bin/setup-helper. In #crux-devel last week it was suggested that we add a test such as [ -d /var/run ] into rc.fix, but I think a one-time fix restricted to the ISO boot environment is cleaner than a function that runs every time a 3.7 system starts up. diff --git a/iso/bin/setup-helper b/iso/bin/setup-helper index b28789c..f202389 100755 --- a/iso/bin/setup-helper +++ b/iso/bin/setup-helper @@ -108,6 +108,14 @@ inject_packages jsoncpp libuv lzlib rhash # new deps of core/iptables inject_packages nftables libedit jansson libnftnl libmnl +# new filesystem layout +if [ $(find "$ROOT/var/run" 2>/dev/null | wc -l) -gt 1 ]; then + mv "$ROOT/var/run" "$ROOT/var/run36" + echo "Nonempty directory /var/run has been backed up to /var/run36." + echo "Inspect after reboot and feel free to delete." +else + rm -rf "$ROOT/var/run" +fi if [ `is_installed xfsprogs` ]; then inject_packages inih liburcu Best Regards, John