0

I am trying to create a completely unattended installation of CentOS. To do that, I downloaded the latest CentOS iso, and followed the directions listed here. After I attached the iso with hdiutil, I mounted it, copied the contents to a local directory and made my changes (updated grub.cfg to include the newly created ks.cfg, etc..). I am now at a point where I'm trying to create a new iso using my modified directory, but for the life of me, I can't get hdiutil to cooperate. I'm trying to mimic mkisofs(8) by using the following command:

hdiutil makehybrid -joliet -iso -eltorito-boot isolinux/isolinux.bin -eltorito-specification isolinux/boot.cat -no-emul-boot -boot-load-size 4 -o CentOS7-ks.iso `pwd`/centos7_iso_ks

The command generates an iso, but it doesn't seem to have the MBR and it only has one partition:

$ hdiutil imageinfo CentOS7-ks.iso
Backing Store Information:
    URL: file:///Users/psipika/mnt/CentOS7-ks.iso
    Name: CentOS7-ks.iso
    Class Name: CBSDBackingStore
Class Name: CRawDiskImage
Checksum Type: none
Size Information:
    Total Bytes: 961794048
    Compressed Ratio: 1
    Sector Count: 1878504
    Total Non-Empty Bytes: 961794048
    Compressed Bytes: 961794048
    Total Empty Bytes: 0
Format: UDTO
Format Description: raw read/write
Checksum Value:
Properties:
    Encrypted: false
    Kernel Compatible: true
    Checksummed: false
    Software License Agreement: false
    Partitioned: false
    Compressed: no
Segments:
    0: /Users/psipika/mnt/CentOS7-ks.iso
partitions:
    partition-scheme: ISO9660
    block-size: 992
    appendable: false
    partitions:
        0:
            partition-name: CENTOS7_ISO_KS
            partition-start: 0
            partition-synthesized: true
            partition-length: 1878504
            partition-hint: Apple_ISO
            partition-filesystems:
                ISO9660: centos7_iso_ks
    burnable: true
Resize limits (per hdiutil resize -limits):
hdiutil: resize: cannot get resize information for "CentOS7-ks.iso"
(failed - internal error)
hdiutil: imageinfo failed - internal error

Whereas, the downloaded iso looks like this:

$ hdiutil imageinfo ~/Downloads/CentOS-7-x86_64-Minimal-1810.iso
Backing Store Information:
    URL: file:///Users/username/Downloads/CentOS-7-x86_64-Minimal-1810.iso
    Name: CentOS-7-x86_64-Minimal-1810.iso
    Class Name: CBSDBackingStore
Class Name: CRawDiskImage
Checksum Type: none
Size Information:
    Total Bytes: 962592768
    Compressed Ratio: 1
    Sector Count: 1880064
    Total Non-Empty Bytes: 962592768
    Compressed Bytes: 962592768
    Total Empty Bytes: 0
Format: UDTO
Format Description: raw read/write
Checksum Value:
Properties:
    Encrypted: false
    Kernel Compatible: true
    Checksummed: false
    Software License Agreement: false
    Partitioned: false
    Compressed: no
Segments:
    0: /Users/username/Downloads/CentOS-7-x86_64-Minimal-1810.iso
partitions:
    partition-scheme: fdisk/ISO9660
    block-size: 512
    appendable: false
    hybrid-data:
        partition-scheme: ISO9660
        block-size: -20016
        appendable: false
        partitions:
            0:
                partition-name: CentOS 7 x86_64
                partition-start: 0
                partition-synthesized: true
                partition-length: 1879024
                partition-hint: Apple_ISO
                partition-filesystems:
                    ISO9660: CentOS 7 x86_64
            1:
                partition-name:
                partition-start: 1879024
                partition-synthesized: true
                partition-length: 1040
                partition-hint: Apple_Free
        burnable: true
    partitions:
        0:
            partition-name: Master Boot Record
            partition-start: 0
            partition-synthesized: true
            partition-length: 1
            partition-hint: MBR
            boot-code: 0x33ED90909090909090909090909090909090909090909090909090909090909033EDFA8ED5BC007CFBFC6631DB6631C96653665106578EDD8EC552BE007CBF0006B90001F3A5EA4B06000052B441BBAA5531C930F6F9CD13721681FB55AA751083E101740B66C706F106B442EB15EB005A51B408CD1383E13F5B510FB6C64050F7E1535250BB007CB9040066A1B007E844000F828000664080C702E2F266813E407CFBC078707509FABCEC7BEA447C0000E8830069736F6C696E75782E62696E206D697373696E67206F7220636F72727570742E0D0A66606631D2660306F87B661316FC7B6652665006536A016A1089E666F736E87BC0E40688E188C592F636EE7B88C608E141B801028A16F27BCD138D64106661C3E81E004F7065726174696E672073797374656D206C6F6164206572726F722E0D0A5EACB40E8A3E6204B307CD103C0A75F1CD18F4EBFD00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000B84500000000000034ED4B100000
        1:
            partition-name: CentOS 7 x86_64
            partition-start: 1
            partition-synthesized: true
            partition-length: 439
            partition-hint: Apple_ISO
        2:
            partition-start: 440
            partition-number: 2
            partition-length: 17408
            partition-hint: Type EF
            partition-filesystems:
                FAT16: ANACONDA
        3:
            partition-name: CentOS 7 x86_64
            partition-start: 17848
            partition-synthesized: true
            partition-length: 1861176
            partition-hint: Apple_ISO
    burnable: true
Resize limits (per hdiutil resize -limits):
hdiutil: resize: cannot get resize information for "/Users/username/Downloads/CentOS-7-x86_64-Minimal-1810.iso"
(failed - internal error)
hdiutil: imageinfo failed - internal error

Can someone point me in the right direction of getting this iso to be recognized as a bootable disk image?

You must log in to answer this question.

Browse other questions tagged .