Skip to content

ChrisWills/fedora-initramfs-builder

Repository files navigation

Intro

fedora-initramfs-builder is a script for crafting a feature rich initramfs for use as a rescue image and custom fedora installer.

The idea

I want to run Fedora on a 100% zfs managed disk. That means no ext4 /boot and no swap (who needs swap anyway).

The plan is to leaning on ipxe and a large custom initramfs to boot strap over the network for ease of use and to avoid having to deal with /boot and grub.

In the case of a laptop which cannot rely on network booting all the time, I will create a bootable usb key with just grub and /boot for bootstraping - this usb key can be removed once the system boots.

Keep complexity low and visibility high. I want this to be easy to understand even if that means boot times are long. I don’t care much about boot times but I care alot about reproducability and the ability to wipe a machine back to a known state quickly and automatically.

This should also lay the ground-work for easier updates between fedora releases and ease of switching back to an old setup in the event of a catastrophic failure or user error.

Boot process (test VM)

  1. vm boots ipxe.iso
  2. ipxe pulls down latest fedora29 kernel and initramfs generated by initramfs-builder.sh
  3. boot into initramfs.igm (which has full zfs support)
  4. setup zfs filesystem on the local disk
  5. install fedora packages into local disk filesystem
  6. apply any config changes or manual hacks to the local disk filesystem
  7. kexec to stock fedora kernel + stock dracut generated initramfs (with zfs support added)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages