1 |
#!/bin/sh |
2 |
|
3 |
[ -f cdrom.image/updates/anaconda ] && chmod a+rx cdrom.image/updates/anaconda |
4 |
|
5 |
chmod -R a+rX cdrom.image |
6 |
|
7 |
for img in product updates |
8 |
do |
9 |
/usr/bin/mkcramfs \ |
10 |
$(pwd)/cdrom.image/$img \ |
11 |
$(pwd)/cdrom.image/CentOS/base/$img.img |
12 |
done |
13 |
|
14 |
PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/genhdlist \ |
15 |
--withnumbers \ |
16 |
$(pwd)/cdrom.image/ |
17 |
|
18 |
PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/pkgorder \ |
19 |
$(pwd)/cdrom.image \ |
20 |
i386 > pkgorder |
21 |
|
22 |
PYTHONPATH=/usr/lib/anaconda/ /usr/lib/anaconda-runtime/genhdlist \ |
23 |
--withnumbers \ |
24 |
--fileorder pkgorder \ |
25 |
$(pwd)/cdrom.image/ |
26 |
|
27 |
# That's it. |