Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Commit f2d1b34

Browse files
authored
Merge pull request #265 from Crazykev/library
Update ipvsadm binary to a static/dynamic mix-compiled version
2 parents 77a744c + dde5086 commit f2d1b34

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
lines changed

build/ipvsadm

-907 KB
Binary file not shown.

build/libm.so.6

-1.09 MB
Binary file not shown.

build/make-initrd.sh

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ cp busybox /tmp/hyperstart-rootfs/sbin/
1616
cp iptables /tmp/hyperstart-rootfs/sbin/
1717
cp ipvsadm /tmp/hyperstart-rootfs/sbin/
1818
cp socat /tmp/hyperstart-rootfs/sbin/
19-
cp libm.so.6 /tmp/hyperstart-rootfs/lib64/
2019
cp mount.nfs /tmp/hyperstart-rootfs/sbin/mount.nfs4
2120

2221
if [ "$INCLUDE_KMODULES"x == "1"x ]; then
@@ -43,18 +42,22 @@ do
4342
ln -sf /sbin/iptables /tmp/hyperstart-rootfs/${bin}
4443
done
4544

46-
ldd /tmp/hyperstart-rootfs/init | while read line
45+
LDD_BINARIES=(/init /sbin/ipvsadm /sbin/iptables)
46+
for bin in ${LDD_BINARIES[@]}
4747
do
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
5861
done
5962

6063
if [ "$1"x = "vbox"x ]; then

0 commit comments

Comments
 (0)