diff options
Diffstat (limited to 'create_dual.sh')
-rwxr-xr-x | create_dual.sh | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/create_dual.sh b/create_dual.sh index b742e12..51020a8 100755 --- a/create_dual.sh +++ b/create_dual.sh @@ -6,17 +6,27 @@ 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/hd*.img +rm -vrf $HOME/build_bcd/build/$NAMER-$TAGS-x86_64/x86_64/install/images/hd*.img 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 @@ -40,7 +50,11 @@ do 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' \ @@ -48,7 +62,7 @@ genisoimage -f -r -J -hide-rr-moved -nobak -cache-inodes -no-emul-boot -boot-loa -p 'Mandriva-Linux BCD' \ -volset 'Mandriva Linux - MES5 - DUAL CD' \ -V 'MES5-DUAL' \ - -o '/home/builduser/build_bcd/iso/$NAMER-5.2/$NAMER.iso' \ + -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/ @@ -61,3 +75,4 @@ cat $HOME/build_bcd/build/$NAMER-$TAGS/x86_64/pkg-*.idx >> $HOME/build_bcd/iso/$ } du -shL $HOME/build_bcd/build/$NAMER-$TAGS/ +create_iso |