aboutsummaryrefslogtreecommitdiffstats
path: root/create_dvd.sh
blob: 97043dcb0e8b30decef59e702ed656fb4651fb3a (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
#!/bin/bash

arch=$1
distrib=Mageia
version=5
homebcd=/home/bcd/build_bcd
bin=$homebcd/bcd
pieces=$homebcd/pieces/iso
build=$homebcd/build/$distrib-$version-$arch

$bin/bcd.pl dvd_free-$arch.xml all noiso

rm -rf $build/$arch/isolinux
cp -r $pieces/dvd/isolinux $build
cp $pieces/dvd/$arch.cfg $build/isolinux/isolinux.cfg
cp -r $pieces/images/$arch $build/isolinux
cp -f $pieces/dvd/compssUsers.pl $homebcd/build/$distrib-$version-$arch/$arch/media/media_info

rm -f $build/$arch/install/images/*nonfree*

if [ "$arch" = "x86_64" ]
then	
	cd $build
	tar -xvJf $pieces/DVD-EFI.tar.xz
	cd -
	rm -f $homebcd/build/$distrib-$version-$arch/$arch/install/images/boot.iso
fi

$bin/bcd.pl dvd_free-$arch.xml iso
date > $homebcd/iso/$distrib-$version-$arch/DATE.txt