tool-systemd: use consistent naming of script
This commit is contained in:
parent
4c530b61f9
commit
cbfccd2c98
1 changed files with 0 additions and 0 deletions
50
tools-systemd/run.sh
Executable file
50
tools-systemd/run.sh
Executable file
|
@ -0,0 +1,50 @@
|
|||
#!/bin/bash
|
||||
|
||||
source common.sh
|
||||
|
||||
prepare_confs() {
|
||||
local arch=$1
|
||||
|
||||
for s in 1 2 3; do
|
||||
|
||||
local cstage=stage${s}
|
||||
local p=$(( s - 1 ))
|
||||
[[ $p == 0 ]] && p=3
|
||||
local pstage=stage${p}
|
||||
|
||||
local parch="${arch}"
|
||||
[[ "${arch}" == "i686" ]] && parch="x86"
|
||||
|
||||
cat stage-all.conf.template | \
|
||||
sed -e "s:\(^version_stamp.*$\):\1-${mydate}:" \
|
||||
-e "s:CSTAGE:${cstage}:g" \
|
||||
-e "s:PSTAGE:${pstage}:g" \
|
||||
-e "s:SARCH:${arch}:g" \
|
||||
-e "s:PARCH:${parch}:g" \
|
||||
> stage${s}-${arch}-systemd.conf
|
||||
done
|
||||
}
|
||||
|
||||
|
||||
main() {
|
||||
>zzz.log
|
||||
|
||||
undo_grsec
|
||||
|
||||
catalyst -s current | tee -a zzz.log >snapshot.log 2>snapshot.err
|
||||
|
||||
for arch in amd64 i686; do
|
||||
prepare_confs ${arch}
|
||||
done
|
||||
|
||||
# The parallelization `( do_stages ... ) &` doesn't work here
|
||||
# if catalyst is using snapcache, bug #519656
|
||||
for arch in amd64 i686; do
|
||||
(
|
||||
do_stages ${arch}
|
||||
[[ $? == 1 ]] && echo "FAILURE at ${arch}" | tee zzz.log
|
||||
) &
|
||||
done
|
||||
}
|
||||
|
||||
main $1 &
|
Loading…
Add table
Add a link
Reference in a new issue