问题
I'm trying to remaster ISO image of Archlinux using Rust.
To get the ISO I need to run xorriso
utility as external command using duct
crate.
However I get these (strange) errors (doesn't happen if I run it from shell script):
cmd!("sudo","xorriso", "-x", "-as mkisofs", "-iso-level 3", "-full-iso9660-filenames", iso_label, eltorito_boot, eltorito_cat, "-no-emul-boot -boot-load-size 4 -boot-info-table", isohybrid, "-eltorito-alt-boot", efi, "-no-emul-boot -isohybrid-gpt-basdat", output, root).run().context("Failed to create new ISO")?
xorriso : FAILURE : Not a known command: '-as mkisofs'
xorriso : FAILURE : Not a known command: '-iso-level 3'
xorriso : FAILURE : Not a known command: '-full-iso9660-filenames'
xorriso : FAILURE : Not a known command: '-volid "ARCH_201904"'
xorriso : FAILURE : Not a known command: '-eltorito-boot "isolinux/isolinux.bin"'
xorriso : FAILURE : Not a known command: '-eltorito-catalog "isolinux/boot.cat"'
xorriso : FAILURE : Not a known command: '-no-emul-boot -boot-load-size 4 -boot-info-table'
...
来源:https://stackoverflow.com/questions/55865024/generating-iso-with-xorriso