Talk:Remastering the Install ISO

From ArchWiki
Jump to: navigation, search

Modernization

I recently ran into a situation where I need to create a remastered ISO image for Arch Linux. As was stated in 2007 (yikes), this page is out of date. I'm currently trying to modernize it to work with the current ISO image.

My main issue so far is figuring out the propper form of the mkisofs command. If anyone wants to lend a hand with this, I would greatly appreciate it. --Arcanazar 01:42, 9 August 2009 (EDT)

The current version uses GRUB instead of ISOLINUX. So, it's -b boot/grub/stage2_eltorito.
--Mlu 23:46, 6 March 2010 (EST)
RE: Arcanazar:
I've updated the mkisofs commands section. I, too, ran into problems. The solution was to use the mkarchiso method for generating the image.
--Integer 22:15, 18 September 2014 (CEST)
Thank you for flying xorriso. :)
Nevertheless i believe the variables in the xorriso example should be given as tangible examples. Like iso_label="ARCH_201209". "iso_application" and "iso_publisher" are probably only ornamental. The "-preparer" option could well be omitted. "custom_archiso_dir" should get value ~/customiso.
Variable "workdir" is not really applicable in the remastering situation. Even if you have a file "isohdpfx.bin" on hard disk, it might be of the wrong ISOLINUX version. (This warning applies also to program "isohybrid" which officially has to match the ISOLINUX version in the ISO image. SYSLINUX does not guarantee that MBR and El Torito boot image are exchangable between versions. It is not clear whether really incompatible versions are around.)
In general you rather need the first 512 bytes from the original ISO image file. See for example the dd command in http://libburnia-project.org/wiki/PartitionOffset which is about adding a feature to an isohybrid enabled ISO.
This file obtained from the old ISO is a matching MBR template for the ISOLINUX boot equipment in the emerging ISO image. To be used by -isohybrid-mbr ${file_with_first_512_bytes}.
Alternatively there is a file /isolinux/isohdpfx.bin in archlinux-2013.11.01-dual.iso. Most probably a copy of the MBR template used with the mkarchiso run. The mkarchiso code in the web suggests this. Thus to be used by -isohybrid-mbr ${custom_archiso_dir}/isolinux/isohdpfx.bin
Scdbackup (talk) 11:21, 20 September 2014 (UTC)
My proposal for a new text about isohybrid and xorriso can be seen in the second half of my talk page
Scdbackup (talk) 14:38, 25 September 2014 (UTC)
Since no protest was posted, i installed my proposal in the wiki page.
Scdbackup (talk) 13:46, 4 October 2014 (UTC)
I've updated the customization section. File names are current.
--Integer 22:23, 18 September 2014 (CEST)

The "Extracting the Iso" section needs to be updated. unsquashfs no longer produces a folder that contains a mountable image file. Instead it produces all of the contents of the airootfs.sfs. Following the instructions of this article no longer works. I don't have the expertise to correct this. --BeenEncoded (talk) 17:52, 21 October 2015 (UTC)