zquickinit
zquickinit copied to clipboard
zquickinit.sh builder error
Not sure if I'm missing something obvious, but ./zquickinit.sh builder isn't working on my Ubuntu 24.04.2 LTS system:
$ sudo apt install -y git podman-docker yq
$ git clone https://github.com/midzelis/zquickinit.git
$ cd zquickinit
$ ./zquickinit.sh builder
Creating ZQuickinit OCI build image...
usage: yq [-h] [--yaml-output] [--yaml-roundtrip]
[--yaml-output-grammar-version {1.1,1.2}] [--width WIDTH]
[--indentless-lists] [--in-place] [--version]
[jq_filter] [files ...]
yq: error: argument files: can't open '. as $item ireduce ({}; . *+ $item) | (... | select(type == "!!seq")) |= unique | .xbps-packages[] | .. style=""': [Errno 2] No such file or directory: '. as $item ireduce ({}; . *+ $item) | (... | select(type == "!!seq")) |= unique | .xbps-packages[] | .. style=""'
ZQUICKINIT_COMMIT_HASH: 5c1f26e5ef3f3645136213d5e5d8b7ca2d6040b0
ZBM_TAG:
ZBM_COMMIT_HASH: db78c980f40937f3b4de8d85e7430f6553a39972
Building with Packages:
Build command: docker build . -t ghcr.io/midzelis/zquickinit --build-arg KERNELS=linux6.6 --build-arg PACKAGES= --build-arg ZBM_COMMIT_HASH=db78c980f40937f3b4de8d85e7430f6553a39972 --build-arg ZQUICKINIT_COMMIT_HASH=5c1f26e5ef3f3645136213d5e5d8b7ca2d6040b0 --progress=plain
STEP 1/63: FROM ghcr.io/void-linux/void-glibc-full
Trying to pull ghcr.io/void-linux/void-glibc-full:latest...
Pulling image //ghcr.io/void-linux/void-glibc-full:latest inside systemd: setting pull timeout to 5m0s
Getting image source signatures
Copying blob 1bbd70a8ec47 done |
Copying blob a215dd2e3344 done |
Copying config 40f9f91e9d done |
Writing manifest to image destination
STEP 2/63: LABEL org.opencontainers.image.source=https://github.com/midzelis/zquickinit
--> 81b3024833c2
STEP 3/63: ARG XBPS_REPOS="https://repo-fastly.voidlinux.org/current https://repo-fastly.voidlinux.org/current/nonfree"
--> ca2584583800
STEP 4/63: ARG KERNELS="linux5.10 linux5.15 linux6.1 linux6.2 linux6.6 linux6.8"
--> 9d05a42e24a7
STEP 5/63: RUN --mount=type=cache,target=/var/cache/xbps <<-EOF
--> 42b0242c272d
STEP 6/63: [ -n "${KERNELS}" ] || { echo "ARG KERNELS must contain a value"; exit 1; }
ERRO[0005] +(UNHANDLED LOGLEVEL) &imagebuilder.Step{Env:[]string{"KERNELS=linux6.6", "XBPS_REPOS=https://repo-fastly.voidlinux.org/current https://repo-fastly.voidlinux.org/current/nonfree", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"}, Command:"[", Args:[]string{""}, Flags:[]string{}, Attrs:map[string]bool(nil), Message:"[ ", Original:"[ -n \"${KERNELS}\" ] || { echo \"ARG KERNELS must contain a value\"; exit 1; }"}
Error: building at STEP "[ ": Build error: Unknown instruction: "[" &imagebuilder.Step{Env:[]string{"KERNELS=linux6.6", "XBPS_REPOS=https://repo-fastly.voidlinux.org/current https://repo-fastly.voidlinux.org/current/nonfree", "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"}, Command:"[", Args:[]string{""}, Flags:[]string{}, Attrs:map[string]bool(nil), Message:"[ ", Original:"[ -n \"${KERNELS}\" ] || { echo \"ARG KERNELS must contain a value\"; exit 1; }"}
Also got an error using Void Linux as root:
# xbps-install -Sy git podman yq
# git clone https://github.com/midzelis/zquickinit.git
# cd zquickinit
# ./zquickinit.sh builder
...
118 downloaded, 118 installed, 0 updated, 118 configured, 0 removed.
12 packages will be removed:
dkms-3.0.13_1
pahole-1.30_1
make-4.4.1_1
bc-1.08.1_1
gcc-14.2.1+20250405_2
glibc-devel-2.41_1
kernel-libc-headers-6.14_1
libatomic-devel-14.2.1+20250405_2
libatomic-14.2.1+20250405_2
libstdc++-devel-14.2.1+20250405_2
libgcc-devel-14.2.1+20250405_2
linux6.6-headers-6.6.91_1
Size freed on disk: 340MB
Space available on disk: 4097MB
Removing `dkms-3.0.13_1' ...
Removed `dkms-3.0.13_1' successfully.
Removing `pahole-1.30_1' ...
Removed `pahole-1.30_1' successfully.
Removing `make-4.4.1_1' ...
Removed `make-4.4.1_1' successfully.
Removing `bc-1.08.1_1' ...
Removing 'bc' alternatives group symlink: bc
Removing 'bc' alternatives group symlink: bc.1
bc-1.08.1_1: unregistered 'bc' alternatives group
Removing 'dc' alternatives group symlink: dc
Removing 'dc' alternatives group symlink: dc.1
bc-1.08.1_1: unregistered 'dc' alternatives group
Removed `bc-1.08.1_1' successfully.
Removing `gcc-14.2.1+20250405_2' ...
Removed `gcc-14.2.1+20250405_2' successfully.
Removing `glibc-devel-2.41_1' ...
Removed `glibc-devel-2.41_1' successfully.
Removing `kernel-libc-headers-6.14_1' ...
Removed `kernel-libc-headers-6.14_1' successfully.
Removing `libatomic-devel-14.2.1+20250405_2' ...
Removed `libatomic-devel-14.2.1+20250405_2' successfully.
Removing `libatomic-14.2.1+20250405_2' ...
Removed `libatomic-14.2.1+20250405_2' successfully.
Removing `libstdc++-devel-14.2.1+20250405_2' ...
Removed `libstdc++-devel-14.2.1+20250405_2' successfully.
Removing `libgcc-devel-14.2.1+20250405_2' ...
Removed `libgcc-devel-14.2.1+20250405_2' successfully.
Removing `linux6.6-headers-6.6.91_1' ...
Removed `linux6.6-headers-6.6.91_1' successfully.
0 downloaded, 0 installed, 0 updated, 0 configured, 12 removed.
--> c04c3efce141
STEP 6/20: RUN <<-EOF (echo "en_US.UTF-8 UTF-8" > /etc/default/libc-locales...)
Generating GNU libc locales...
en_US.UTF-8... done.
glibc-locales: configuring ...
glibc-locales: configured successfully.
--> 2bc8a7b067d5
STEP 7/20: ARG PACKAGES=
--> 7cd74e3b8331
STEP 8/20: RUN --mount=type=cache,target=/var/cache/xbps <<-EOF (# Install ZFSBootMenu dependencies and components necessary to build images...)
[*] Updating repository `https://repo-fastly.voidlinux.org/current/x86_64-repodata' ...
[*] Updating repository `https://repo-fastly.voidlinux.org/current/nonfree/x86_64-repodata' ...
[*] Updating repository `https://repo-default.voidlinux.org/current/x86_64-repodata' ...
Usage: xbps-install [OPTIONS] [PKGNAME...]
OPTIONS
-A --automatic Set automatic installation mode
-C --config <dir> Path to confdir (xbps.d)
-c --cachedir <dir> Path to cachedir
-d --debug Debug mode shown to stderr
-D --download-only Download packages and check integrity, nothing else
-f --force Force package re-installation
If specified twice, all files will be overwritten.
-h --help Print help usage
-i --ignore-conf-repos Ignore repositories defined in xbps.d
-I --ignore-file-conflicts Ignore detected file conflicts
-U --unpack-only Unpack packages in transaction, do not configure them
-M --memory-sync Remote repository data is fetched and stored
in memory, ignoring on-disk repodata archives
-n --dry-run Dry-run mode
-R,--repository <url> Add repository to the top of the list
This option can be specified multiple times
-r --rootdir <dir> Full path to rootdir
--reproducible Enable reproducible mode in pkgdb
-S --sync Sync remote repository index
-u --update Update target package(s)
-v --verbose Verbose messages
-y --yes Assume yes to all questions
-V --version Show XBPS version
Error: building at STEP "RUN --mount=type=cache,target=/var/cache/xbps <<-EOF": while running runtime: exit status 1