From 45d0034a8f8b8dd1e89d7f9a6f13ba75d81482a3 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Sat, 28 May 2022 09:39:47 -0400 Subject: [PATCH] copy takes up lots of disk space and is 2x slower. move back to hardlink --- roles/grobisplitter/files/cents8-split.sh | 8 ++++---- roles/grobisplitter/files/rhel8-split.sh | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/roles/grobisplitter/files/cents8-split.sh b/roles/grobisplitter/files/cents8-split.sh index 5516f04f30..769723454a 100755 --- a/roles/grobisplitter/files/cents8-split.sh +++ b/roles/grobisplitter/files/cents8-split.sh @@ -43,22 +43,22 @@ for ARCH in ${ARCHES}; do fi # Begin splitting the various packages into their subtrees - ${BINDIR}/splitter.py --action copy --target CS-8-001 ${HOMEDIR}/BaseOS/${ARCH}/os/ --only-defaults &> /dev/null + ${BINDIR}/splitter.py --action hardlink --target CS-8-001 ${HOMEDIR}/BaseOS/${ARCH}/os/ --only-defaults &> /dev/null if [ $? -ne 0 ]; then echo "splitter ${ARCH} baseos failed" exit fi - ${BINDIR}/splitter.py --action copy --target CS-8-002 ${HOMEDIR}/AppStream/${ARCH}/os/ --only-defaults &> /dev/null + ${BINDIR}/splitter.py --action hardlink --target CS-8-002 ${HOMEDIR}/AppStream/${ARCH}/os/ --only-defaults &> /dev/null if [ $? -ne 0 ]; then echo "splitter ${ARCH} appstream failed" exit fi - ${BINDIR}/splitter.py --action copy --target CS-8-003 ${HOMEDIR}/PowerTools/${ARCH}/os/ &> /dev/null + ${BINDIR}/splitter.py --action hardlink --target CS-8-003 ${HOMEDIR}/PowerTools/${ARCH}/os/ &> /dev/null if [ $? -ne 0 ]; then echo "splitter ${ARCH} codeready failed" exit fi - ${BINDIR}/splitter.py --action copy --target CS-8-004 ${HOMEDIR}/Devel/${ARCH}/os/ &> /dev/null + ${BINDIR}/splitter.py --action hardlink --target CS-8-004 ${HOMEDIR}/Devel/${ARCH}/os/ &> /dev/null if [ $? -ne 0 ]; then echo "splitter ${ARCH} devel failed" exit diff --git a/roles/grobisplitter/files/rhel8-split.sh b/roles/grobisplitter/files/rhel8-split.sh index cc766d82b2..24674909dd 100755 --- a/roles/grobisplitter/files/rhel8-split.sh +++ b/roles/grobisplitter/files/rhel8-split.sh @@ -46,17 +46,17 @@ for ARCH in ${ARCHES}; do fi # Begin splitting the various packages into their subtrees - ${BINDIR}/splitter.py --action copy --target RHEL-8-001 ${ARCHDIR}/rhel-8-for-${ARCH}-baseos-rpms/ --only-defaults &> /dev/null + ${BINDIR}/splitter.py --action hardlink --target RHEL-8-001 ${ARCHDIR}/rhel-8-for-${ARCH}-baseos-rpms/ --only-defaults &> /dev/null if [ $? -ne 0 ]; then echo "splitter ${ARCH} baseos failed" exit fi - ${BINDIR}/splitter.py --action copy --target RHEL-8-002 ${ARCHDIR}/rhel-8-for-${ARCH}-appstream-rpms/ --only-defaults &> /dev/null + ${BINDIR}/splitter.py --action hardlink --target RHEL-8-002 ${ARCHDIR}/rhel-8-for-${ARCH}-appstream-rpms/ --only-defaults &> /dev/null if [ $? -ne 0 ]; then echo "splitter ${ARCH} appstream failed" exit fi - ${BINDIR}/splitter.py --action copy --target RHEL-8-003 ${ARCHDIR}/codeready-builder-for-rhel-8-${ARCH}-rpms/ &> /dev/null + ${BINDIR}/splitter.py --action hardlink --target RHEL-8-003 ${ARCHDIR}/codeready-builder-for-rhel-8-${ARCH}-rpms/ &> /dev/null if [ $? -ne 0 ]; then echo "splitter ${ARCH} codeready failed" exit