mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-19 08:52:15 +00:00
e87c72c38d
linuximage.partitionfile takes a comma-separated list of layout, d: disk and c: configuration entries, any of them prefixed with s: for a script. The Ubuntu layout step chose between decoding a layout file and running a layout script by the s: prefix of the last entry in the whole list, so a layout file followed by an s:d: disk script was run as a script, and a layout script followed by a d: disk file was copied into the layout as text. The parser also kept a script flag set by an earlier entry of the same kind after a later entry replaced it. Give each kind the prefix of the entry that is used, the last one of that kind, and decode the Ubuntu layout by it.