2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-07-31 18:19:40 +00:00

fix(genimage): explain the harmless bus messages from the image chroot

systemd tooling run inside the image chroot has no bus to talk to and prints
"Failed to connect to bus: No such file or directory". The image builds
correctly, so say so at the end of the run instead of leaving it to be guessed.

Recovered from the unmerged lenovobuild branch (e372fb5b).

Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com>
This commit is contained in:
Vinícius Ferrão
2026-07-25 16:53:25 -03:00
parent 3191b874a3
commit 62ed60a4f0
@@ -1007,6 +1007,10 @@ if ($dracutmode) {
mkinitrd("stateless");
}
# systemd tooling run inside the image chroot has no bus to talk to, so it
# complains even though the image builds correctly
print "It is safe to ignore the message 'Failed to connect to bus: No such file or directory' that may have appeared above one or more times.\n";
sub getlibs {
my $file = shift;
my $liblist = `chroot $rootimg_dir ldd $file`;