mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-20 17:32:15 +00:00
876ff7bfe0
The Red Hat-family genimage staged and published the boot files only for openEuler. For the other releases, it copied the kernel into the image directory before it built the initial ramdisks, and it ignored a failed kernel copy and a failed move of a ramdisk. When dracut failed, the new kernel stayed next to the ramdisks of the earlier build. On images without dracut, a failed cpio replaced the ramdisks with empty archives. genimage now builds the kernel and both ramdisks in a temporary directory inside the image directory for every release, and publishes them with publish_staged_boot_files after both ramdisks are built. It stops when the kernel copy, dracut, the move of a ramdisk or any command of the cpio pipeline fails. openEuler keeps its single stateless ramdisk.