Skip to content

Commit 6261822

Browse files
loongarch-bootstrap: upload bootstrap-stage1
1 parent 47bafb7 commit 6261822

File tree

1 file changed

+254
-0
lines changed

1 file changed

+254
-0
lines changed

loongarch-bootstrap

Lines changed: 254 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,254 @@
1+
#!/bin/bash
2+
3+
export TARGETDIR=/mnt/aosc
4+
mkdir -pv /tmp/work
5+
6+
cd /tmp/work
7+
echo "------ar aosc-aaa_8.1.0-0_loongarch64.deb to /tmp/work------"
8+
ar -x /clfs-test-bak/clfs-test/debs/a/aosc-aaa_8.1.0-0_loongarch64.deb
9+
cd $TARGETDIR
10+
echo "------extracting data.tar.xz to $TARGETDIR------"
11+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
12+
13+
cd /tmp/work
14+
wget https://repo.aosc.io/debs/pool/stable/main/c/ca-certs_20201201-1_noarch.deb
15+
echo "------ar ca-certs_20201201-1_noarch.deb to /tmp/work------"
16+
ar -x ca-certs_20201201-1_noarch.deb
17+
cd $TARGETDIR
18+
echo "------extracting data.tar.xz to TARGETDIR------"
19+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
20+
21+
cd /tmp/work
22+
echo "------ar tar_1.32-1_loongarch64.deb to /tmp/work------"
23+
ar -x /clfs-test-bak/clfs-test/debs/t/tar_1.32-1_loongarch64.deb
24+
cd $TARGETDIR
25+
echo "------extracting data.tar.xz to $TARGETDIR------"
26+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
27+
28+
cd /tmp/work
29+
echo "------ar diffutils_3.7-5_loongarch64.deb to /tmp/work------"
30+
ar -x /clfs-test-bak/clfs-test/debs/d/diffutils_3.7-5_loongarch64.deb
31+
cd $TARGETDIR
32+
echo "------extracting data.tar.xz to $TARGETDIR------"
33+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
34+
35+
cd /tmp/work
36+
echo "------ar coreutils_8.31-3_loongarch64.deb to /tmp/work------"
37+
ar -x /clfs-test-bak/clfs-test/debs/c/coreutils_8.31-3_loongarch64.deb
38+
cd $TARGETDIR
39+
echo "------extracting data.tar.xz to $TARGETDIR------"
40+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
41+
42+
cd /tmp/work
43+
echo "------ar apt_2.3.8-0_loongarch64.deb to /tmp/work------"
44+
ar -x /clfs-test-bak/clfs-test/debs/a/apt_2.3.8-0_loongarch64.deb
45+
cd $TARGETDIR
46+
echo "------extracting data.tar.xz to $TARGETDIR------"
47+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
48+
49+
cd /tmp/work
50+
echo "------ar dpkg_1.20.9-1_loongarch64.deb to /tmp/work------"
51+
ar -x /clfs-test-bak/clfs-test/debs/d/dpkg_1.20.9-1_loongarch64.deb
52+
cd $TARGETDIR
53+
echo "------extracting data.tar.xz to $TARGETDIR------"
54+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
55+
56+
cd /tmp/work
57+
echo "------ar xz_5.2.5-1_loongarch64.deb to /tmp/work------"
58+
ar -x /clfs-test-bak/clfs-test/debs/x/xz_5.2.5-1_loongarch64.deb
59+
cd $TARGETDIR
60+
echo "------extracting data.tar.xz to $TARGETDIR------"
61+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
62+
63+
cd /tmp/work
64+
echo "------ar zlib_1.2.11-4_loongarch64.deb to /tmp/work------"
65+
ar -x /clfs-test-bak/clfs-test/debs/z/zlib_1.2.11-4_loongarch64.deb
66+
cd $TARGETDIR
67+
echo "------extracting data.tar.xz to $TARGETDIR------"
68+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
69+
70+
cd /tmp/work
71+
echo "------ar zstd_1.5.0-0_loongarch64.deb to /tmp/work------"
72+
ar -x /clfs-test-bak/clfs-test/debs/z/zstd_1.5.0-0_loongarch64.deb
73+
cd $TARGETDIR
74+
echo "------extracting data.tar.xz to $TARGETDIR------"
75+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
76+
77+
cd /tmp/work
78+
echo "------ar bzip2_1.0.8-2_loongarch64.deb to /tmp/work------"
79+
ar -x /clfs-test-bak/clfs-test/debs/b/bzip2_1.0.8-2_loongarch64.deb
80+
cd $TARGETDIR
81+
echo "------extracting data.tar.xz to $TARGETDIR------"
82+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
83+
84+
cd /tmp/work
85+
echo "------ar lz4_1.9.2-1_loongarch64.deb to /tmp/work------"
86+
ar -x /clfs-test-bak/clfs-test/debs/l/lz4_1.9.2-1_loongarch64.deb
87+
cd $TARGETDIR
88+
echo "------extracting data.tar.xz to $TARGETDIR------"
89+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
90+
91+
cd /tmp/work
92+
echo "------ar gnupg_2.2.23-1_loongarch64.deb to /tmp/work------"
93+
ar -x /clfs-test-bak/clfs-test/debs/g/gnupg_2.2.23-1_loongarch64.deb
94+
cd $TARGETDIR
95+
echo "------extracting data.tar.xz to $TARGETDIR------"
96+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
97+
98+
cd /tmp/work
99+
echo "------ar bash_5.1.8-0_loongarch64.deb to /tmp/work------"
100+
ar -x /clfs-test-bak/clfs-test/debs/b/bash_5.1.8-0_loongarch64.deb
101+
cd $TARGETDIR
102+
echo "------extracting data.tar.xz to $TARGETDIR------"
103+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
104+
105+
cd /tmp/work
106+
echo "------ar glibc_2.28-0_loongarch64.deb to /tmp/work------"
107+
ar -x /clfs-test-bak/clfs-test/debs/g/glibc_2.28-0_loongarch64.deb
108+
cd $TARGETDIR
109+
echo "------extracting data.tar.xz to $TARGETDIR------"
110+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
111+
112+
cd /tmp/work
113+
echo "------ar readline_8.1.1-0_loongarch64.deb to /tmp/work------"
114+
ar -x /clfs-test-bak/clfs-test/debs/r/readline_8.1.1-0_loongarch64.deb
115+
cd $TARGETDIR
116+
echo "------extracting data.tar.xz to $TARGETDIR------"
117+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
118+
119+
cd /tmp/work
120+
echo "------ar ncurses_6.2-4_loongarch64.deb to /tmp/work------"
121+
ar -x /clfs-test-bak/clfs-test/debs/n/ncurses_6.2-4_loongarch64.deb
122+
cd $TARGETDIR
123+
echo "------extracting data.tar.xz to $TARGETDIR------"
124+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
125+
126+
cd /tmp/work
127+
echo "------ar gcc-runtime_8.3.0-0_loongarch64.deb to /tmp/work------"
128+
ar -x /clfs-test-bak/clfs-test/debs/g/gcc-runtime_8.3.0-0_loongarch64.deb
129+
cd $TARGETDIR
130+
echo "------extracting data.tar.xz to $TARGETDIR------"
131+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
132+
133+
cd /tmp/work
134+
echo "------ar systemd_248.3-1_loongarch64.deb to /tmp/work------"
135+
ar -x /clfs-test-bak/clfs-test/debs/s/systemd_248.3-1_loongarch64.deb
136+
cd $TARGETDIR
137+
echo "------extracting data.tar.xz to $TARGETDIR------"
138+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
139+
140+
cd /tmp/work
141+
echo "------ar libgcrypt_1.9.1-0_loongarch64.deb to /tmp/work------"
142+
ar -x /clfs-test-bak/clfs-test/debs/libg/libgcrypt_1.9.1-0_loongarch64.deb
143+
cd $TARGETDIR
144+
echo "------extracting data.tar.xz to $TARGETDIR------"
145+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
146+
147+
cd /tmp/work
148+
echo "------ar libgpg-error_1.41-0_loongarch64.deb to /tmp/work------"
149+
ar -x /clfs-test-bak/clfs-test/debs/libg/libgpg-error_1.41-0_loongarch64.deb
150+
cd $TARGETDIR
151+
echo "------extracting data.tar.xz to $TARGETDIR------"
152+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
153+
154+
cd /tmp/work
155+
echo "------ar xxhash_0.8.0-0_loongarch64.deb to /tmp/work------"
156+
ar -x /clfs-test-bak/clfs-test/debs/x/xxhash_0.8.0-0_loongarch64.deb
157+
cd $TARGETDIR
158+
echo "------extracting data.tar.xz to $TARGETDIR------"
159+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
160+
161+
cd /tmp/work
162+
echo "------ar libcap_2.43-2_loongarch64.deb to /tmp/work------"
163+
ar -x /clfs-test-bak/clfs-test/debs/libc/libcap_2.43-2_loongarch64.deb
164+
cd $TARGETDIR
165+
echo "------extracting data.tar.xz to $TARGETDIR------"
166+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
167+
168+
cd /tmp/work
169+
echo "------ar libseccomp_2.5.1-1_loongarch64.deb to /tmp/work------"
170+
ar -x /clfs-test-bak/clfs-test/debs/libs/libseccomp_2.5.1-1_loongarch64.deb
171+
cd $TARGETDIR
172+
echo "------extracting data.tar.xz to $TARGETDIR------"
173+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
174+
175+
cd /tmp/work
176+
echo "------ar gnutls_3.6.15-1_loongarch64.deb to /tmp/work------"
177+
ar -x /clfs-test-bak/clfs-test/debs/g/gnutls_3.6.15-1_loongarch64.deb
178+
cd $TARGETDIR
179+
echo "------extracting data.tar.xz to $TARGETDIR------"
180+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
181+
182+
cd /tmp/work
183+
echo "------ar p11-kit_0.23.18.1-1_loongarch64.deb to /tmp/work------"
184+
ar -x /clfs-test-bak/clfs-test/debs/p/p11-kit_0.23.18.1-1_loongarch64.deb
185+
cd $TARGETDIR
186+
echo "------extracting data.tar.xz to $TARGETDIR------"
187+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
188+
189+
cd /tmp/work
190+
echo "------ar libunistring_0.9.10-3_loongarch64.deb to /tmp/work------"
191+
ar -x /clfs-test-bak/clfs-test/debs/libu/libunistring_0.9.10-3_loongarch64.deb
192+
cd $TARGETDIR
193+
echo "------extracting data.tar.xz to $TARGETDIR------"
194+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
195+
196+
cd /tmp/work
197+
echo "------ar libunistring_0.9.10-3_loongarch64.deb to /tmp/work------"
198+
ar -x /clfs-test-bak/clfs-test/debs/libu/libunistring_0.9.10-3_loongarch64.deb
199+
cd $TARGETDIR
200+
echo "------extracting data.tar.xz to $TARGETDIR------"
201+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
202+
203+
cd /tmp/work
204+
echo "------ar libtasn1_4.15.0-2_loongarch64.deb to /tmp/work------"
205+
ar -x /clfs-test-bak/clfs-test/debs/libt/libtasn1_4.15.0-2_loongarch64.deb
206+
cd $TARGETDIR
207+
echo "------extracting data.tar.xz to $TARGETDIR------"
208+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
209+
210+
cd /tmp/work
211+
echo "------ar nettle_3.7.2-0_loongarch64.deb to /tmp/work------"
212+
ar -x /clfs-test-bak/clfs-test/debs/n/nettle_3.7.2-0_loongarch64.deb
213+
cd $TARGETDIR
214+
echo "------extracting data.tar.xz to $TARGETDIR------"
215+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
216+
217+
cd /tmp/work
218+
echo "------ar gmp_6.2.1-0_loongarch64.deb to /tmp/work------"
219+
ar -x /clfs-test-bak/clfs-test/debs/g/gmp_6.2.1-0_loongarch64.deb
220+
cd $TARGETDIR
221+
echo "------extracting data.tar.xz to $TARGETDIR------"
222+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
223+
224+
cd /tmp/work
225+
echo "------ar libffi_3.2.1-11_loongarch64.deb to /tmp/work------"
226+
ar -x /clfs-test-bak/clfs-test/debs/libf/libffi_3.2.1-11_loongarch64.deb
227+
cd $TARGETDIR
228+
echo "------extracting data.tar.xz to $TARGETDIR------"
229+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
230+
231+
cd /tmp/work
232+
echo "------ar acl_2.2.53-2_loongarch64.deb to /tmp/work------"
233+
ar -x /clfs-test-bak/clfs-test/debs/a/acl_2.2.53-2_loongarch64.deb
234+
cd $TARGETDIR
235+
echo "------extracting data.tar.xz to $TARGETDIR------"
236+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
237+
238+
cd /tmp/work
239+
echo "------ar attr_2.4.48-2_loongarch64.deb to /tmp/work------"
240+
ar -x /clfs-test-bak/clfs-test/debs/a/attr_2.4.48-2_loongarch64.deb
241+
cd $TARGETDIR
242+
echo "------extracting data.tar.xz to $TARGETDIR------"
243+
tar xvf /tmp/work/data.tar.xz -C $TARGETDIR
244+
245+
echo "------wget etc-bootstrap.tar.xz to $TARGETDIR------"
246+
wget https://repo.aosc.io/aosc-repacks/etc-bootstrap.tar.xz
247+
echo "------extracting etc-bootstrap.tar.xz to $TARGETDIR------"
248+
tar xvpf etc-bootstrap.tar.xz -C $TARGETDIR
249+
rm etc-bootstrap.tar.xz
250+
251+
echo "------mkdir for $TARGETDIR/var/lib/dpkg, and create empty dpkg/{status, available}------"
252+
mkdir -p "$TARGETDIR/var/lib/dpkg"
253+
: >"$TARGETDIR/var/lib/dpkg/status"
254+
: >"$TARGETDIR/var/lib/dpkg/available"

0 commit comments

Comments
 (0)