sonic-buildimage/installer/x86_64/tests/sample_machine.conf
Kuanyu Chen cb70c662df
[installer] Fix variable inside machine.conf caused install.sh error (#6600)
Encounter error when install SONiC image if there are some onie_discovery variables assigned with multiple values inside machine.conf

- How I did it

Replace original ". /machine.conf" method and add another function to do the same thing.

- How to verify it

Add a item inside /host/machine.conf like onie_disco_ntpsrv=10.254.141.10 10.254.141.131
Do sonic_installer install to check if any error occurs
2021-02-04 15:26:50 -08:00

16 lines
414 B
Plaintext

# sample_machine.conf for onie
# A space in front of comment line
# One blank line below
onie_machine_rev=0
onie_arch=x86_64# some comment after declaration
# no value declaration
onie_config_version=
onie_build_date="2021-02-03T01:50+0800"
onie_partition_type=gpt
onie_disco_ntpsrv=192.168.0.1 192.168.0.2
onie_firmware=auto
# another blank line below
onie_skip_ethmgmt_macs=no
onie_grub_image_name=grubx64.efi