-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathu4-createiso.sh
executable file
·60 lines (48 loc) · 1.49 KB
/
u4-createiso.sh
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
#!/bin/bash
source 00-config.sh
#sudo apt-get source gfxboot-theme-ubuntu gfxboot
#cd gfxboot-theme-ubuntu*/
#make DEFAULT_LANG=es
#sudo cp -af boot/* ../extraer/isolinux/
#sudo cp edit/boot/vmlinuz-XXX extraer/casper/vmlinuz
#sudo cp edit/boot/initrd.img-XXX extraer/casper/initrd.lz
#cd extraer/casper
#mkdir lztempdir
#cd lztempdir
#lzma -dc -S .lz ../initrd.lz | cpio -imvd --no-absolute-filenames
#cp ../initrd.lz ../inird.lz.orig
#find . | cpio --quiet --dereference -o -H newc | lzma -7 > ../initrd.lz
#cp grub.cfg extraer/boot/grub
#cp txt.cfg extraer/isolinux/txt.cfg
#cp isolinux.cfg extraer/isolinux/
##cp stdmenu.cfg extraer/isolinux/
##cp splash.pcx extraer/isolinux/
DIR=`pwd`
cd $NOMBREDESTINO/iso
echo Xorriso
if test $TIPOIMAGEN==UBUNTU ; then
sudo xorriso -as mkisofs \
-D -r -V "$NOMBREDESTINO" -J -l \
-b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot \
-cache-inodes \
-boot-load-size 4 -boot-info-table \
-eltorito-alt-boot \
-e boot/grub/efi.img \
-no-emul-boot \
-isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin \
-isohybrid-gpt-basdat \
-o ../$NOMBREDESTINO.iso .
else
sudo xorriso -as mkisofs \
-D -r -V "$NOMBREDESTINO" -J -l \
-b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot \
-cache-inodes \
-boot-load-size 4 -boot-info-table \
-eltorito-alt-boot \
-no-emul-boot \
-isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin \
-isohybrid-gpt-basdat \
-o ../$NOMBREDESTINO.iso .
fi
#isohybrid ../ututo-2017.iso
#-cache-inodes