1 |
commit: 16e795ced432de39f65f173a2fe41d08f20d8743 |
2 |
Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 2 19:10:07 2021 +0000 |
4 |
Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 2 19:35:06 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/releng.git/commit/?id=16e795ce |
7 |
|
8 |
x86: copy catalyst-auto config for demeter, move i486 there only so far |
9 |
|
10 |
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org> |
11 |
|
12 |
.../installcd-stage1-openrc.spec} | 4 +- |
13 |
.../installcd-stage2-minimal-openrc.spec} | 6 +-- |
14 |
.../x86/{stage1.spec => i486/stage1-openrc.spec} | 4 +- |
15 |
.../x86/{stage2.spec => i486/stage2-openrc.spec} | 4 +- |
16 |
.../x86/{stage3.spec => i486/stage3-openrc.spec} | 4 +- |
17 |
tools/catalyst-auto-x86-demeter.conf | 63 ++++++++++++++++++++++ |
18 |
tools/catalyst-auto-x86.conf | 4 -- |
19 |
7 files changed, 74 insertions(+), 15 deletions(-) |
20 |
|
21 |
diff --git a/releases/specs/x86/installcd-stage1.spec b/releases/specs/x86/i486/installcd-stage1-openrc.spec |
22 |
similarity index 95% |
23 |
rename from releases/specs/x86/installcd-stage1.spec |
24 |
rename to releases/specs/x86/i486/installcd-stage1-openrc.spec |
25 |
index 7dd5ac62..518820c6 100644 |
26 |
--- a/releases/specs/x86/installcd-stage1.spec |
27 |
+++ b/releases/specs/x86/i486/installcd-stage1-openrc.spec |
28 |
@@ -1,10 +1,10 @@ |
29 |
subarch: i486 |
30 |
-version_stamp: @TIMESTAMP@ |
31 |
+version_stamp: openrc-@TIMESTAMP@ |
32 |
target: livecd-stage1 |
33 |
rel_type: default |
34 |
profile: default/linux/x86/17.0 |
35 |
snapshot: @TIMESTAMP@ |
36 |
-source_subpath: default/stage3-i486-@TIMESTAMP@ |
37 |
+source_subpath: default/stage3-i486-openrc-@TIMESTAMP@ |
38 |
compression_mode: pixz_x |
39 |
portage_confdir: @REPO_DIR@/releases/portage/isos |
40 |
|
41 |
|
42 |
diff --git a/releases/specs/x86/installcd-stage2-minimal.spec b/releases/specs/x86/i486/installcd-stage2-minimal-openrc.spec |
43 |
similarity index 96% |
44 |
rename from releases/specs/x86/installcd-stage2-minimal.spec |
45 |
rename to releases/specs/x86/i486/installcd-stage2-minimal-openrc.spec |
46 |
index 8702a9d5..0b0d878c 100644 |
47 |
--- a/releases/specs/x86/installcd-stage2-minimal.spec |
48 |
+++ b/releases/specs/x86/i486/installcd-stage2-minimal-openrc.spec |
49 |
@@ -1,16 +1,16 @@ |
50 |
subarch: i486 |
51 |
-version_stamp: @TIMESTAMP@ |
52 |
+version_stamp: openrc-@TIMESTAMP@ |
53 |
target: livecd-stage2 |
54 |
rel_type: default |
55 |
profile: default/linux/x86/17.0 |
56 |
snapshot: @TIMESTAMP@ |
57 |
-source_subpath: default/livecd-stage1-i486-@TIMESTAMP@ |
58 |
+source_subpath: default/livecd-stage1-i486-openrc-@TIMESTAMP@ |
59 |
portage_confdir: @REPO_DIR@/releases/portage/isos |
60 |
|
61 |
livecd/bootargs: dokeymap |
62 |
#livecd/cdtar: /usr/share/catalyst/livecd/cdtar/isolinux-elilo-memtest86+-cdtar.tar.bz2 |
63 |
livecd/fstype: squashfs |
64 |
-livecd/iso: install-x86-minimal-@TIMESTAMP@.iso |
65 |
+livecd/iso: install-x86-minimal-openrc-@TIMESTAMP@.iso |
66 |
livecd/type: gentoo-release-minimal |
67 |
livecd/volid: Gentoo x86 @TIMESTAMP@ |
68 |
|
69 |
|
70 |
diff --git a/releases/specs/x86/stage1.spec b/releases/specs/x86/i486/stage1-openrc.spec |
71 |
similarity index 76% |
72 |
rename from releases/specs/x86/stage1.spec |
73 |
rename to releases/specs/x86/i486/stage1-openrc.spec |
74 |
index 598b5e94..32ba9397 100644 |
75 |
--- a/releases/specs/x86/stage1.spec |
76 |
+++ b/releases/specs/x86/i486/stage1-openrc.spec |
77 |
@@ -1,10 +1,10 @@ |
78 |
subarch: i486 |
79 |
target: stage1 |
80 |
-version_stamp: @TIMESTAMP@ |
81 |
+version_stamp: openrc-@TIMESTAMP@ |
82 |
rel_type: default |
83 |
profile: default/linux/x86/17.0 |
84 |
snapshot: @TIMESTAMP@ |
85 |
-source_subpath: default/stage3-i486-latest |
86 |
+source_subpath: default/stage3-i486-openrc-latest |
87 |
compression_mode: pixz_x |
88 |
update_seed: yes |
89 |
update_seed_command: --update --deep --newuse @world |
90 |
|
91 |
diff --git a/releases/specs/x86/stage2.spec b/releases/specs/x86/i486/stage2-openrc.spec |
92 |
similarity index 69% |
93 |
rename from releases/specs/x86/stage2.spec |
94 |
rename to releases/specs/x86/i486/stage2-openrc.spec |
95 |
index db2433fe..76285e2c 100644 |
96 |
--- a/releases/specs/x86/stage2.spec |
97 |
+++ b/releases/specs/x86/i486/stage2-openrc.spec |
98 |
@@ -1,10 +1,10 @@ |
99 |
subarch: i486 |
100 |
target: stage2 |
101 |
-version_stamp: @TIMESTAMP@ |
102 |
+version_stamp: openrc-@TIMESTAMP@ |
103 |
rel_type: default |
104 |
profile: default/linux/x86/17.0 |
105 |
snapshot: @TIMESTAMP@ |
106 |
-source_subpath: default/stage1-i486-@TIMESTAMP@ |
107 |
+source_subpath: default/stage1-i486-openrc-@TIMESTAMP@ |
108 |
compression_mode: pixz_x |
109 |
portage_confdir: @REPO_DIR@/releases/portage/stages |
110 |
portage_prefix: releng |
111 |
|
112 |
diff --git a/releases/specs/x86/stage3.spec b/releases/specs/x86/i486/stage3-openrc.spec |
113 |
similarity index 69% |
114 |
rename from releases/specs/x86/stage3.spec |
115 |
rename to releases/specs/x86/i486/stage3-openrc.spec |
116 |
index b9e685f9..30db8c5f 100644 |
117 |
--- a/releases/specs/x86/stage3.spec |
118 |
+++ b/releases/specs/x86/i486/stage3-openrc.spec |
119 |
@@ -1,10 +1,10 @@ |
120 |
subarch: i486 |
121 |
target: stage3 |
122 |
-version_stamp: @TIMESTAMP@ |
123 |
+version_stamp: openrc-@TIMESTAMP@ |
124 |
rel_type: default |
125 |
profile: default/linux/x86/17.0 |
126 |
snapshot: @TIMESTAMP@ |
127 |
-source_subpath: default/stage2-i486-@TIMESTAMP@ |
128 |
+source_subpath: default/stage2-i486-openrc-@TIMESTAMP@ |
129 |
compression_mode: pixz_x |
130 |
portage_confdir: @REPO_DIR@/releases/portage/stages |
131 |
portage_prefix: releng |
132 |
|
133 |
diff --git a/tools/catalyst-auto-x86-demeter.conf b/tools/catalyst-auto-x86-demeter.conf |
134 |
new file mode 100644 |
135 |
index 00000000..522ccc26 |
136 |
--- /dev/null |
137 |
+++ b/tools/catalyst-auto-x86-demeter.conf |
138 |
@@ -0,0 +1,63 @@ |
139 |
+# This is the config file for the catalyst-auto script. It should be pretty |
140 |
+# self-explanatory. |
141 |
+ |
142 |
+UPLOAD_USER=x86 |
143 |
+UPLOAD_KEY=/root/.ssh/id_rsa |
144 |
+host=$(hostname) |
145 |
+ |
146 |
+ARCH="x86" |
147 |
+TYPE="auto" |
148 |
+ |
149 |
+SPECS_DIR=${REPO_DIR}/releases/specs/x86 |
150 |
+ |
151 |
+SETS=" |
152 |
+ i486_openrc |
153 |
+" |
154 |
+ |
155 |
+SET_i486_openrc_SPECS="i486/stage1-openrc.spec i486/stage2-openrc.spec i486/stage3-openrc.spec" |
156 |
+SET_i486_openrc_OPTIONAL_SPECS="i486/installcd-stage1-openrc.spec i486/installcd-stage2-minimal-openrc.spec" |
157 |
+ |
158 |
+ |
159 |
+KCONFIG_DIR=${REPO_DIR}/releases/kconfig/x86 |
160 |
+ |
161 |
+EXTENSIONS="@(.tar.xz|.tar.bz2|.tar.gz|.tar|.sfs)" |
162 |
+ |
163 |
+update_symlinks() { |
164 |
+ # Symlink the latest stages3 to build from |
165 |
+ for d in ${BUILD_SRCDIR_BASE}/{default,hardened} ; do |
166 |
+ pushd "${d}" >/dev/null || exit |
167 |
+ shopt -s extglob |
168 |
+ for f in $(ls stage3*${EXTENSIONS} | grep -v latest | give_latest_from_dates ) ; do |
169 |
+ # 20yymmddThhmmssZ |
170 |
+ # 20yymmddhhmmss |
171 |
+ # 20yymmdd |
172 |
+ # 20yy.n |
173 |
+ of=$(perl -p \ |
174 |
+ -e 's/20\d{6}T\d{6}Z/latest/g;' \ |
175 |
+ -e 's/20\d{6}\d{6}/latest/g;' \ |
176 |
+ -e 's/20\d{6}/latest/g;' \ |
177 |
+ -e 's/20\d{2}\.\d{2}/latest/g;' \ |
178 |
+ <<<"$f") |
179 |
+ ln -svf "$f" "$of" |
180 |
+ done |
181 |
+ popd >/dev/null || exit |
182 |
+ done |
183 |
+} |
184 |
+ |
185 |
+post_build() { |
186 |
+ local set=$1 spec=$2 |
187 |
+ |
188 |
+ pushd "${BUILD_SRCDIR_BASE}"/default >/dev/null || exit |
189 |
+ UPLOAD_DEST=${BUILD_DESTDIR_BASE} |
190 |
+ case ${spec} in |
191 |
+ i486/stage3-openrc.spec) |
192 |
+ upload stage3-i486-openrc-${TIMESTAMP}.tar.xz* |
193 |
+ ;; |
194 |
+ i486/installcd-stage2-minimal-openrc.spec) |
195 |
+ upload install-x86-minimal-openrc-${TIMESTAMP}.iso* |
196 |
+ ;; |
197 |
+ esac |
198 |
+ popd >/dev/null || exit |
199 |
+} |
200 |
+ |
201 |
+# vim:ft=sh: |
202 |
|
203 |
diff --git a/tools/catalyst-auto-x86.conf b/tools/catalyst-auto-x86.conf |
204 |
index cee289e4..d63c14c8 100644 |
205 |
--- a/tools/catalyst-auto-x86.conf |
206 |
+++ b/tools/catalyst-auto-x86.conf |
207 |
@@ -12,15 +12,11 @@ source /etc/catalyst/release/build.env |
208 |
SPECS_DIR=${REPO_DIR}/releases/specs/x86 |
209 |
|
210 |
SETS=" |
211 |
- i486 |
212 |
i686 |
213 |
i686_systemd |
214 |
hardened |
215 |
" |
216 |
|
217 |
-SET_i486_SPECS="stage1.spec stage2.spec stage3.spec" |
218 |
-SET_i486_OPTIONAL_SPECS="installcd-stage1.spec installcd-stage2-minimal.spec" |
219 |
- |
220 |
SET_i686_SPECS="i686/stage1.spec i686/stage2.spec i686/stage3.spec" |
221 |
|
222 |
SET_i686_systemd_SPECS="i686/stage1-systemd.spec i686/stage2-systemd.spec i686/stage3-systemd.spec" |