From 55b2be791bfdcd356c64b8cf6f363a05bc935f52 Mon Sep 17 00:00:00 2001 From: peng9808 Date: Mon, 8 Apr 2024 10:13:47 +0800 Subject: [PATCH] fix tar drbd-util.gz fail --- docker-drbd9/entry.sh | 3 ++- docker-drbd9/install-drbdutils.sh | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-drbd9/entry.sh b/docker-drbd9/entry.sh index 01b8833..6b8b5f5 100644 --- a/docker-drbd9/entry.sh +++ b/docker-drbd9/entry.sh @@ -130,7 +130,8 @@ kos::fromsrc() { cd drbd-* || die "Could not cd to drbd src dir" make $LB_MAKEOPTS - cp /drbdUtils.tar.gz /pkgs_root/drbd-utils.tar.gz + #cp /drbdUtils.tar.gz /pkgs_root/drbd-utils.tar.gz + tar xf /drbdUtils.tar.gz -C /pkgs_root/ cp /install-drbdutils.sh /pkgs_root/install-drbdutils.sh nsenter --target 1 --mount --uts --ipc --net --pid chmod +x /root/install-drbdutils.sh nsenter --target 1 --mount --uts --ipc --net --pid /root/install-drbdutils.sh diff --git a/docker-drbd9/install-drbdutils.sh b/docker-drbd9/install-drbdutils.sh index 84b2529..0f1ec27 100755 --- a/docker-drbd9/install-drbdutils.sh +++ b/docker-drbd9/install-drbdutils.sh @@ -3,7 +3,7 @@ # 安装所需软件包 yum install -y build-essential wget flex automake -tar xf /root/drbd-utils.tar.gz +#tar xf /root/drbd-utils.tar.gz cd /root/drbd-utils/