Fedora Bootstrap Guide

By Taha7 minutes read

Disclaimer

In this article I have chosen ubuntu for the live boot and fedora for the target. You can use other distributions for live boot and target installation. If you use a different distribution for the target, you need to check the bootstrap commands for that distribution. For example: debootstrap, pacstrap and dnf. The parameters may differ depending on the tool you are using


Step 1: Update Repositories in Live Environment


Step 2: Install DNF Package Manager in Live Environment


Step 3: Prepare the Disk and Partitions


Step 4: Format the Partitions


Step 5: Mount the BTRFS Partition and Create Subvolumes


Step 6: Generate Fstab File for New Installation


Step 7: Bootstrap Fedora Installation


Step 8: Chroot into the New Installation


Step 9: Install ‘Standard’ group


Step 10: Change dnf Configuration


Step 11: Set the Zones, Locale and Etc


Step 12: Replace Bootloader to Systemd-boot from Grub


Step 13: Install Kernel Packages


Step 14: Set Passwords and Create Users


Step 15: Exit and Reboot


Step 16: Fix Selinux Contexts


Conclusion