-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (27 loc) · 917 Bytes
/
Makefile
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
iso:
rm -rf DVD/.disk
mkdir DVD/.disk -p
sudo rm -rf DVD/casper64
sudo mkdir DVD/casper64 -p
sudo cp ../ubuntu-64bit-iso/dist64/binary/casper/* DVD/casper64/ -R
sudo cp ../ubuntu-64bit-iso/dist64/binary/.disk/* DVD/.disk/ -Rf
sync
sudo rm -rf DVD/casper
sudo mkdir DVD/casper -p
sudo cp ../ubuntu-32bit-iso/dist32/binary/casper/* DVD/casper/ -R
sudo cp ../ubuntu-32bit-iso/dist32/binary/.disk/* DVD/.disk/ -Rf
sync
sudo chown jenkins DVD -R
rm -f output.iso
genisoimage -o ./output.iso \
-no-emul-boot -boot-load-size 4 -boot-info-table \
-r -b isolinux/isolinux.bin -c isolinux/boot.cat -J -l -cache-inodes -allow-multidot \
-p "Ubuntu.si" \
-no-emul-boot -boot-load-size 4 -boot-info-table \
-V "Ubuntu.si 12.04 LTS" -cache-inodes -r -J -l \
-x ./DVD/casper/filesystem.manifest \
-joliet-long -input-charset utf-8 \
./DVD
test:
kvm -m 1024 -cdrom output.iso -boot d
.PHONY: iso test