root@PkgBase-current15:~ # env ABI=FreeBSD:15:amd64 pkg upgrade -r FreeBSD-base FreeBSD-utilities Updating FreeBSD-base repository catalogue... FreeBSD-base repository is up to date. All repositories are up to date. Updating database digests format: 100% The following 15 package(s) will be affected (of 0 checked): New packages to be INSTALLED: FreeBSD-openssl-lib-lib32: 15.snap20230921172812 [FreeBSD-base] Installed packages to be UPGRADED: FreeBSD-clibs: 14.a4.20230904142027 -> 15.snap20230921172812 [FreeBSD-base] FreeBSD-libarchive-lib32: 14.a3.20230829203839 -> 15.snap20230921172812 [FreeBSD-base] FreeBSD-libbsm-lib32: 14.a3.20230829203839 -> 15.snap20230921172812 [FreeBSD-base] FreeBSD-libbz2-lib32: 14.a3.20230829203839 -> 15.snap20230921172812 [FreeBSD-base] FreeBSD-libcasper-lib32: 14.a3.20230829203839 -> 15.snap20230921172812 [FreeBSD-base] FreeBSD-libldns: 14.a3.20230829203839 -> 15.snap20230921172812 [FreeBSD-base] FreeBSD-liblzma: 14.a4.20230904142027 -> 15.snap20230921172812 [FreeBSD-base] FreeBSD-libmagic: 14.a3.20230829203839 -> 15.snap20230921172812 [FreeBSD-base] FreeBSD-libucl-lib32: 14.a3.20230829203839 -> 15.snap20230921172812 [FreeBSD-base] FreeBSD-runtime-lib32: 14.a4.20230904142027 -> 15.snap20230921172812 [FreeBSD-base] FreeBSD-tcpd-lib32: 14.a3.20230829203839 -> 15.snap20230921172812 [FreeBSD-base] FreeBSD-ufs-lib32: 14.a3.20230829203839 -> 15.snap20230921172812 [FreeBSD-base] FreeBSD-utilities: 14.a4.20230904142027 -> 15.snap20230921172812 [FreeBSD-base] FreeBSD-zfs-lib32: 14.a4.20230904142027 -> 15.snap20230921172812 [FreeBSD-base] Number of packages to be installed: 1 Number of packages to be upgraded: 14 The operation will free 4 MiB. 18 MiB to be downloaded. Proceed with this action? [y/N]: y pkg: open(poudriere/data/images/current-amd64-repo/FreeBSD:15:amd64/latest/FreeBSD-libmagic-15.snap20230921172812.pkg): Too many levels of symbolic links root@PkgBase-current15:~ #
Weirdly enough, it works if I `cd /`, and repeat the operation. Note that this is a bectl jail, and I have the repository nullfs mounted from the outside.
(In reply to Mina Galić from comment #1) So what was the cwd when you ran the command the first time? Is "poudriere/data/images/current-amd64-repo/FreeBSD:15:amd64/latest/FreeBSD-libmagic-15.snap20230921172812.pkg" indeed an invalid path due to a cycle?