mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-20 17:32:15 +00:00
6e0b113edf
A conf that declares vmothersetting=cpumode:host-passthrough;firmware:efi reaches the node as vmothersetting=cpumode:host-passthrough. The value class of object_attr held no semicolon, so the reader kept the characters up to it and dropped the rest without a message. vm.othersettings separates its settings with a semicolon, so no conf could set two of them. object_attr now keeps the semicolon, and chdef_command quotes every word it takes from the conf. The quoting is what makes the semicolon safe: xcattest runs each command through /bin/bash -c, where an unquoted semicolon ends the command. chdef_command also sorts the assignments, so one conf builds one command. xcattest_conf_object_attr.t covers both halves. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>