diff options
author | Elisei Roca <eroca@suse.de> | 2020-08-03 17:41:29 +0200 |
---|---|---|
committer | Elisei Roca <eroca@suse.de> | 2020-08-03 17:41:29 +0200 |
commit | 491b736a49fb9d64b0b515aa773297a30c8bab1d (patch) | |
tree | c51bc4f6fe7e6bd7e3fd39c1ea5ad74860569881 /test/create-busybox-container | |
parent | test: adapt TEST-21-SYSUSERS for SUSE (diff) | |
download | systemd-491b736a49fb9d64b0b515aa773297a30c8bab1d.tar.xz systemd-491b736a49fb9d64b0b515aa773297a30c8bab1d.zip |
test: adapt TEST-13-NSPAWN-SMOKE for SUSE
Diffstat (limited to 'test/create-busybox-container')
-rwxr-xr-x | test/create-busybox-container | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/create-busybox-container b/test/create-busybox-container index 08fb5d4aa6..3ff14b5fd3 100755 --- a/test/create-busybox-container +++ b/test/create-busybox-container @@ -9,6 +9,16 @@ mkdir -p "$root" mkdir "$root/bin" cp $(type -P busybox) "$root/bin" +ID_LIKE=$(awk -F= '$1=="ID_LIKE" { print $2 ;}' /etc/os-release) +if [[ "$ID_LIKE" = *"suse"* ]]; then + mkdir -p "$root/lib" + mkdir -p "$root/lib64" + for lib in $(find /lib*/ld*); do + [[ -d $root/$(dirname $lib) ]] || mkdir -p $root/$(dirname $lib) + cp $lib $root/$lib + done +fi + mkdir -p "$root/usr/lib" touch "$root/usr/lib/os-release" |