在发帖之前,我读过以下内容:
我正在尝试构建 Linux 的 kickstart 版本并生成可启动的 ISO。我使用的是 CentOS 7。
我的问题是当我尝试制作 ISO 时,出现以下错误:
genisoimage: Uh oh, I cant find the boot catalog directory '/home/dogzilla/kickstart_build/isolinux'!
我从 CentOS-7-x86_64-DVD-1804.iso 复制了文件并将它们放在 ~/kickstart_build 中。
以下是 ~/kickstart_build 中的内容树:
├── comps.xml
└── isolinux
├── boot.cat
├── boot.msg
├── grub.conf
├── images
│ ├── efiboot.img
│ ├── pxeboot
│ │ ├── initrd.img
│ │ ├── TRANS.TBL
│ │ └── vmlinuz
│ └── TRANS.TBL
├── initrd.img
├── isolinux.bin
├── isolinux.cfg
├── ks
│ └── ks.cfg
├── LiveOS
│ ├── squashfs.img
│ └── TRANS.TBL
├── memtest
├── Packages
│ ├── # A whole bunch of *.rpm files
├── postinstall
├── splash.png
├── TRANS.TBL
├── vesamenu.c32
└── vmlinuz
这是我用来尝试构建 ISO 的命令:
mkisofs -o myks.iso -b ~/kickstart_build/isolinux/isolinux.bin -c ~/kickstart_build/isolinux/boot.cat -no-emul-boot -V 'CentOS 7 x86_64' -boot-load-size 4 -boot-info-table -R -J -v -T ~/kickstart_build/isolinux/
以下是终端的输出:
I: -input-charset not specified, using utf-8 (detected in locale settings)
genisoimage 1.1.11 (Linux)
Scanning /home/dogzilla/kickstart_build/isolinux/
Scanning /home/dogzilla/kickstart_build/isolinux/images
Scanning /home/dogzilla/kickstart_build/isolinux/images/pxeboot
Excluded: /home/dogzilla/kickstart_build/isolinux/images/pxeboot/TRANS.TBL
Excluded: /home/dogzilla/kickstart_build/isolinux/images/TRANS.TBL
Scanning /home/dogzilla/kickstart_build/isolinux/ks
Scanning /home/dogzilla/kickstart_build/isolinux/LiveOS
Excluded: /home/dogzilla/kickstart_build/isolinux/LiveOS/TRANS.TBL
Scanning /home/dogzilla/kickstart_build/isolinux/Packages
Excluded: /home/dogzilla/kickstart_build/isolinux/Packages/TRANS.TBL
Scanning /home/dogzilla/kickstart_build/isolinux/Packages/repodata
Scanning /home/dogzilla/kickstart_build/isolinux/postinstall
Excluded: /home/dogzilla/kickstart_build/isolinux/TRANS.TBL
call to search_tree_file with an absolute path, stripping
initial path separator. Hope this was intended...
genisoimage: Uh oh, I cant find the boot catalog directory '/home/dogzilla/kickstart_build/isolinux'!
我哪里做错了?
答案1
确保文件“boot.cat”具有 644 权限,然后重新运行 mkisofs 命令