Skip to content

zquickinit.sh builder error #16

Description

@ben-auo

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; }"}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions