This repository was archived by the owner on Feb 8, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ cp busybox /tmp/hyperstart-rootfs/sbin/
1616cp iptables /tmp/hyperstart-rootfs/sbin/
1717cp ipvsadm /tmp/hyperstart-rootfs/sbin/
1818cp socat /tmp/hyperstart-rootfs/sbin/
19- cp libm.so.6 /tmp/hyperstart-rootfs/lib64/
2019cp mount.nfs /tmp/hyperstart-rootfs/sbin/mount.nfs4
2120
2221if [ " $INCLUDE_KMODULES " x == " 1" x ]; then
4342 ln -sf /sbin/iptables /tmp/hyperstart-rootfs/${bin}
4443done
4544
46- ldd /tmp/hyperstart-rootfs/init | while read line
45+ LDD_BINARIES=(/init /sbin/ipvsadm /sbin/iptables)
46+ for bin in ${LDD_BINARIES[@]}
4747do
48- arr=(${line// / } )
49-
50- for lib in ${arr[@]}
51- do
52- if [ " ${lib: 0: 1} " = " /" ]; then
53- dir=/tmp/hyperstart-rootfs` dirname $lib `
54- mkdir -p " ${dir} "
55- cp -f $lib $dir
56- fi
57- done
48+ ldd /tmp/hyperstart-rootfs/${bin} | while read line
49+ do
50+ arr=(${line// / } )
51+
52+ for lib in ${arr[@]}
53+ do
54+ if [ " ${lib: 0: 1} " = " /" ]; then
55+ dir=/tmp/hyperstart-rootfs` dirname $lib `
56+ mkdir -p " ${dir} "
57+ cp -f $lib $dir
58+ fi
59+ done
60+ done
5861done
5962
6063if [ " $1 " x = " vbox" x ]; then
You can’t perform that action at this time.
0 commit comments