Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
wiki:dynamic_root_filesystem_remastering [2012/05/29 07:18] – changed some bzimage's to vmlinuz's, etc. la11111wiki:dynamic_root_filesystem_remastering [2013/01/04 16:57] (current) – typos BobBagwill
Line 3: Line 3:
 ====== Introduction ====== ====== Introduction ======
  
-The method described here allows you to modify the root filesystem of a TC/MC system without actually modify the tinycore.gz/microcore.gz files. This is particularly useful when you want your remaster to work with a new version of TC/MC or if you for some other reason want to remaster the root filesystem without having to modify the root filesystem files shipped by TC/MC.+The method described here allows you to modify the root filesystem of a TC/MC system without actually modifying the tinycore.gz/microcore.gz files. This is particularly useful when you want your remaster to work with a new version of TC/MC or if you for some other reason want to remaster the root filesystem without having to modify the root filesystem files shipped by TC/MC.
  
 The method is based on the capability of the syslinux family bootloaders (syslinux, isolinux, extlinux, pxelinux) to load multiple initramfs images during boot. If you are using Grub you could still use this method by chainloading from Grub to a syslinux family bootloader. It is also possible to pass multiple initramfs images to linux [[http://en.gentoo-wiki.com/wiki/Initramfs#Multiple_initramfs|from grub directly]], as well as from [[http://www.ipxe.org/cmd/imgfetch|iPXE]] / [[http://etherboot.org/wiki/commandline|gPXE]]. The method is based on the capability of the syslinux family bootloaders (syslinux, isolinux, extlinux, pxelinux) to load multiple initramfs images during boot. If you are using Grub you could still use this method by chainloading from Grub to a syslinux family bootloader. It is also possible to pass multiple initramfs images to linux [[http://en.gentoo-wiki.com/wiki/Initramfs#Multiple_initramfs|from grub directly]], as well as from [[http://www.ipxe.org/cmd/imgfetch|iPXE]] / [[http://etherboot.org/wiki/commandline|gPXE]].
Line 16: Line 16:
 <code>sudo extlinux -i /mnt/hda1/boot/extlinux</code> <code>sudo extlinux -i /mnt/hda1/boot/extlinux</code>
  
-This will make the file ''extlinux.sys'' to appear in the installation directory. (Mount the device manually: "mount /dev/xxx /mnt/xxx". Using the mount tool provided by tinycore extlinux will give you an error (it can't install to devices mounted with loop)+This will make the file ''extlinux.sys'' appear in the installation directory. (Mount the device manually: "mount /dev/xxx /mnt/xxx". Using the mount tool provided by tinycore extlinux will give you an error (it can't install to devices mounted with loop).
  
-In case extlinux is the only bootloader on your system you need to update the MBR of the boot device (note that if you are using grub and want to keep it that way DO NOT perfom the following action). To update the MBR+In case extlinux is the only bootloader on your systemyou need to update the MBR of the boot device (note that if you are using grub and want to keep it that way DO NOT perfom the following action). To update the MBR
  
 <code>sudo cat /usr/local/lib/syslinux/mbr.bin > /dev/XXX</code> <code>sudo cat /usr/local/lib/syslinux/mbr.bin > /dev/XXX</code>
  
-where ''/dev/XXX'' is the appropriate master devive (in my case ''/dev/hda'').+where ''/dev/XXX'' is the appropriate master device (in my case ''/dev/hda'').
  
 To be able to use the menu features of the syslinux family bootloaders you should: To be able to use the menu features of the syslinux family bootloaders you should:
Line 89: Line 89:
 </code> </code>
  
-Once all files to be included into the root filesystem are in place it is time to create the archive and copy it to the boot partition.+Once all files to be included into the root filesystem are in placeit is time to create the archive and copy it to the boot partition.
  
 |<code>$ find | sudo cpio -o -H newc | gzip > ../my_initramfs.gz| |<code>$ find | sudo cpio -o -H newc | gzip > ../my_initramfs.gz|
Print/export
QR Code
QR Code wiki:dynamic_root_filesystem_remastering (generated for current page)