2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-18 12:20:40 +00:00

Workaround for Ubuntu 18.04 busybox bug (#5421)

* Workaround for Ubuntu 18.04 busybox bug https://bugs.launchpad.net/ubuntu/+source/busybox/+bug/1753572

* Add cpio to the Ubuntu 18.04 diskless pkglist
This commit is contained in:
Gᴏɴɢ Jie
2018-07-23 17:00:37 +08:00
committed by yangsong
parent 96b33696ff
commit b86e2082bf
3 changed files with 12 additions and 0 deletions

View File

@ -16,3 +16,4 @@ dnsutils
tar
gzip
xz-utils
cpio

View File

@ -16,3 +16,4 @@ dnsutils
tar
gzip
xz-utils
cpio

View File

@ -1650,6 +1650,16 @@ EOMS
push @filestoadd, $_;
}
# Workaround for Ubuntu 18.04 busybox bug
# https://bugs.launchpad.net/ubuntu/+source/busybox/+bug/1753572
# On Ubuntun 18.04, will use GNU cpio instead of busybox cpio
if ("ubuntu18.04" eq $osver) {
foreach ("bin/cpio") {
getlibs($_);
push @filestoadd, $_;
}
}
# Additional binaries needed for udev on s390x
if ($arch eq "s390x") {
foreach ("sbin/udevsettle", "sbin/udevtrigger", "sbin/udevd", "sbin/depmod") {