Bug#570156: grub-mkisofs

Thorsten Glaser tg at mirbsd.de
Sun Mar 7 01:28:25 UTC 2010


Hi,

I’ve looked at what grub-mkrescue does with grub-mkisofs (and found
a bug already whose fix I mailed upstream ☺). Basically, three things:

• --modification-date=YYYYmmddHHMMSS00 (bug: didn’t use -u option to
  date(1) like the standard requires) – this is what they use as UUID.

  In makefs_20100306-1: -o modification-date=YYYYmmddHHMMSS00

• -b boot/grub/i386-pc/eltorito.img --embedded-boot ${embed_img}

  Here, eltorito.img and ${embed_img} are both created from the same
  file except the former is prepended with cdboot.img the latter with
  boot.img.

  In makefs, you just 'dd if=${embed_img} of=$iso conv=notrunc' after
  iso creation instead. grub-mkisofs does size checking… stat(1) exists.

• --protective-msdos-label

  Relatively easy to do in mksh; somewhat easy in bash; challenging
  but doable in dash. Basically, change the first sector of the image
  after creation to have a fake MBR. GRUB’s uses 0xCD instead of 0x96,
  which was standardised by IBM for CHRP, as partition type.


So, if desired, I can provide patches that replace the functionality
by equivalent calls to makefs plus either an mksh or a Debian 10.4
sh script.

bye,
//mirabilos
-- 
FWIW, I'm quite impressed with mksh interactively. I thought it was much
*much* more bare bones. But it turns out it beats the living hell out of
ksh93 in that respect. I'd even consider it for my daily use if I hadn't
wasted half my life on my zsh setup. :-) -- Frank Terbeck in #!/bin/mksh





More information about the Pkg-grub-devel mailing list