Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wiki:dynamic_root_filesystem_remastering [2011/04/18 07:25] – external edit 127.0.0.1 | wiki: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 | + | The method described here allows you to modify the root filesystem of a TC/MC system without actually |
- | 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. | + | 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:// |
The description here is based on the use of extlinux (since I use this to boot from an ext2 partition), however the same configuration should be possible to use for other syslinux family bootloaders. | The description here is based on the use of extlinux (since I use this to boot from an ext2 partition), however the same configuration should be possible to use for other syslinux family bootloaders. | ||
====== Install extlinux ====== | ====== Install extlinux ====== | ||
- | In order to install extlinux to your boot partition you need have the TC '' | + | In order to install extlinux to your boot partition you need have the TC '' |
To install extlinux you do: | To install extlinux you do: | ||
Line 16: | Line 16: | ||
< | < | ||
- | This will make the file '' | + | This will make the file '' |
- | 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 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 |
< | < | ||
- | where ''/ | + | where ''/ |
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 45: | Line 45: | ||
label my_remaster | label my_remaster | ||
menu label Microcore with remaster | menu label Microcore with remaster | ||
- | kernel /boot/bzImage | + | kernel /boot/vmlinuz |
- | initrd /boot/microcore.gz,/ | + | initrd /boot/core.gz,/ |
append base | append base | ||
label mc_original | label mc_original | ||
menu label Microcore without remaster | menu label Microcore without remaster | ||
- | kernel /boot/bzImage | + | kernel /boot/vmlinuz |
- | initrd /boot/microcore.gz | + | initrd /boot/core.gz |
append base | append base | ||
Line 66: | Line 66: | ||
The core part for the remaster function is the line: | The core part for the remaster function is the line: | ||
- | < | + | < |
- | This tells extlinux to load both '' | + | This tells extlinux to load both '' |
Line 89: | Line 89: | ||
</ | </ | ||
- | 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 place, it is time to create the archive and copy it to the boot partition. |
|< | |< | ||
Line 109: | Line 109: | ||
When you boot via grub you just select the boot entry named '' | When you boot via grub you just select the boot entry named '' | ||
+ | |||
+ | ====== Loading multiple initramfs images via gPXE/iPXE ====== | ||
+ | gPXE/iPXE are capable of passing multiple initramfs images to the kernel as well. The following example gPXE script will download '' | ||
+ | < | ||
+ | #!gpxe | ||
+ | kernel http:// | ||
+ | initrd http:// | ||
+ | initrd http:// | ||
+ | boot | ||
+ | </ |