HomeFreeBSD

nanobsd: Use the real path for NANO_PACKAGE_DIR

Description

nanobsd: Use the real path for NANO_PACKAGE_DIR

As users may have the Pkg directory as a symbolic link to the NanoBSD
"package dump directory". In commit 9af130ae8c03, cust_pkgng() was
greatly improved, however as a side effect of using a nullfs mount, the
directories and files must not be symlinks.

Fix it by using NANO_PACKAGE_DIR realpath().

PR: 269884
Reviewed by: imp
Approved by: emaste (mentor)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D47532

(cherry picked from commit 4223c668e4b9ba71e2c6cfabbd66795729b7ff8b)

Details

Provenance
jlduranAuthored on Nov 12 2024, 8:17 PM
Reviewer
imp
Differential Revision
D47532: nanobsd: Use the real path for NANO_PACKAGE_DIR
Parents
rG4b26b3d2ac9b: nanobsd: Update fill_pkg.sh
Branches
Unknown
Tags
Unknown