Hi,

John Paul Adrian Glaubitz wrote:
> -J -joliet-long -cache-inodes -l
> -G $CDDIR/../CD1/boot/grub/sparc64-ieee1275/cdboot.img -B ...
>
> Would it be enough to just switch to xorriso here?

I think you forgot -o result.o and -V Volume_Id.

They are all in the list of emulated options (xorriso -as mkisofs -help
man xorrisofs)

A test:

  $ dd if=/dev/zero bs=512 count=2 of=dummy_for_G

  $ dd if=/dev/zero bs=512 count=10 of=dummy_for_core

  $ xorriso -as mkisofs \
      -o test.iso \
      -V 'FAKE_SPARC_64_ISO' \
      -J -joliet-long -cache-inodes -l \
      -G ./dummy_for_G \
      -B '...' \
      --grub2-sparc-core /boot/grub/core.img \
      -graft-points \
      /boot/grub/core.img=./dummy_for_core
  ...
  Written to medium : 186 sectors at LBA 0
  Writing to 'stdio:test.iso' completed successfully.

  $ xorriso -indev test.iso -report_system_area plain
  ...
  Volume id    : 'FAKE_SPARC_64_ISO'
  System area options: 0x0000000c
  System area summary: SUN-SPARC-Disk-Label
  ISO image size/512 : 744
  SUN SPARC disklabel: CD-ROM Disc with Sun sparc boot created by libisofs
  SUN SPARC secs/head: 640
  SUN SPARC heads/cyl: 1
  SUN SPARC partmap  :   N   IdTag   Perms    StartCyl   NumBlocks
  SUN SPARC partition:   1  0x0004  0x0010           0         744
  SUN SPARC partition:   2  0x0002  0x0010           0         744
  SUN SPARC partition:   3  0x0002  0x0010           0         744
  SUN SPARC partition:   4  0x0002  0x0010           0         744
  SUN SPARC partition:   5  0x0002  0x0010           0         744
  SUN SPARC partition:   6  0x0002  0x0010           0         744
  SUN SPARC partition:   7  0x0002  0x0010           0         744
  SUN SPARC partition:   8  0x0002  0x0010           0         744
  SPARC GRUB2 core   : 67584  5120
  SPARC GRUB2 path   : /boot/grub/core.img

The fact that the file core.img is named as "SPARC GRUB2 path" indicates
that its start LBA was written to the right place in the -G image.
(Numbers shown as "SPARC GRUB2 core".)


Have a nice day :)

Thomas

Reply via email to