diff options
-rwxr-xr-x | xorriso.sh | 50 |
1 files changed, 44 insertions, 6 deletions
@@ -1,6 +1,6 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | outdev=debian-live-8.4.0-amd64-standard.btrfs.iso | 3 | outdev=debian-live-8.4.0-amd64-standard.btrfs.isohybrid2 |
4 | indev=debian-live-8.4.0-amd64-standard.iso | 4 | indev=debian-live-8.4.0-amd64-standard.iso |
5 | volid=SamizdatLive | 5 | volid=SamizdatLive |
6 | squashfs_iso_path=live/filesystem.squashfs | 6 | squashfs_iso_path=live/filesystem.squashfs |
@@ -31,15 +31,53 @@ make_gnupghome | |||
31 | 31 | ||
32 | set -ex | 32 | set -ex |
33 | 33 | ||
34 | # http://www.syslinux.org/wiki/index.php?title=Isohybrid | ||
35 | # xorriso -as mkisofs \ | ||
36 | # -o output.iso \ | ||
37 | # -isohybrid-mbr /usr/lib/syslinux/isohdpfx.bin \ | ||
38 | # -c isolinux/boot.cat \ | ||
39 | # -b isolinux/isolinux.bin \ | ||
40 | # -no-emul-boot -boot-load-size 4 -boot-info-table \ | ||
41 | # -eltorito-alt-boot \ | ||
42 | # -e isolinux/efiboot.img \ | ||
43 | # -no-emul-boot \ | ||
44 | # -isohybrid-gpt-basdat \ | ||
45 | # CD_root | ||
46 | |||
47 | # http://ftp.nluug.nl/os/Linux/distr/slackware/slackware64-current/isolinux/ | ||
48 | # http://ftp.nluug.nl/os/Linux/distr/slackware/slackware64-current/isolinux/efiboot.img | ||
49 | |||
50 | # -boot_image isolinux dir=isolinux \ | ||
51 | # -boot_image isolinux next -boot_image isolinux system_area=/usr/lib/ISOLINUX/isohdpfx.bin \ | ||
52 | |||
53 | # -add "${btrfs_iso_path}=${btrfs_filesystem}" -- \ | ||
54 | # -add "${gpg_iso_path}=${gnupghome}" -- \ | ||
55 | |||
56 | |||
57 | |||
58 | |||
59 | # -rm "$squashfs_iso_path" -- \ | ||
60 | # -rm_r isolinux live -- \ | ||
61 | # -add isolinux=isolinux -- \ | ||
62 | |||
34 | xorriso \ | 63 | xorriso \ |
35 | -drive_class clear_list all \ | 64 | -drive_class clear_list all \ |
36 | -outdev "$outdev"~ -indev "$indev" \ | 65 | -outdev "$outdev"~ -indev "$indev" \ |
37 | -report_about mishap \ | 66 | -report_about mishap \ |
38 | -volid "$volid" \ | ||
39 | -return_with sorry 0 \ | 67 | -return_with sorry 0 \ |
68 | -volid "$volid" \ | ||
40 | -pathspecs on -overwrite on \ | 69 | -pathspecs on -overwrite on \ |
41 | -rm "$squashfs_iso_path" -- \ | 70 | \ |
42 | -add_plainly any \ | 71 | -rm_r live install pool -- -pathspecs on -add live=isolinux/live/ isolinux/pxelinux.* isolinux/*.cfg isolinux/efiboot.img -- \ |
43 | "${btrfs_iso_path}=${btrfs_filesystem}" \ | 72 | \ |
44 | "${gpg_iso_path}=${gnupghome}" | 73 | -as mkisofs \ |
74 | -isohybrid-mbr /usr/lib/ISOLINUX/isohdpfx.bin \ | ||
75 | -c isolinux/boot.cat \ | ||
76 | -b isolinux/isolinux.bin \ | ||
77 | -no-emul-boot -boot-load-size 4 -boot-info-table \ | ||
78 | -eltorito-alt-boot \ | ||
79 | -e isolinux/efiboot.img \ | ||
80 | -no-emul-boot \ | ||
81 | -isohybrid-gpt-basdat \ | ||
82 | |||
45 | mv -f "$outdev"~ "$outdev" | 83 | mv -f "$outdev"~ "$outdev" |