Open main menu

CDOT Wiki β

Changes

Pidora SOP

1,087 bytes added, 12:53, 9 April 2013
Mash Command Line Details
== Mash Config Files ==
* config file here
== Mash File Configuration Details ==
<pre>/usr/local/bin/mashrun-pidora-18</pre>
 
<pre>
#!/bin/bash
#
# mashrun-pidora18 :: Compose a Pidora 18 repository
#
 
DISTNAME=pidora
RELEASE=18
 
# Default mash output dir is unique by dates (YYYYMMDD)
BASEDIR=/mnt/koji/mash
MASHDIR=${BASEDIR}/${DISTNAME}-${RELEASE}-$(date +%Y%m%d)
 
# If there is already a compose output directory for today,
# append -HHMMSS
if [ -d ${MASHDIR} ] # If YYYYMMDD exists, add -HHMMSS
then
MASHDIR=${MASHDIR}-$(date +%H%M%S)
fi
mkdir -p ${MASHDIR}
 
{
 
exec 2>&1
 
echo "Composing to ${MASHDIR}..."
 
time mash -o ${MASHDIR} ${DISTNAME}-${RELEASE} -f /usr/local/mash/comps-${DISTNAME}-${RELEASE}.xml.gz
 
rm ${BASEDIR}/${DISTNAME}-${RELEASE}-latest
ln -s ${MASHDIR} ${BASEDIR}/${DISTNAME}-${RELEASE}-latest
 
echo
echo "Warnings about unsigned packages are temporarily suppressed from email."
echo "Refer to ${MASHDIR}/mash.log for warnings."
 
}| cat -v | tee ${MASHDIR}/mash.log | fgrep -v '(signed with no key)' | mail -s "${DISTNAME}-${RELEASE} Mash Run" mashrun-alert
 
# The 'cat -v' above is there to prevent an unprintable code from throwing off the
# mail command.
</pre>
 
== Mash Command Line Details ==
* user/host, crontab lines, script execution, config files, etc
= Composing Images =
1
edit