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

Commit c300e76

Browse files
committed
add ipvsadm binary
Signed-off-by: Crazykev <crazykev@zju.edu.cn>
1 parent 981e53f commit c300e76

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

build/ipvsadm

1.06 MB
Binary file not shown.

build/make-initrd.sh

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ mkdir -m 0755 -p /tmp/hyperstart-rootfs/dev \
1111
/tmp/hyperstart-rootfs/bin \
1212
/tmp/hyperstart-rootfs/proc
1313

14-
cp ../src/init /tmp/hyperstart-rootfs
15-
cp busybox /tmp/hyperstart-rootfs
16-
cp iptables /tmp/hyperstart-rootfs
14+
cp ../src/init /tmp/hyperstart-rootfs/
15+
cp busybox /tmp/hyperstart-rootfs/sbin/
16+
cp iptables /tmp/hyperstart-rootfs/sbin/
17+
cp ipvsadm /tmp/hyperstart-rootfs/sbin/
1718
cp libm.so.6 /tmp/hyperstart-rootfs/lib64/
1819

1920
if [ "$1"x = "aarch64"x ]; then
@@ -28,13 +29,13 @@ BUSYBOX_BINARIES=(/bin/sh /bin/tar /bin/hwclock /sbin/modprobe /sbin/depmod)
2829
for bin in ${BUSYBOX_BINARIES[@]}
2930
do
3031
mkdir -p /tmp/hyperstart-rootfs/`dirname ${bin}`
31-
ln -sf /busybox /tmp/hyperstart-rootfs/${bin}
32+
ln -sf /sbin/busybox /tmp/hyperstart-rootfs/${bin}
3233
done
33-
IPTABLES_BINARIES=(/sbin/iptables /sbin/iptables-restore /sbin/iptables-save)
34+
IPTABLES_BINARIES=(/sbin/iptables-restore /sbin/iptables-save)
3435
for bin in ${IPTABLES_BINARIES[@]}
3536
do
3637
mkdir -p /tmp/hyperstart-rootfs/`dirname ${bin}`
37-
ln -sf /iptables /tmp/hyperstart-rootfs/${bin}
38+
ln -sf /sbin/iptables /tmp/hyperstart-rootfs/${bin}
3839
done
3940

4041
ldd /tmp/hyperstart-rootfs/init | while read line

0 commit comments

Comments
 (0)