moby/pkg/chrootarchive
Artem Khramov 8b843732b3 pkg/chrootarchive: fix FreeBSD build
For unix targets, `goInChroot()` is only implemented for `Linux`,
hence FreeBSD build fails.

This change

- Adds FreeBSD-specific chrooted tar/untar implementation
- Fixes statUnix() to accomodate to FreeBSD devminor/devmajor
- quirk. See also: https://github.com/containerd/containerd/pull/5991

Signed-off-by: Artem Khramov <akhramov@pm.me>
Co-authored-by: Cory Snider <corhere@gmail.com>
2023-07-18 18:42:08 +02:00
..
archive.go Disable chrootarchive.init() on Windows 2023-01-18 16:34:13 +02:00
archive_freebsd.go pkg/chrootarchive: fix FreeBSD build 2023-07-18 18:42:08 +02:00
archive_freebsd_test.go pkg/chrootarchive: fix FreeBSD build 2023-07-18 18:42:08 +02:00
archive_linux.go pkg/chrootarchive: fix FreeBSD build 2023-07-18 18:42:08 +02:00
archive_test.go [chore] clean up reexec.Init() calls 2023-05-09 19:13:17 -04:00
archive_unix.go pkg/chrootarchive: fix FreeBSD build 2023-07-18 18:42:08 +02:00
archive_unix_test.go remove pre-go1.17 build-tags 2023-05-19 20:38:51 +02:00
archive_windows.go pkg/chrootarchive: format code with gofumpt 2023-06-29 00:33:03 +02:00
chroot_linux.go Add reusable chroot and unshare utilities 2022-10-26 12:06:31 -04:00
diff.go Add canonical import comment 2018-02-05 16:51:57 -05:00
diff_unix.go pkg/chrootarchive: fix FreeBSD build 2023-07-18 18:42:08 +02:00
diff_windows.go pkg/archive: create whiteout temp dir under dest 2022-10-26 12:04:37 -04:00