Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build quite simple image which installs FreeBSD-utilities FreeBSD-libbsm #25

Open
vgrebenschikov opened this issue Dec 4, 2024 · 0 comments

Comments

@vgrebenschikov
Copy link

Fails with:
pkg: Fail to rename /etc/.pkgtemp.hosts.3EYPk16x4Jpb -> /etc/hosts:Cross-device link

looks like mount /etc/hosts inside for build is wrong strategy

# cat Dockerfile
FROM docker.io/dougrabson/freebsd14-minimal:latest

RUN export IGNORE_OSVERSION=yes && pkg-static update && pkg upgrade -y && pkg install -y FreeBSD-utilities FreeBSD-libbsm

# buildah build
STEP 1/2: FROM docker.io/dougrabson/freebsd14-minimal:latest
STEP 2/2: RUN export IGNORE_OSVERSION=yes && pkg-static update && pkg upgrade -y && pkg install -y FreeBSD-utilities FreeBSD-libbsm
Updating FreeBSD repository catalogue...
[fdb56afff0b0] Fetching meta.conf: . done
[fdb56afff0b0] Fetching data.pkg: .......... done
Processing entries: .......... done
FreeBSD repository update completed. 35801 packages processed.
Updating FreeBSD-base repository catalogue...
[fdb56afff0b0] Fetching data.pkg: ... done
Processing entries: .......... done
FreeBSD-base repository update completed. 525 packages processed.
All repositories are up to date.
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
Updating FreeBSD-base repository catalogue...
FreeBSD-base repository is up to date.
All repositories are up to date.
Updating database digests format: . done
Checking for upgrades (19 candidates): .......... done
Processing candidates (19 candidates): .......... done
The following 18 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
	FreeBSD-caroot: 14.snap20240925214047 -> 14.snap20241204012004 [FreeBSD-base]
	FreeBSD-certctl: 14.snap20240925214047 -> 14.snap20241204012004 [FreeBSD-base]
	FreeBSD-clibs: 14.snap20240925214047 -> 14.snap20241204012004 [FreeBSD-base]
	FreeBSD-fetch: 14.snap20240925214047 -> 14.snap20241204012004 [FreeBSD-base]
	FreeBSD-kerberos-lib: 14.snap20240925214047 -> 14.snap20241204012004 [FreeBSD-base]
	FreeBSD-libarchive: 14.snap20240925214047 -> 14.snap20241204012004 [FreeBSD-base]
	FreeBSD-libbsm-lib32: 14.snap20240925214047 -> 14.snap20241204012004 [FreeBSD-base]
	FreeBSD-libbz2: 14.snap20240925214047 -> 14.snap20241204012004 [FreeBSD-base]
	FreeBSD-libexecinfo: 14.snap20240925214047 -> 14.snap20241204012004 [FreeBSD-base]
	FreeBSD-liblzma: 14.snap20240925214047 -> 14.snap20241204012004 [FreeBSD-base]
	FreeBSD-libsqlite3-lib32: 14.snap20240925214047 -> 14.snap20241204012004 [FreeBSD-base]
	FreeBSD-libucl: 14.snap20240925214047 -> 14.snap20241204012004 [FreeBSD-base]
	FreeBSD-mtree: 14.snap20240925214047 -> 14.snap20241204012004 [FreeBSD-base]
	FreeBSD-openssl-lib: 14.snap20240925214047 -> 14.snap20241204012004 [FreeBSD-base]
	FreeBSD-pkg-bootstrap: 14.snap20240925214047 -> 14.snap20241204012004 [FreeBSD-base]
	FreeBSD-rc: 14.snap20240925214047 -> 14.snap20241204012004 [FreeBSD-base]
	FreeBSD-runtime: 14.snap20240925214047 -> 14.snap20241204012004 [FreeBSD-base]
	FreeBSD-zoneinfo: 14.snap20240925214047 -> 14.snap20241204012004 [FreeBSD-base]

Number of packages to be upgraded: 18

8 MiB to be downloaded.
[fdb56afff0b0] [1/18] Fetching FreeBSD-libucl-14.snap20241204012004.pkg: .... done
[fdb56afff0b0] [2/18] Fetching FreeBSD-pkg-bootstrap-14.snap20241204012004.pkg: . done
[fdb56afff0b0] [3/18] Fetching FreeBSD-liblzma-14.snap20241204012004.pkg: ...... done
[fdb56afff0b0] [4/18] Fetching FreeBSD-libexecinfo-14.snap20241204012004.pkg: . done
[fdb56afff0b0] [5/18] Fetching FreeBSD-runtime-14.snap20241204012004.pkg: .......... done
[fdb56afff0b0] [6/18] Fetching FreeBSD-libarchive-14.snap20241204012004.pkg: ......... done
[fdb56afff0b0] [7/18] Fetching FreeBSD-caroot-14.snap20241204012004.pkg: .......... done
[fdb56afff0b0] [8/18] Fetching FreeBSD-fetch-14.snap20241204012004.pkg: .. done
[fdb56afff0b0] [9/18] Fetching FreeBSD-rc-14.snap20241204012004.pkg: ..... done
[fdb56afff0b0] [10/18] Fetching FreeBSD-clibs-14.snap20241204012004.pkg: .......... done
[fdb56afff0b0] [11/18] Fetching FreeBSD-kerberos-lib-14.snap20241204012004.pkg: .......... done
[fdb56afff0b0] [12/18] Fetching FreeBSD-openssl-lib-14.snap20241204012004.pkg: .......... done
[fdb56afff0b0] [13/18] Fetching FreeBSD-certctl-14.snap20241204012004.pkg: . done
[fdb56afff0b0] [14/18] Fetching FreeBSD-zoneinfo-14.snap20241204012004.pkg: .... done
[fdb56afff0b0] [15/18] Fetching FreeBSD-libbz2-14.snap20241204012004.pkg: .. done
[fdb56afff0b0] [16/18] Fetching FreeBSD-libbsm-lib32-14.snap20241204012004.pkg: .. done
[fdb56afff0b0] [17/18] Fetching FreeBSD-libsqlite3-lib32-14.snap20241204012004.pkg: .......... done
[fdb56afff0b0] [18/18] Fetching FreeBSD-mtree-14.snap20241204012004.pkg: .. done
Checking integrity... done (0 conflicting)
[fdb56afff0b0] [1/18] Upgrading FreeBSD-libucl from 14.snap20240925214047 to 14.snap20241204012004...
[fdb56afff0b0] [1/18] Extracting FreeBSD-libucl-14.snap20241204012004: . done
[fdb56afff0b0] [2/18] Upgrading FreeBSD-pkg-bootstrap from 14.snap20240925214047 to 14.snap20241204012004...
[fdb56afff0b0] [2/18] Extracting FreeBSD-pkg-bootstrap-14.snap20241204012004: .... done
[fdb56afff0b0] [3/18] Upgrading FreeBSD-liblzma from 14.snap20240925214047 to 14.snap20241204012004...
[fdb56afff0b0] [3/18] Extracting FreeBSD-liblzma-14.snap20241204012004: . done
[fdb56afff0b0] [4/18] Upgrading FreeBSD-libexecinfo from 14.snap20240925214047 to 14.snap20241204012004...
[fdb56afff0b0] [4/18] Extracting FreeBSD-libexecinfo-14.snap20241204012004: . done
[fdb56afff0b0] [5/18] Upgrading FreeBSD-runtime from 14.snap20240925214047 to 14.snap20241204012004...
[fdb56afff0b0] [5/18] Extracting FreeBSD-runtime-14.snap20241204012004: ......... done
pkg: Fail to rename /etc/.pkgtemp.hosts.3EYPk16x4Jpb -> /etc/hosts:Cross-device link
Error: building at STEP "RUN export IGNORE_OSVERSION=yes && pkg-static update && pkg upgrade -y && pkg install -y FreeBSD-utilities FreeBSD-libbsm": while running runtime: exit status 3
#

versions:

# pkg info buildah podman podman-suite containers\*
buildah-1.37.5
podman-5.2.5
podman-suite-20241023
containers-common-0.60.4

# uname -r
14.1-RELEASE-p5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant