blob: 94829b1aa4f3db92a9712696e90c766d08d6ec32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
#!/bin/sh +xv
TAGS=mes5
NAMER="mandriva-linux-corporate-DUAL"
./bcd.pl dual.xml all copy noiso
./bcd.pl dual64.xml all copy noiso
echo "- removing some files in the installer to get some more space"
rm -vf $HOME/build_bcd/build/$NAMER-$TAGS-i586/i586/install/images/boot.iso
rm -vf $HOME/build_bcd/build/$NAMER-$TAGS-x86_64/x86_64/install/images/boot.iso
rm -vf $HOME/build_bcd/build/$NAMER-$TAGS-i586/i586/isolinux/alt1
rm -vf $HOME/build_bcd/build/$NAMER-$TAGS-x86_64/x86_64/isolinux/alt1
rm -vrf $HOME/build_bcd/build/$NAMER-$TAGS-i586/i586/install/images
rm -vrf $HOME/build_bcd/build/$NAMER-$TAGS-x86_64/x86_64/install/images
rm -vrf $HOME/build_bcd/build/$NAMER-$TAGS-i586/i586/install/images/alternatives
rm -vrf $HOME/build_bcd/build/$NAMER-$TAGS-i586/i586/install/images/*2.6.33*
rm -vrf $HOME/build_bcd/build/$NAMER-$TAGS-x86_64/x86_64/install/images/alternatives
rm -vrf $HOME/build_bcd/build/$NAMER-$TAGS-x86_64/x86_64/install/images/*2.6.33*
sync
echo "- Checking whole system space"
du -sh $HOME/build_bcd/build/$NAMER-$TAGS-i586/i586
du -sh $HOME/build_bcd/build/$NAMER-$TAGS-x86_64/x86_64
echo "ENTER twice to continue"
#read
#read
rm -rf $HOME/build_bcd/build/$NAMER-$TAGS
rm -rvf $HOME/build_bcd/iso/$NAMER-$TAGS
mkdir -p $HOME/build_bcd/build/$NAMER-$TAGS
mkdir -p $HOME/build_bcd/iso/$NAMER-$TAGS
cp -af $HOME/build_bcd/build/$NAMER-$TAGS-i586/i586 $HOME/build_bcd/build/$NAMER-$TAGS
cp -af $HOME/build_bcd/build/$NAMER-$TAGS-x86_64/x86_64 $HOME/build_bcd/build/$NAMER-$TAGS
cd $HOME/build_bcd/build/$NAMER-$TAGS/x86_64/media/main
for i in *noarch.rpm
do
if [ -f "../../../i586/media/main/$i" ];then
echo $i
echo "erase package $i"
rm -vf $i
echo "link with the i586 one"
ln -sf ../../../i586/media/main/$i .
else
echo "no ../../../i586/media/main/$i package"
fi
done
/home/builduser/mes5_respin/resign_rpm_by_path.pl $HOME/build_bcd/build/$NAMER-$TAGS/i586/media/main/
/home/builduser/mes5_respin/resign_rpm_by_path.pl $HOME/build_bcd/build/$NAMER-$TAGS/x86_64/media/main/
create_iso() {
mkdir -p /home/builduser/build_bcd/iso/$NAMER-5.2/
genisoimage -f -r -J -hide-rr-moved -nobak -cache-inodes -no-emul-boot -boot-load-size 4 \
-A 'Mandriva Linux - MES5' \
-publisher 'Mandriva' \
-sysid 'Mandriva Linux' \
-p 'Mandriva-Linux BCD' \
-volset 'Mandriva Linux - MES5 - DUAL CD' \
-V 'MES5-DUAL' \
-o "/home/builduser/build_bcd/iso/$NAMER-5.2/$NAMER.iso" \
-b i586/isolinux/isolinux.bin \
-boot-info-table \
$HOME/build_bcd/build/$NAMER-$TAGS/
cd $HOME/build_bcd/iso/$NAMER-$TAGS/
md5sum *.iso > $NAMER.iso.md5
sha1sum *.iso > $NAMER.iso.sha1
cat $HOME/build_bcd/build/$NAMER-$TAGS/i586/pkg-*.idx > $HOME/build_bcd/iso/$NAMER-$TAGS/$NAMER.idx
cat $HOME/build_bcd/build/$NAMER-$TAGS/x86_64/pkg-*.idx >> $HOME/build_bcd/iso/$NAMER-$TAGS/$NAMER.idx
}
du -shL $HOME/build_bcd/build/$NAMER-$TAGS/
create_iso
|