mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-11-23 19:02:17 +00:00
4ea954099a
genimage ran debootstrap on every run. For Ubuntu 19.04 and later, debootstrap extracts with tar -k, so a second run on an existing root image failed at base-files and blamed the mirror. genimage now skips debootstrap when an earlier run finished it and updates the image with apt. The image holds the dummy resolv.conf and the otherpkgs apt sources of that run. Before the first apt command, genimage removes the apt sources that it writes again later and gives the image the hosts and resolv.conf of the build host. A .bak file that an interrupted run left is kept, so the image still gets its own file back. genimage stops with an error and leaves the root image unchanged in three cases. The root image holds another Ubuntu release or architecture, the debootstrap directory of an unfinished run, or the bin/uname-binary backup of an interrupted run.