summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-27 01:31:32 -0400
committerAndrew Cady <d@jerkface.net>2016-04-27 01:31:32 -0400
commit05de92cfdcb14291f4ea65c40a01346543d16e5d (patch)
tree135977dac7e1f4f6310e41f1017a04f03d72480e
parent195028924dfd63ca607deb589c9c5a40e9e8ceda (diff)
works kinda
-rwxr-xr-xxorriso.sh50
1 files changed, 44 insertions, 6 deletions
diff --git a/xorriso.sh b/xorriso.sh
index 784f2ef..83c308e 100755
--- a/xorriso.sh
+++ b/xorriso.sh
@@ -1,6 +1,6 @@
1#!/bin/sh 1#!/bin/sh
2 2
3outdev=debian-live-8.4.0-amd64-standard.btrfs.iso 3outdev=debian-live-8.4.0-amd64-standard.btrfs.isohybrid2
4indev=debian-live-8.4.0-amd64-standard.iso 4indev=debian-live-8.4.0-amd64-standard.iso
5volid=SamizdatLive 5volid=SamizdatLive
6squashfs_iso_path=live/filesystem.squashfs 6squashfs_iso_path=live/filesystem.squashfs
@@ -31,15 +31,53 @@ make_gnupghome
31 31
32set -ex 32set -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
34xorriso \ 63xorriso \
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
45mv -f "$outdev"~ "$outdev" 83mv -f "$outdev"~ "$outdev"