Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • etp-computing/xcache-nspawn-lrz
1 result
Show changes
Commits on Source (5)
......@@ -2,6 +2,7 @@
Bind=/srv/xcache
Bind=/var/spool/xrootd
Bind=/var/run/xrootd
Bind=/var/local/xcache
BindReadOnly=/etc/grid-security
BindReadOnly=/etc/xrootd
......
#!/bin/bash
set -e
img_path="$1"
prefix="/"
if [[ -n "$2" ]]; then
prefix="$2"
fi
dnf -y --installroot "$img_path" --releasever=7 install system-release bash yum
dnf -y --installroot "$img_path" --releasever=8 install system-release bash yum
rsync -av /var/local/mkosi/mkosi.extra/ "$img_path"
rsync -av "${prefix}var/local/mkosi/mkosi.extra/" "$img_path"
cp /var/local/mkosi/mkosi.postinst "$img_path"
cp "${prefix}var/local/mkosi/mkosi.postinst" "$img_path"
systemd-nspawn -D "$img_path" bash /mkosi.postinst
#!/bin/bash
# needed to get gpg keys imported correctly
rpmdb --rebuilddb
yum install -y \
curl \
gperftools \
hostname \
xrootd-server-5.4.2 \
xrootd-client-5.4.2 \
xrootd-5.4.2 \
xrootd-voms-5.4.2 \
xrootd-libs-5.4.2 \
xrootd-server-5.6.2 \
xrootd-client-5.6.2 \
xrootd-5.6.2 \
xrootd-voms-5.6.2 \
xrootd-libs-5.6.2 \
voms-clients \
wlcg-voms-atlas \
fetch-crl \
......
#!/bin/bash
#
# remove cache entries for file pattern
#
if [ $# -lt 1 ]; then
echo "usage: $0 <file-pattern>"
exit 1
fi
fpat='*'$1'*'
# check cache
xrdpath=/srv/xcache/namespace/atlas/
flist=`find $xrdpath -xtype f -path "$fpat" `
# check RAM disk
fl2=`find /dev/shm/atlas -xtype f -path "$fpat" `
flist="$flist $fl2"
nw=`echo $flist | wc -w `
if [ $nw -lt 1 ]; then
echo "No files found"
exit 1
fi
flink=""
for ding in $flist; do
if [ -L $ding ] && [ -e $ding ]; then
f=`readlink $ding`
flink="$flink $f"
fi
done
echo "Removing these files "
echo $flist $flink | tr " " "\n"
echo "Ok ? (y/n)"
read ok
if [ "$ok" == "y" ]; then
rm $flist $flink
fi