[Bug 284355] pkg-static: Fail to rename /var/* -> /var/db:Not a directory

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 26 Jan 2025 08:54:50 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=284355

Tomasz Sowa <tomasz.sowa@ttmath.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tomasz.sowa@ttmath.org

--- Comment #1 from Tomasz Sowa <tomasz.sowa@ttmath.org> ---
I have got a similar issue:

# pkg upgrade -y
Checking for upgrades (52 candidates): 100%
Processing candidates (52 candidates): 100%
Checking integrity... done (0 conflicting)
The following 48 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        [...]

Installed packages to be UPGRADED:
        [...]

Number of packages to be installed: 42
Number of packages to be upgraded: 6

The process will require 902 MiB more space.
[1/48] Installing upower-1.90.7...
[1/48] Extracting upower-1.90.7: 100%
pkg: Fail to rename /.pkgtemp.var.RreUBRNWz3VJ -> /var:Not a directory

There is a symlink from /var to /disk2Tb/var:
/home/tomek$ ls -l /var
lrwxr-xr-x  1 root wheel 12 25 sty 11:54 /var -> /disk2Tb/var

Temporarily I have used mount_nullfs:
# rm /var && mkdir /var
# mount_nullfs /disk2Tb/var /var
after that the upgrade process was successful.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.