I had the same when I tried to build 1.3.2 LTS
I installed a fresh Debian 10 iso (english default settings) and did these commands after installing docker:
git clone -b 1.3.2 --single-branch https://github.com/vyos/vyos-build
docker run --rm -it --privileged -v $(pwd):/vyos -w /vyos vyos/vyos-build:equuleus bash
cd vyos-build
./configure --architecture amd64 --build-by "[email protected]" --build-type "release" --version "LTS 1.3.2"
sudo make iso
And then i also got:
P: Executing hook config/hooks/live/17-gen_initramfs.chroot...
I: Create initramfs if it does not exist.
Extra argument '5.4.227-amd64-vyos'
Usage: update-initramfs {-c|-d|-u} [-k version] [-v] [-b directory]
Options:
-k version Specify kernel version or 'all'
-c Create a new initramfs
-u Update an existing initramfs
-d Remove an existing initramfs
-b directory Set alternate boot directory
-v Be verbose
See update-initramfs(8) for further details.
E: config/hooks/live/17-gen_initramfs.chroot failed (exit non-zero). You should check for errors.
E: An unexpected failure occurred, exiting...
The reason was that there was two kernel images:
5.4.227 and 5.4.210.
I searched on the net and found this patch to only use the most recent kernel one:
https://phabricator.vyos.net/T2077
https://phabricator.vyos.net/file/download/i3dye477dbrwa6yflmus/PHID-FILE-7udn53deigm2n3ml63u7/docker_build_kernel_fix.patch
It compiled an then I got vyos-LTS 1.3.2 with kernel 5.4.227-amd64-vyos.
BUT: this kernel may not the intended one for this LTS release.
Maybe its the reason it shows me this failed message in red when booting:
[ OK ] Started ACPI event daemon.
[ OK ] Started Atop process accounting daemon.
[FAILED] Failed to start Restore /e…re the ppp link was shut down.
See 'systemctl status pppd-dns.service' for details.
[ OK ] Started OpenBSD Secure Shell session cleanup.
[ OK ] Started Deferred execution scheduler.
Then i modified the two patched files (data/live-build-config/hooks/live/19-kernel_symlinks.chroot and data/live-build-config/hooks/live/17-gen_initramfs.chroot) to use the oldest (instead of newest) kernel (replaced “tail -1” with “head -1”).
But that generated iso does not start at all
cat: can't open '/sys/block/*/removable': No such file or directory
cat: can't open '/sys/block/*/removable': No such file or directory
[and x times repeated]
BusyBox v1.30.1 (Debian 1:1.30.1-4) built-in shell (ash)
Enter 'help' for a list of built-in commands.
(initramfs)
(initramfs) Unable to find a medium containing a live file system
Then i’ve seen that the first image still shows me two kernels at boot:
GNU GRUB version 2.06-3~deb10u3
+----------------------------------------------------------------------------+
| VyOS LTS linux-5.4.227-amd64-vyos (KVM console) |
| VyOS LTS linux-5.4.227-amd64-vyos (Serial console) |
| VyOS LTS linux-5.4.227-amd64-vyos (USB console) |
| VyOS LTS linux-5.4.210-amd64-vyos (KVM console) |
|*VyOS LTS linux-5.4.210-amd64-vyos (Serial console) |
| VyOS LTS linux-5.4.210-amd64-vyos (USB console) |
| Lost password change LTS (KVM console) |
| Lost password change LTS (Serial console) |
| Lost password change LTS (USB console) |
| |
| |
| |
+----------------------------------------------------------------------------+
Use the ^ and v keys to select which entry is highlighted.
Press enter to boot the selected OS, `e' to edit the commands
before booting or `c' for a command-line.
So i wanted to boot linux-5.4.210-amd64-vyos…
Also not possible:
error: file `/boot/LTS/initrd.img-5.4.210-amd64-vyos' not found.
Press any key to continue...
I think it is a bug.
A stable LTS release (1.3.2 in this case) should always and every time be possible to build with the intended kernel version (Changelog says 5.4.208?).