Skip to content

Commit efac56b

Browse files
authored
Merge pull request #230 from splunk/bugfix/make-s390x-great-again
Making ubi8 image compatible with s390x
2 parents 7c5bd56 + 478c3af commit efac56b

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

base/redhat-8/install.sh

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
set -e
1717

1818
# reinstalling local en def for now, removed in minimal image https://bugzilla.redhat.com/show_bug.cgi?id=1665251
19+
microdnf -y update
1920
microdnf -y --nodocs install glibc-langpack-en
2021

2122
#Currently there is no access to the UTF-8 char map, the following command is commented out until
@@ -27,24 +28,26 @@ export LANG=en_US.utf8
2728

2829
microdnf -y --nodocs install wget sudo shadow-utils procps
2930
#install busybox direct from the multiarch since epel isn't availible yet for redhat8
30-
wget https://busybox.net/downloads/binaries/1.28.1-defconfig-multiarch/busybox-x86_64
31-
mv busybox-x86_64 /bin/busybox
31+
wget -O /bin/busybox https://busybox.net/downloads/binaries/1.28.1-defconfig-multiarch/busybox-`arch`
3232
chmod +x /bin/busybox
33-
microdnf -y --nodocs install python2 tar
34-
pip2 -q --no-cache-dir install requests ansible
33+
microdnf -y --nodocs install gcc redhat-rpm-config python2-devel libffi-devel openssl-devel tar
34+
pip2 --no-cache-dir install requests ansible
35+
microdnf -y remove gcc libffi-devel openssl-devel
36+
microdnf clean all
3537

3638
cd /bin
37-
ln -s busybox diff
38-
ln -s busybox hostname
39-
ln -s busybox killall
40-
ln -s busybox netstat
41-
ln -s busybox nslookup
42-
ln -s busybox ping
43-
ln -s busybox ping6
44-
ln -s busybox readline
45-
ln -s busybox route
46-
ln -s busybox syslogd
47-
ln -s busybox traceroute
39+
ln -s python2 python || true
40+
ln -s busybox diff || true
41+
ln -s busybox hostname || true
42+
ln -s busybox killall || true
43+
ln -s busybox netstat || true
44+
ln -s busybox nslookup || true
45+
ln -s busybox ping || true
46+
ln -s busybox ping6 || true
47+
ln -s busybox readline || true
48+
ln -s busybox route || true
49+
ln -s busybox syslogd || true
50+
ln -s busybox traceroute || true
4851
chmod u+s /bin/ping
4952
groupadd sudo
5053

0 commit comments

Comments
 (0)