Fernando Apesteguía df90aeac24 Fix build with -DNO_ROOT
The inclusion of 0a0f7486413c broke the build with the -DNO_ROOT option.
Specifically, that commit adds some relative paths (with `..`) to METALOG
that make other tools using that log, fail afterwards (tar, makefs...).

It's been argued[1] if this is really something mtree(8) should handle more
graciously. In the meantime, fix the breakage but changing the order in which
the links are created: first in the parent directory, then in the
architecture-specific one.

We keep the architecture-specific directories an the links to the parent
directories. This is something that we might want to change in the future.

This commit is based on a concept patch by avg@.

[1] https://lists.freebsd.org/archives/dev-commits-src-all/2021-November/index.html

Reported by: bapt@, emaste@
Approved by: avg@
Fixes: 0a0f7486413c
Differential Revision: https://reviews.freebsd.org/D33126
2021-11-26 12:51:08 +01:00
..
2020-02-19 12:49:49 +00:00
2021-11-26 12:51:08 +01:00
2018-08-11 13:23:09 +00:00
2021-05-07 22:13:31 +02:00
2021-11-22 17:13:09 +01:00
2021-09-29 21:18:17 -06:00
2020-06-22 07:46:24 +00:00
2020-12-19 13:17:25 +00:00
2021-07-21 10:16:11 +01:00
2021-05-03 09:55:40 -06:00
2019-12-04 16:56:11 +00:00
2020-10-09 14:03:45 +00:00
2021-11-02 14:54:45 -04:00
2021-04-10 11:16:02 +02:00
2021-10-06 21:56:20 -08:00
2018-05-28 09:41:44 +00:00
2021-11-20 08:58:36 +01:00
2018-05-19 20:57:22 +00:00
2020-08-17 10:25:02 +00:00
2020-10-09 14:03:45 +00:00
2020-04-06 23:16:05 +00:00
2020-04-06 23:16:05 +00:00
2020-04-06 23:16:05 +00:00
2020-06-24 02:08:08 +00:00
2021-07-21 10:14:26 +01:00
2020-08-21 09:48:00 +00:00
2019-04-22 17:52:46 +00:00
2020-03-23 14:44:23 +00:00
2019-12-11 17:37:53 +00:00
2021-04-02 07:01:20 +00:00
2020-09-11 13:28:37 +00:00
2020-04-06 23:16:05 +00:00
2021-11-26 12:51:08 +01:00
2021-04-04 00:50:28 +03:00
2021-04-04 00:50:28 +03:00
2018-07-24 20:20:17 +00:00