Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Release Engineering
Public
toolkit
Commits
c561d316
Verified
Commit
c561d316
authored
Nov 10, 2021
by
Louis Abel
📺
Browse files
minor changes
parent
36ea0fe5
Pipeline
#92
failed with stage
in 31 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
sync/minor-release-sync-to-staging.sh
View file @
c561d316
...
...
@@ -10,6 +10,7 @@ MAJ=${RLVER}
# sync all pieces of a release, including extras, nfv, etc
for
COMPOSE
in
Rocky
"
${
NONMODS_REPOS
[@]
}
"
;
do
echo
"
${
COMPOSE
}
: Syncing"
cd
"/mnt/compose/
${
MAJ
}
/latest-
${
COMPOSE
}
-
${
MAJ
}
/compose"
||
{
echo
"
${
COMPOSE
}
: Failed to change directory"
;
break
;
}
TARGET
=
"
${
STAGING_ROOT
}
/
${
CATEGORY_STUB
}
/
${
REV
}
"
...
...
@@ -22,27 +23,36 @@ for COMPOSE in Rocky "${NONMODS_REPOS[@]}"; do
done
# sync all sig stuff
for
SIG
in
"
${
!SIG_COMPOSE[@]
}
"
;
do
cd
"/mnt/compose/
${
MAJ
}
/latest-
${
SIG
}
-
${
MAJ
}
/compose"
||
{
echo
"
${
COMPOSE
}
: Failed to change directory"
;
break
;
}
TARGET
=
"
${
STAGING_ROOT
}
/
${
CATEGORY_STUB
}
/
${
REV
}
/
${
SIG_COMPOSE
[
$SIG
]
}
"
mkdir
-p
"
${
TARGET
}
"
# disabling because none of our files should be starting with dashes. If they
# are something is *seriously* wrong here.
# shellcheck disable=SC2035
sudo
-l
&&
find
**
/
*
-maxdepth
0
-type
d | parallel
--will-cite
-j
18
sudo
rsync
-av
--chown
=
10004:10005
--progress
--relative
--human-readable
\
{}
"
${
TARGET
}
"
done
# Disabled as we will have a different method for sig content and sig content
# is available upstream.
#for SIG in "${!SIG_COMPOSE[@]}"; do
# echo "${SIG}: Syncing"
# cd "/mnt/compose/${MAJ}/latest-${SIG}-${MAJ}/compose" || { echo "${COMPOSE}: Failed to change directory"; break; }
#
# TARGET="${STAGING_ROOT}/${CATEGORY_STUB}/${REV}/${SIG_COMPOSE[$SIG]}"
# mkdir -p "${TARGET}"
# # disabling because none of our files should be starting with dashes. If they
# # are something is *seriously* wrong here.
# # shellcheck disable=SC2035
# sudo -l && find **/* -maxdepth 0 -type d | parallel --will-cite -j 18 sudo rsync -av --chown=10004:10005 --progress --relative --human-readable \
# {} "${TARGET}"
#done
# copy around the ISOs a bit, make things comfortable
for
ARCH
in
"
${
ARCHES
[@]
}
"
;
do
TARGET
=
"
${
STAGING_ROOT
}
/
${
CATEGORY_STUB
}
/
${
REV
}
/isos/
${
ARCH
}
"
# who knows if EL
9
will change the name of baseos
# who knows if EL
10
will change the name of baseos
for
x
in
BaseOS Minimal
;
do
SOURCE
=
"
${
STAGING_ROOT
}
/
${
CATEGORY_STUB
}
/
${
REV
}
/
${
x
}
/
${
ARCH
}
/iso"
mkdir
-p
"
${
TARGET
}
"
cp
"
${
SOURCE
}
/*.iso"
"
${
TARGET
}
"
cp
"
${
SOURCE
}
/*.iso.manifest"
"
${
TARGET
}
"
echo
"
${
x
}
${
ARCH
}
: Copying ISO images"
# Hardcoding this for now
SOURCE
=
"/mnt/compose/
${
MAJ
}
/latest-Rocky-
${
MAJ
}
/compose/
${
x
}
/
${
ARCH
}
/iso"
TARGET_ARCH
=
"
${
STAGING_ROOT
}
/
${
CATEGORY_STUB
}
/
${
REV
}
/
${
x
}
/
${
ARCH
}
/iso"
mkdir
-p
"
${
SOURCE
}
"
"
${
TARGET
}
"
"
${
TARGET_ARCH
}
"
# Copy the ISO and manifests into their target architecture
cp
"
${
SOURCE
}
/*.iso*"
"
${
TARGET_ARCH
}
/"
cp
"
${
SOURCE
}
/CHECKSUM"
"
${
TARGET_ARCH
}
/"
# Copy the ISO and manifests into the main isos target
cp
"
${
SOURCE
}
/*.iso*"
"
${
TARGET
}
/"
cat
"
${
SOURCE
}
/CHECKSUM"
>>
"
${
TARGET
}
/CHECKSUM"
done
done
...
...
@@ -52,16 +62,19 @@ for ARCH in "${ARCHES[@]}"; do
for
REPO
in
"
${
MODS_REPOS
[@]
}
"
;
do
SOURCE
=
"
${
STAGING_ROOT
}
/
${
CATEGORY_STUB
}
/
${
REV
}
/
${
REPO
}
/
${
ARCH
}
/os"
TARGET
=
"
${
STAGING_ROOT
}
/
${
CATEGORY_STUB
}
/
${
REV
}
/
${
REPO
}
/
${
ARCH
}
/kickstart"
echo
"Making golden kickstart directory"
cp
-na
"
${
SOURCE
}
"
"
${
TARGET
}
"
done
done
# fix treeinfo
for
ARCH
in
"
${
ARCHES
[@]
}
"
;
do
echo
"Ensuring treeinfo is correct"
treeinfoModder
"
${
ARCH
}
"
done
# sign all repos
echo
"Signing all repositories"
test
-f
$(
dirname
"
$0
"
)
/sign-repos-only.sh
ret_val
=
$?
...
...
@@ -70,5 +83,6 @@ if [ "$ret_val" -eq 0 ]; then
fi
# Change Symlink if required
echo
"Setting symlink to
${
REV
}
"
/bin/rm
"
${
STAGING_ROOT
}
/
${
CATEGORY_STUB
}
/latest-8"
ln
-sr
"
${
STAGING_ROOT
}
/
${
CATEGORY_STUB
}
/
${
REV
}
"
latest-8
sync/stage-live-images.sh
0 → 100644
View file @
c561d316
#!/bin/bash
# Source common variables
# shellcheck disable=SC2046,1091,1090
source
"
$(
dirname
"
$0
"
)
/common"
if
[[
$#
-eq
0
]]
;
then
echo
"You must specify a short name."
exit
1
fi
# Major Version (eg, 8)
MAJ
=
${
RLVER
}
# For now, only architecture that we support live is x86_64
TARGET
=
"
${
STAGING_ROOT
}
/
${
CATEGORY_STUB
}
/
${
REV
}
/Live/x86_64"
mkdir
-p
"
${
TARGET
}
"
cat
>
"
${
TARGET
}
/README"
<<
EOF
This directory contains official live images for Rocky Linux. Some rely on the
use of EPEL (KDE and XFCE). As of this writing, the XFCE image does not come
with a default wallpaper. We have been unable to address this directly.
Please open a github issue for these live image kickstarts or a bug if there
are larger issues.
-label
EOF
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment