Differences

This shows you the differences between two versions of the page.

Link to this comparison view

remastering [2017/10/03 17:17]
zugschlus remaster light
remastering [2018/08/06 14:56] (current)
zugschlus document how to directly patch the ISO for serial operation
Line 42: Line 42:
  
 This paragraph is a stub. If somebody knows how to do this "remaster light" process, please document here. If the grml project does not want "remaster light" to be documented, please remove the entire paragraph. This paragraph is a stub. If somebody knows how to do this "remaster light" process, please document here. If the grml project does not want "remaster light" to be documented, please remove the entire paragraph.
 +
 +===== Directly patching the .iso for isolinux configuration =====
 +
 +[[https://github.com/grml/grml-live/pull/51|This merge request]] makes it much easier to do local, simple patches for the isolinux.cfg directly in the downloaded grml iso. This makes it, for example possible to create a grml .iso that is directly useable on a serial console.
 +
 +This merge request is not in grml 2017.05 but will likely be in the following grml release. Its validity has been verified with the daily snapshot on 2018-08-06.
 +
 +==== Use case: iso that offers boot options on serial console ====
 +
 +In some situations you want to boot up grml-small directly on a serial console without having to select "serial" on the graphical console first - for example in cases where the only access you have is a serial port (virtualization, housing).
 +
 +To do this, do:
 +
 +  * download any grml-small iso later than 2018-08-06. The 2017.05 release will not do
 +  * open the iso in a hex editor such as dhex or hte
 +  * Be careful to only overwrite contents, not delete or insert. Moving the file contents will destroy the iso image.
 +  * Search for the string a8bd612867ae71d0b17f9d33f80f61ab261aa354 or a shorter substring thereof.
 +  * This will lead you to the live instance of the file [[https://github.com/grml/grml-live/blob/master/templates/boot/isolinux/isolinux.cfg|isolinux.cfg]]
 +  * In this file, slightly above the hex marker string, replace the # sign in front of "serial 0 9600" so that the line now reads "  serial 0 9600". Leaving the two spaces in prevents the rest of the image contents from being moved, they're ignored.
 +  * Slightly lower than the hex marker string, replace "vesamenu.cfg" with " console.cfg", again noting the extra space to avoid movement of the image contents
 +  * For more complex changes, there are 10 lines of 70 characters that you can arbitrarily replace.
 +
 +Booting this image directly displays a "boot:" prompt on both the serial and graphical consoles. <TAB> will give you the (long) list of available options. Typing "serial" will fire up a grml with the serial console as system console, giving you all boot output and finally a grml root shell on the serial console.
 +
  
 ====== Remastering old Grml versions ====== ====== Remastering old Grml versions ======
 
remastering.txt · Last modified: 2018/08/06 14:56 by zugschlus
 
Recent changes RSS feed Creative Commons License Valid XHTML 1.0 Valid CSS Grml homepage Driven by DokuWiki