[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: using d-i to install kfreebsd-i386 from usb

Luca Favatella dixit:

>I'll probably test this solution (dd iso to usb) when possible.

Well, the ISO image has to be specially prepared for it.

At the *very* least, you’ll need to
• make sure there is GRUB2 *inside* the ISO on /boot/grub
• git clone git://git.grml.org/grml-live.git
• take the *same* version of GRUB2 on your local computer
• (
    echo 4 63 | mksh grml-live/scripts/bootgrub.mksh -A
    dd if=/dev/zero bs=512 count=3 2>/dev/null
    grub-mkimage biosdisk iso9660
  ) | dd of=«isoname» conv=notrunc

Side note: the output of “grub-mkimage biosdisk iso9660” must not
be larger than 30720 bytes when using this method. (By omitting
padding and possibly its first sector, we can probably get 32 KiB.)

The Grml ISOs (prepared with the grml-live script) already do this.

Source for bootgrub.mksh, in case someone wonders, is at

Sometimes they [people] care too much: pretty printers [and syntax highligh-
ting, d.A.] mechanically produce pretty output that accentuates irrelevant
detail in the program, which is as sensible as putting all the prepositions
in English text in bold font.	-- Rob Pike in "Notes on Programming in C"

Reply to: