1 |
commit: 5515e890485b5f23a68104dc7004235a02dca15d |
2 |
Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jan 30 23:43:40 2021 +0000 |
4 |
Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 30 23:46:08 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/releng.git/commit/?id=5515e890 |
7 |
|
8 |
tools: Add UPLOAD_USER variable |
9 |
|
10 |
Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> |
11 |
|
12 |
tools/catalyst-auto-alpha.conf | 3 ++- |
13 |
tools/catalyst-auto-amd64.conf | 6 +++--- |
14 |
tools/catalyst-auto-arm.conf | 3 ++- |
15 |
tools/catalyst-auto-arm64.conf | 3 ++- |
16 |
tools/catalyst-auto-hppa.conf | 3 ++- |
17 |
tools/catalyst-auto-ia64.conf | 3 ++- |
18 |
tools/catalyst-auto-ppc.conf | 3 ++- |
19 |
tools/catalyst-auto-ppc64le.conf | 3 ++- |
20 |
tools/catalyst-auto-qemu-arm.conf | 4 +++- |
21 |
tools/catalyst-auto-qemu-riscv.conf | 4 +++- |
22 |
tools/catalyst-auto-s390.conf | 3 ++- |
23 |
tools/catalyst-auto-s390x.conf | 3 ++- |
24 |
tools/catalyst-auto-sparc64.conf | 3 ++- |
25 |
tools/catalyst-auto-x86.conf | 6 +++--- |
26 |
14 files changed, 32 insertions(+), 18 deletions(-) |
27 |
|
28 |
diff --git a/tools/catalyst-auto-alpha.conf b/tools/catalyst-auto-alpha.conf |
29 |
index 27825851..687d1fc3 100644 |
30 |
--- a/tools/catalyst-auto-alpha.conf |
31 |
+++ b/tools/catalyst-auto-alpha.conf |
32 |
@@ -1,6 +1,7 @@ |
33 |
# This is the config file for the catalyst-auto script. It should be pretty |
34 |
# self-explanatory. |
35 |
|
36 |
+UPLOAD_USER=alpha |
37 |
SPECS_DIR=${REPO_DIR}/releases/specs/alpha |
38 |
|
39 |
SPECS="stage1.spec stage3.spec" |
40 |
@@ -33,7 +34,7 @@ update_symlinks() { |
41 |
|
42 |
upload() { |
43 |
echo Uploading "$@" |
44 |
- rsync -e 'ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" alpha@××××××××××××××××××××××.org: |
45 |
+ rsync -e 'ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" ${UPLOAD_USER}@releng-incoming.gentoo.org: |
46 |
} |
47 |
|
48 |
post_build() { |
49 |
|
50 |
diff --git a/tools/catalyst-auto-amd64.conf b/tools/catalyst-auto-amd64.conf |
51 |
index 6ee56fb1..3c0b6c99 100644 |
52 |
--- a/tools/catalyst-auto-amd64.conf |
53 |
+++ b/tools/catalyst-auto-amd64.conf |
54 |
@@ -1,7 +1,7 @@ |
55 |
# This is the config file for the catalyst-auto script. It should be pretty |
56 |
# self-explanatory. |
57 |
|
58 |
-ARCH="amd64" |
59 |
+UPLOAD_USER=amd64 |
60 |
host=$(hostname) |
61 |
|
62 |
source /etc/catalyst/release/build.env |
63 |
@@ -85,8 +85,8 @@ post_build() { |
64 |
DEST_HARDENED=${BUILD_DESTDIR_BASE}/hardened |
65 |
;; |
66 |
*) |
67 |
- DEST_DEFAULT=${ARCH}@releng-incoming.gentoo.org:${BUILD_DESTDIR_BASE} |
68 |
- DEST_HARDENED=${ARCH}@releng-incoming.gentoo.org:${BUILD_DESTDIR_BASE}/hardened |
69 |
+ DEST_DEFAULT=${UPLOAD_USER}@releng-incoming.gentoo.org:${BUILD_DESTDIR_BASE} |
70 |
+ DEST_HARDENED=${UPLOAD_USER}@releng-incoming.gentoo.org:${BUILD_DESTDIR_BASE}/hardened |
71 |
;; |
72 |
esac |
73 |
|
74 |
|
75 |
diff --git a/tools/catalyst-auto-arm.conf b/tools/catalyst-auto-arm.conf |
76 |
index 9f873c31..feaad6bd 100644 |
77 |
--- a/tools/catalyst-auto-arm.conf |
78 |
+++ b/tools/catalyst-auto-arm.conf |
79 |
@@ -1,6 +1,7 @@ |
80 |
# This is the config file for the catalyst-auto script. It should be pretty |
81 |
# self-explanatory. |
82 |
|
83 |
+UPLOAD_USER=arm |
84 |
host=$(hostname) |
85 |
|
86 |
SPECS_DIR=${REPO_DIR}/releases/specs/arm |
87 |
@@ -55,7 +56,7 @@ update_symlinks() { |
88 |
upload() { |
89 |
if [[ ${nonetwork} == 0 ]]; then |
90 |
echo Uploading "$@" |
91 |
- rsync -e 'ssh -i /root/.ssh/id_ed25519 -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" arm@××××××××××××××××××××××.org: |
92 |
+ rsync -e 'ssh -i /root/.ssh/id_ed25519 -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" ${UPLOAD_USER}@releng-incoming.gentoo.org: |
93 |
else |
94 |
echo Would now upload "$@" |
95 |
ls -l $@ |
96 |
|
97 |
diff --git a/tools/catalyst-auto-arm64.conf b/tools/catalyst-auto-arm64.conf |
98 |
index e143ebbb..14211166 100644 |
99 |
--- a/tools/catalyst-auto-arm64.conf |
100 |
+++ b/tools/catalyst-auto-arm64.conf |
101 |
@@ -1,6 +1,7 @@ |
102 |
# This is the config file for the catalyst-auto script. It should be pretty |
103 |
# self-explanatory. |
104 |
|
105 |
+UPLOAD_USER=arm64 |
106 |
SPECS_DIR=${REPO_DIR}/releases/specs/arm64 |
107 |
SUBARCH=`grep subarch $SPECS_DIR/stage1.spec | awk '{print $2}'` |
108 |
|
109 |
@@ -27,7 +28,7 @@ update_symlinks() { |
110 |
} |
111 |
|
112 |
upload() { |
113 |
- rsync -e 'ssh -i /root/.ssh/id_ed25519 -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" arm64@××××××××××××××××××××××.org: |
114 |
+ rsync -e 'ssh -i /root/.ssh/id_ed25519 -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" ${UPLOAD_USER}@releng-incoming.gentoo.org: |
115 |
} |
116 |
|
117 |
post_build() { |
118 |
|
119 |
diff --git a/tools/catalyst-auto-hppa.conf b/tools/catalyst-auto-hppa.conf |
120 |
index 967985b6..135b188c 100644 |
121 |
--- a/tools/catalyst-auto-hppa.conf |
122 |
+++ b/tools/catalyst-auto-hppa.conf |
123 |
@@ -1,6 +1,7 @@ |
124 |
# This is the config file for the catalyst-auto script. It should be pretty |
125 |
# self-explanatory. |
126 |
|
127 |
+UPLOAD_USER=hppa |
128 |
SPECS_DIR=${REPO_DIR}/releases/specs/hppa |
129 |
|
130 |
SETS="hppa1_1 hppa2_0 hppa_livecd hppa_netboot" |
131 |
@@ -33,7 +34,7 @@ update_symlinks() { |
132 |
} |
133 |
|
134 |
upload() { |
135 |
- rsync -e 'ssh -i /root/.ssh/buildsync.key -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" hppa@××××××××××××××××××××××.org: |
136 |
+ rsync -e 'ssh -i /root/.ssh/buildsync.key -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" ${UPLOAD_USER}@releng-incoming.gentoo.org: |
137 |
} |
138 |
|
139 |
post_build() { |
140 |
|
141 |
diff --git a/tools/catalyst-auto-ia64.conf b/tools/catalyst-auto-ia64.conf |
142 |
index 0bc6e0af..2b495a73 100644 |
143 |
--- a/tools/catalyst-auto-ia64.conf |
144 |
+++ b/tools/catalyst-auto-ia64.conf |
145 |
@@ -1,6 +1,7 @@ |
146 |
# This is the config file for the catalyst-auto script. It should be pretty |
147 |
# self-explanatory. |
148 |
|
149 |
+UPLOAD_USER=ia64 |
150 |
SPECS_DIR=${REPO_DIR}/releases/specs/ia64 |
151 |
|
152 |
SPECS="stage1.spec stage3.spec" |
153 |
@@ -26,7 +27,7 @@ update_symlinks() { |
154 |
} |
155 |
|
156 |
upload() { |
157 |
- rsync -e 'ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" ia64@××××××××××××××××××××××.org: |
158 |
+ rsync -e 'ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" ${UPLOAD_USER}@releng-incoming.gentoo.org: |
159 |
} |
160 |
|
161 |
post_build() { |
162 |
|
163 |
diff --git a/tools/catalyst-auto-ppc.conf b/tools/catalyst-auto-ppc.conf |
164 |
index 4935739a..be7a7fc3 100644 |
165 |
--- a/tools/catalyst-auto-ppc.conf |
166 |
+++ b/tools/catalyst-auto-ppc.conf |
167 |
@@ -1,6 +1,7 @@ |
168 |
# This is the config file for the catalyst-auto script. It should be pretty |
169 |
# self-explanatory. |
170 |
|
171 |
+UPLOAD_USER=ppc |
172 |
SPECS_DIR=${REPO_DIR}/releases/specs/ppc |
173 |
|
174 |
SPECS="ppc32/stage1.spec ppc32/stage3.spec ppc64/stage1.spec ppc64/stage3.spec" |
175 |
@@ -32,7 +33,7 @@ update_symlinks() { |
176 |
} |
177 |
|
178 |
upload() { |
179 |
- rsync -e 'ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" ppc@××××××××××××××××××××××.org: |
180 |
+ rsync -e 'ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" ${UPLOAD_USER}@releng-incoming.gentoo.org: |
181 |
} |
182 |
|
183 |
post_build() { |
184 |
|
185 |
diff --git a/tools/catalyst-auto-ppc64le.conf b/tools/catalyst-auto-ppc64le.conf |
186 |
index 73f2d1c3..5e1563b8 100644 |
187 |
--- a/tools/catalyst-auto-ppc64le.conf |
188 |
+++ b/tools/catalyst-auto-ppc64le.conf |
189 |
@@ -1,6 +1,7 @@ |
190 |
# This is the config file for the catalyst-auto script. It should be pretty |
191 |
# self-explanatory. |
192 |
|
193 |
+UPLOAD_USER=ppc |
194 |
SPECS_DIR=${REPO_DIR}/releases/specs/ppc/ppc64le |
195 |
|
196 |
SPECS="stage1.spec stage3.spec" |
197 |
@@ -33,7 +34,7 @@ update_symlinks() { |
198 |
} |
199 |
|
200 |
upload() { |
201 |
- rsync -e 'ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" ppc@××××××××××××××××××××××.org: |
202 |
+ rsync -e 'ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" ${UPLOAD_USER}@releng-incoming.gentoo.org: |
203 |
} |
204 |
|
205 |
post_build() { |
206 |
|
207 |
diff --git a/tools/catalyst-auto-qemu-arm.conf b/tools/catalyst-auto-qemu-arm.conf |
208 |
index a6d9cdd8..2d19a9b9 100644 |
209 |
--- a/tools/catalyst-auto-qemu-arm.conf |
210 |
+++ b/tools/catalyst-auto-qemu-arm.conf |
211 |
@@ -1,6 +1,8 @@ |
212 |
# This is the config file for the catalyst-auto script. It should be pretty |
213 |
# self-explanatory. |
214 |
|
215 |
+UPLOAD_USER=arm |
216 |
+ |
217 |
host=$(hostname) |
218 |
|
219 |
SPECS_DIR=${REPO_DIR}/releases/specs-qemu/arm |
220 |
@@ -55,7 +57,7 @@ update_symlinks() { |
221 |
upload() { |
222 |
if [[ ${nonetwork} == 0 ]]; then |
223 |
echo Uploading "$@" |
224 |
- rsync -e 'ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" arm@××××××××××××××××××××××.org: |
225 |
+ rsync -e 'ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" ${UPLOAD_USER}@releng-incoming.gentoo.org: |
226 |
else |
227 |
echo Would now upload "$@" |
228 |
ls -l $@ |
229 |
|
230 |
diff --git a/tools/catalyst-auto-qemu-riscv.conf b/tools/catalyst-auto-qemu-riscv.conf |
231 |
index 89c40b79..572d9d22 100644 |
232 |
--- a/tools/catalyst-auto-qemu-riscv.conf |
233 |
+++ b/tools/catalyst-auto-qemu-riscv.conf |
234 |
@@ -1,6 +1,8 @@ |
235 |
# This is the config file for the catalyst-auto script. It should be pretty |
236 |
# self-explanatory. |
237 |
|
238 |
+UPLOAD_USER=riscv |
239 |
+ |
240 |
host=$(hostname) |
241 |
|
242 |
SPECS_DIR=${REPO_DIR}/releases/specs-qemu/riscv |
243 |
@@ -42,7 +44,7 @@ update_symlinks() { |
244 |
upload() { |
245 |
if [[ ${nonetwork} == 0 ]]; then |
246 |
echo Uploading "$@" |
247 |
- rsync -e 'ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" riscv@××××××××××××××××××××××.org: |
248 |
+ rsync -e 'ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" ${UPLOAD_USER}@releng-incoming.gentoo.org: |
249 |
fi |
250 |
} |
251 |
|
252 |
|
253 |
diff --git a/tools/catalyst-auto-s390.conf b/tools/catalyst-auto-s390.conf |
254 |
index ed84923a..c8dbf832 100644 |
255 |
--- a/tools/catalyst-auto-s390.conf |
256 |
+++ b/tools/catalyst-auto-s390.conf |
257 |
@@ -1,6 +1,7 @@ |
258 |
# This is the config file for the catalyst-auto script. It should be pretty |
259 |
# self-explanatory. |
260 |
|
261 |
+UPLOAD_USER=s390 |
262 |
SPECS_DIR=${REPO_DIR}/releases/specs/s390/s390 |
263 |
SUBARCH=`grep subarch $SPECS_DIR/stage1.spec | awk '{print $2}'` |
264 |
|
265 |
@@ -26,7 +27,7 @@ update_symlinks() { |
266 |
} |
267 |
|
268 |
upload() { |
269 |
- rsync -e 'ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" s390@××××××××××××××××××××××.org: |
270 |
+ rsync -e 'ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" ${UPLOAD_USER}@releng-incoming.gentoo.org: |
271 |
} |
272 |
|
273 |
post_build() { |
274 |
|
275 |
diff --git a/tools/catalyst-auto-s390x.conf b/tools/catalyst-auto-s390x.conf |
276 |
index 8bdb8993..c5a32dff 100644 |
277 |
--- a/tools/catalyst-auto-s390x.conf |
278 |
+++ b/tools/catalyst-auto-s390x.conf |
279 |
@@ -1,6 +1,7 @@ |
280 |
# This is the config file for the catalyst-auto script. It should be pretty |
281 |
# self-explanatory. |
282 |
|
283 |
+UPLOAD_USER=s390 |
284 |
SPECS_DIR=${REPO_DIR}/releases/specs/s390/s390x |
285 |
SUBARCH=`grep subarch $SPECS_DIR/stage1.spec | awk '{print $2}'` |
286 |
|
287 |
@@ -26,7 +27,7 @@ update_symlinks() { |
288 |
} |
289 |
|
290 |
upload() { |
291 |
- rsync -e 'ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" s390@××××××××××××××××××××××.org: |
292 |
+ rsync -e 'ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" ${UPLOAD_USER}@releng-incoming.gentoo.org: |
293 |
} |
294 |
|
295 |
post_build() { |
296 |
|
297 |
diff --git a/tools/catalyst-auto-sparc64.conf b/tools/catalyst-auto-sparc64.conf |
298 |
index 94723124..cabf9293 100644 |
299 |
--- a/tools/catalyst-auto-sparc64.conf |
300 |
+++ b/tools/catalyst-auto-sparc64.conf |
301 |
@@ -1,6 +1,7 @@ |
302 |
# This is the config file for the catalyst-auto script. It should be pretty |
303 |
# self-explanatory. |
304 |
|
305 |
+UPLOAD_USER=sparc |
306 |
SPECS_DIR=${REPO_DIR}/releases/specs/sparc |
307 |
|
308 |
SPECS="sparc/stage1.spec sparc/stage3.spec sparc/systemd-stage1.spec sparc/systemd-stage3.spec sparc64/stage1.spec sparc64/stage3.spec sparc64/systemd-stage1.spec sparc64/systemd-stage3.spec" |
309 |
@@ -28,7 +29,7 @@ update_symlinks() { |
310 |
} |
311 |
|
312 |
upload() { |
313 |
- rsync -e 'ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" sparc@××××××××××××××××××××××.org: |
314 |
+ rsync -e 'ssh -i /root/.ssh/id_rsa -o UserKnownHostsFile=/dev/null -o VerifyHostKeyDNS=yes -o StrictHostKeyChecking=no' "$@" ${UPLOAD_USER}@releng-incoming.gentoo.org: |
315 |
} |
316 |
|
317 |
post_build() { |
318 |
|
319 |
diff --git a/tools/catalyst-auto-x86.conf b/tools/catalyst-auto-x86.conf |
320 |
index e28131fc..1616e194 100644 |
321 |
--- a/tools/catalyst-auto-x86.conf |
322 |
+++ b/tools/catalyst-auto-x86.conf |
323 |
@@ -1,7 +1,7 @@ |
324 |
# This is the config file for the catalyst-auto script. It should be pretty |
325 |
# self-explanatory. |
326 |
|
327 |
-ARCH="x86" |
328 |
+UPLOAD_USER=x86 |
329 |
host=$(hostname) |
330 |
|
331 |
source /etc/catalyst/release/build.env |
332 |
@@ -72,8 +72,8 @@ post_build() { |
333 |
DEST_HARDENED=${BUILD_DESTDIR_BASE}/hardened |
334 |
;; |
335 |
*) |
336 |
- DEST_DEFAULT=${ARCH}@releng-incoming.gentoo.org:${BUILD_DESTDIR_BASE} |
337 |
- DEST_HARDENED=${ARCH}@releng-incoming.gentoo.org:${BUILD_DESTDIR_BASE}/hardened |
338 |
+ DEST_DEFAULT=${UPLOAD_USER}@releng-incoming.gentoo.org:${BUILD_DESTDIR_BASE} |
339 |
+ DEST_HARDENED=${UPLOAD_USER}@releng-incoming.gentoo.org:${BUILD_DESTDIR_BASE}/hardened |
340 |
;; |
341 |
esac |