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

Re: Replace systemd



Hi,

Rob van der Putten wrote:
> You need to modify your net install DVD too;
> http://without-systemd.org/wiki/index.php/How_to_remove_systemd_from_the_Netinst_CD

Guests may not discuss there. So here:

The genisoimage run in "update-cdrom.sh" only prepares for booting via
BIOS from CD/DVD. One would need to afterwards run
  isohybrid /div/test.iso
in order to make it ready for booting via BIOS from USB stick.

The promised UEFI capabilities by a run of
  isohybrid --uefi test.iso
cannot be achieved because the genisoimage run did not advertise file
/boot/grub/efi.img as El Torito boot image for EFI.
Upstream genisoimage cannot do this. Fedora has a modified one which knows
option -e. See
  http://www.syslinux.org/wiki/index.php?title=Isohybrid#UEFI

In debian-9.0.0-amd64-netinst.iso the file /.disk/mkisofs tells the
command that was used to create it. Cleaned from the Jigdo specific options,
peculiarities of the production machine, and some ineffective options,
that is:

  xorriso -as mkisofs \
    -r \
    -V 'Debian 9.0.0 amd64 n' \
    -o test.iso \
    -J -joliet-long \
    -isohybrid-mbr "$isohybrid_MBR" \
    -c isolinux/boot.cat \
    -b isolinux/isolinux.bin \
      -boot-load-size 4 -boot-info-table -no-emul-boot \
    -eltorito-alt-boot \
    -e boot/grub/efi.img \
      -no-emul-boot -isohybrid-gpt-basdat \
    ./

where $isohybrid_MBR is a file with a copy of the first 432 bytes of the
original ISO. E.g made by:

  isohybrid_MBR=/tmp/debian9.mbr
  dd if=debian-9.0.0-amd64-netinst.iso bs=1 count=432 of="$isohybrid_MBR"

A run of isohybrid is not needed. The ISO will begin to boot from the
usual media on the usual firmwares. How far it gets depends on the
quality of the other manipulations, which i am not up to judge.


Have a nice day :)

Thomas


Reply to: