1 |
commit: b5afdc366e209df26c47f086dc99fa15ab38e153 |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Apr 9 22:52:40 2019 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 9 22:52:57 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/releng.git/commit/?id=b5afdc36 |
7 |
|
8 |
tools-systemd: add scripts for arm64 |
9 |
|
10 |
Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org> |
11 |
|
12 |
tools-systemd/run-arm64.sh | 49 ++++++++++++++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 49 insertions(+) |
14 |
|
15 |
diff --git a/tools-systemd/run-arm64.sh b/tools-systemd/run-arm64.sh |
16 |
new file mode 100755 |
17 |
index 00000000..41c4afc8 |
18 |
--- /dev/null |
19 |
+++ b/tools-systemd/run-arm64.sh |
20 |
@@ -0,0 +1,49 @@ |
21 |
+#!/bin/bash |
22 |
+ |
23 |
+source common.sh |
24 |
+ |
25 |
+prepare_confs() { |
26 |
+ local arch=$1 |
27 |
+ |
28 |
+ for s in 1 2 3; do |
29 |
+ |
30 |
+ local cstage=stage${s} |
31 |
+ local p=$(( s - 1 )) |
32 |
+ [[ $p == 0 ]] && p=3 |
33 |
+ local pstage=stage${p} |
34 |
+ local repo_dir="$( dirname $(pwd) )" |
35 |
+ local template="stage-all.conf.template" |
36 |
+ local parch="${arch}" |
37 |
+ |
38 |
+ cat ${template} | \ |
39 |
+ sed -e "s:\(^version_stamp.*$\):\1-${mydate}:" \ |
40 |
+ -e "s:CSTAGE:${cstage}:g" \ |
41 |
+ -e "s:PSTAGE:${pstage}:g" \ |
42 |
+ -e "s:SARCH:${arch}:g" \ |
43 |
+ -e "s:PARCH:${parch}:g" \ |
44 |
+ -e "s:@REPO_DIR@:${repo_dir}:g" \ |
45 |
+ -e "s:MYCATALYST:$(pwd):g" \ |
46 |
+ > stage${s}-${arch}-systemd.conf |
47 |
+ done |
48 |
+} |
49 |
+ |
50 |
+ |
51 |
+main() { |
52 |
+ >zzz.log |
53 |
+ |
54 |
+ undo_grsec |
55 |
+ |
56 |
+ catalyst -s current | tee -a zzz.log >snapshot.log 2>snapshot.err |
57 |
+ |
58 |
+ for arch in arm64; do |
59 |
+ prepare_confs ${arch} |
60 |
+ done |
61 |
+ |
62 |
+ for arch in arm64; do |
63 |
+ do_stages ${arch} |
64 |
+ [[ $? == 1 ]] && echo "FAILURE at ${arch}" | tee zzz.log |
65 |
+ done |
66 |
+ |
67 |
+} |
68 |
+ |
69 |
+main $1 & |