Page MenuHomeVyOS Platform

Rolling fails to build with update-initramfs
Not ApplicablePublicBUG

Description

From build log:

I: Create initramfs if it does not exist.
E: there is more than one kernel image file installed!
E: please make sure that kernel_version in data/defaults.toml is up to date
E: if your repository is up to date, then there is a bug
I: Executing update-initramfs -c -k 6.6.66-vyos
6.6.69-vyos
Extra argument '6.6.69-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...
Traceback (most recent call last):
  File "/vyos/./build-vyos-image", line 675, in <module>
    cmd("lb build 2>&1")
  File "/vyos/scripts/image-build/utils.py", line 84, in cmd
    raise OSError(f"Command '{command}' failed")
OSError: Command 'lb build 2>&1' failed

Details

Version
Rolling
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Bug (incorrect behavior)

Event Timeline

dmbaturin removed a project: VyOS Rolling.
dmbaturin subscribed.

This happens when the kernel in the repos was updated but the local repo clone doesn't reflect that in data/defaults.toml. We need to find a way to make the error more informative or find a way not to hardcode the kernel argument for live-build. I certainly agree this behavior of live-build is very confusing.