Page MenuHomeVyOS Platform

image-tools: install fails from PXE boot into live iso due to restrictive logic
Closed, ResolvedPublicBUG

Description

Attempting to install image from a PXE boot into the live image fails with:

vyos@vyos:~$ install image
The system is already installed. Please use "add system image" instead.

Report and details provided in forum posting:
https://forum.vyos.io/t/cannot-install-vyos-after-booting-into-live-with-pxe/13704/1

Upon inspection, it would seem clear that the logic is too restrictive, as the error message is returned on detecting that the boot cmdline does not indicate a 'live' boot:
https://github.com/vyos/vyos-1x/blob/current/src/op_mode/image_installer.py#L639-L640
https://github.com/vyos/vyos-1x/blob/current/python/vyos/system/image.py#L251

This will need to be verified, the logic extended, and viability of PXE boot confirmed.

Details

Version
-
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

jestabro triaged this task as High priority.
jestabro created this object in space S1 VyOS Public.
jestabro renamed this task from image-tools: install fails from PXE boot into live iso for obvious reason to image-tools: install fails from PXE boot into live iso due to restrictive logic.Feb 15 2024, 1:07 AM
jestabro added a project: Restricted Project.Feb 15 2024, 3:14 PM
jestabro moved this task from Open to Finished on the VyOS 1.5 Circinus board.

Forum user reports that this is resolved.