Page MenuHomeVyOS Platform

vyos-live-build: preseed boot parameter silently dropped when the file name contains spaces
Open, NormalPublic

Description

functions/configuration.sh tests [ -n ${_LB_BOOTAPPEND_PRESEED} ] without quotes. With a value containing spaces, [ fails with "binary operator expected", the test is false and the file= boot parameter is dropped with no warning. With an empty value the test is wrongly true (harmless today because a later sed strips the extra space).

Fix: quote the variable.

Details

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