From ba68b8f02c85674aed8900b63721b0501d1984f0 Mon Sep 17 00:00:00 2001 From: YanzhaoLi Date: Mon, 5 Aug 2019 03:36:40 -0700 Subject: [PATCH] Support centos7.5 as bootstrap.iso 1. mv xtables library from /lib64 to /usr/lib64 2. put rngd's dependent dynamic lib into /lib64 3. change 6.9 test to centos7.5 test The first one is to have iptables work. `LD_DEBUG=libs LD_DEBUG_OUTPUT=/tmp/iptables_dynamic_dependencies.out iptables ` The 2nd one is to have rngd work, using the same method to find dependent so --- .drone.yml | 2 +- isos/base/repos/centos-7/init.sh | 18 ++++++++++-------- note | 6 ++++++ tests/integration-test.sh | 7 ++++--- 4 files changed, 21 insertions(+), 12 deletions(-) create mode 100644 note diff --git a/.drone.yml b/.drone.yml index 0681a0d38b..f6d81d8896 100644 --- a/.drone.yml +++ b/.drone.yml @@ -106,7 +106,7 @@ pipeline: - codecov_token commands: - export BUILD_NUMBER=${DRONE_BUILD_NUMBER} - - ./tests/generate-custom-iso.sh centos-6.9 + - ./tests/generate-custom-iso.sh centos-7 when: status: success diff --git a/isos/base/repos/centos-7/init.sh b/isos/base/repos/centos-7/init.sh index 43827c3bf6..212f72196f 100755 --- a/isos/base/repos/centos-7/init.sh +++ b/isos/base/repos/centos-7/init.sh @@ -23,20 +23,19 @@ set -x # arg1: root of destination filesystem install-entropy () { # copy rngd and libraries to target from current root - mkdir -p $1/{bin,lib64} + mkdir -p $1/{opt/config,bin/lib64,lib64} cp -Ln /lib64/ld-linux-x86-64.so.2 $1/lib64/ cp -Ln /lib64/libc.so.6 $1/lib64/ cp /sbin/rngd $1/bin/rngd + cp -Ln /lib64/lib{com_err.*,*crypt*,c.so*,curl.*,dl.*,freebl*,gpg-error*,gssapi*,idn.so*,keyutils*,krb*,lber*,ldap*,lzma*,m.so*,nspr*,nss*,pcre.*,plc*,plds*,pthread.so.*,resolv.so.*,rt.so*,sasl2*,selinux.so.*,smime*,ssh*,ssl*,sysfs*,xml2*,z.so.*} $1/lib64/ + # TODO: stop assuming sh - can we replace with: # a. json config with rtld, rtld args, binary, binary args, chroot? # b. Go plugins for tether extensions - cat - > $1/bin/entropy < $1/opt/config/entropy.txt <