我正在尝试通过grub-grub创建一个iso可引导文件。但我需要指定iso的标签。阅读手册页后,我猜这里是一个正确的命令行,但失败了。
grub-mkrescue -o "my_arch.iso" -- -volid=MY_ARCH my_iso_dir它将错误显示为:
xorriso 1.4.2 : RockRidge filesystem manipulator, libburnia project.
Drive current: -outdev 'stdio:my_arch.iso'
Media current: stdio file, overwriteable
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data, 19.1g free
Added to ISO image: directory '/'='/tmp/grub.ZoYEzy'
xorriso : UPDATE : 613 files added in 1 seconds
xorriso : FAILURE : -as mkisofs: Unrecognized option '-volid=MY_ARCH'
xorriso : UPDATE : 613 files added in 1 seconds
xorriso : aborting : -abort_on 'FAILURE' encountered 'FAILURE'根据'info grub-grub‘文档:
All arguments not explicitly listed as 'grub-mkrescue' options are
passed on directly to 'xorriso' in 'mkisofs' emulation mode. Options
passed to 'xorriso' will normally be interpreted as 'mkisofs' options;
if the option '--' is used, then anything after that will be interpreted
as native 'xorriso' options.
Non-option arguments specify additional source directories. This is
commonly used to add extra files to the image:发布于 2016-05-09 03:20:48
xorriso的-as mkisofs仿真可以理解
-V MY_ARCH或
-volid MY_ARCH但不是
-volid=MY_ARCH此外,请注意,您显然使用的是grub-grub的中间C版本,该版本不符合您引用的文档。这个版本需要'--‘作为grub-mkrescue选项和xorriso -as mkisofs选项之间的分隔符。
但是,如果在旧的grub-grub shell脚本或当前的grub-mkrescue程序的参数中有'--‘,那么您将退出mkisofs仿真。这将为您带来一条错误消息
xorriso : FAILURE : Not a known command: 'my_iso_dir'https://stackoverflow.com/questions/37099699
复制相似问题