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 <