#!/bin/bash
# The example names get mapped to their roles here
orig_iso="$HOME"/iso/foxclone.iso
new_iso="$HOME"/iso/foxclone025-02.iso
mbr_template="$HOME"/isohdpfx.bin
workdir="$HOME"/work
echo $HOME
echo $workdir is workdir
# Extract MBR template file to disk
dd if="$orig_iso" bs=1 count=432 of="$mbr_template"
# Create the new ISO image
xorriso -as mkisofs \
-U \
-allow-lowercase \
-r -V 'foxclone025-02' \
-o "$new_iso" \
-J -J -joliet-long \
-isohybrid-mbr "$mbr_template" \
-b "$workdir"/isolinux/isolinux.bin \ <-------- fails here. The file does exist at that location.
-c isolinux/boot.cat \
-boot-load-size 4 -boot-info-table -no-emul-boot \
-eltorito-alt-boot \
-e boot/grub/efi.img \
-no-emul-boot -isohybrid-gpt-basdat -isohybrid-apm-hfsplus
Here's the terminal output:
I've been trying to fix this for 2 days, doing a crazy amount of research. Does anybody see anything that my old eyes have missed?
TIA,
Larry
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason:Topic automatically closed 6 months after creation. New replies are no longer allowed.
If you have found the solution to your initial post, please open your original post, click on the pencil, and add (Solved) to the Subject, it helps other users looking for help, and keeps the forum clean.
Kadaitcha Man, thanks for the reply. I've double checked the location several times. I even copied the file to a different location and used the actual location in the script instead of using the variable.
If you have found the solution to your initial post, please open your original post, click on the pencil, and add (Solved) to the Subject, it helps other users looking for help, and keeps the forum clean.
You will first need to have the -b filename be relative to the ISO root, i.e., just "isolinux/isolinux.bin". Second, you are not providing any pathspec to mkisofs / xorriso -as mkisofs. I.e., stick a "$workdir" in there as the final argument. I do seem to remember something about current directory being good enough at one point but note we're dealing with emulation syntax here; don't rely on it being that 100%; just provide the pathspec explicitly.
and removing the reference to $workdir in the line starting with -b
If you have found the solution to your initial post, please open your original post, click on the pencil, and add (Solved) to the Subject, it helps other users looking for help, and keeps the forum clean.