Vyos 1.2 crux docker make iso fails

I’ve used these commands to try and build a crux iso but the build is failing

Commands:
git clone -b crux --single-branch GitHub - vyos/vyos-build: VyOS image build scripts

cd vyos-build/

sudo docker build -t vyos/vyos-build:crux docker

sudo docker run --rm -it --privileged -v $(pwd):/vyos -w /vyos vyos/vyos-build:crux bash

./configure --architecture amd64 --build-by “your@email.tld” --build-type release --version 1.2.5-20200418

sudo make iso

The output seems to fail here:

Preparing to unpack …/acpid_1%3a2.0.23-2_amd64.deb …
Unpacking acpid (1:2.0.23-2) …
Selecting previously unselected package acpi-support-base.
Preparing to unpack …/acpi-support-base_0.142-6_all.deb …
Unpacking acpi-support-base (0.142-6) …
Processing triggers for systemd (215-17+deb8u13) …
Setting up acpid (1:2.0.23-2) …
All runlevel operations denied by policy
invoke-rc.d: policy-rc.d denied execution of start.
Setting up acpi-support-base (0.142-6) …
All runlevel operations denied by policy
invoke-rc.d: policy-rc.d denied execution of restart.
Processing triggers for systemd (215-17+deb8u13) …
I: Create initramfs if it does not exist.
/root/17-gen_initramfs.chroot: line 8: [: /boot/initrd.img-4.19.106-amd64-vyos: binary operator expected
Extra argument ‘4.19.114-amd64-vyos’

Usage: /usr/sbin/update-initramfs.orig.initramfs-tools [OPTION]…

Options:
-k version Specify kernel version or ‘all’
-c Create a new initramfs
-u Update an existing initramfs
-d Remove an existing initramfs
-t Take over a custom initramfs with this one
-b directory Set alternate boot directory
-v Be verbose
-h This message

E: config/hooks/live/17-gen_initramfs.chroot failed (exit non-zero). You should check for errors.
P: Begin unmounting filesystems…
P: Saving caches…
Reading package lists…
Building dependency tree…
Reading state information…
Del conntrack-helpers 1:1.4.2-2+vyos2+current1 [12.3 kB]
Del python3-vici 5.7.2-1 [7278 B]
Del radvd 1:1.9.1-1.4+vyos1+current1 [67.4 kB]
Del vyos-nhrp 1.2.5 [9368 B]
Del python-urllib3 1.10.4-1 [61.0 kB]

hi compuwizz!

This looks like it is trying to install multiple kernels, that is not correct.
could you please provide the output of these to commands:
(executed from inside the docker build container)

ls -al build/chroot/boot/
sudo chroot build/chroot dpkg -l | grep image

Please retry, I’ve forgot to adjust the vyos-build repo

1 Like

I got an iso! Thanks for the help.

1 Like