Grub
Preparations for 'Booting XYZ FIle'
Danger:
Only run the following commands if you know what they are doing!If you already have GRUB installed and working, you probably just need to edit your
grub.cfg
file (for most OSes in the /boot
directory).The disk to be used should be:
- Boot Target in BIOS/ UEFI
- First in the BIOS/ UEFI boot order
The disk used in this example is /dev/sda
.
- Prepare Disk partition layout
- Create two partitions on the disk (use, e.g.,
fdisk
,parted
, etc)- 1MB (flags:
boot
) - 10G or more as you want/ need (flags:
boot
),ext4
formatted
- 1MB (flags:
- Run
blkid /dev/sda2 -s UUID -o value
to get the UUID of the "first" disk's second partition.- Save the UUID of the "first" disk down. The UUID of the "first" disk will be used in form of the
__BOOT_PART_UUID__
later on.
- Save the UUID of the "first" disk down. The UUID of the "first" disk will be used in form of the
- Create two partitions on the disk (use, e.g.,
- Mount "boot" Partition
- Mount the second created partition (
/dev/sda2
):mount /dev/sda2 /boot
.
- Mount the second created partition (
- Download Fedora
vmlinuz
,initramfs
andinstall.img
to/boot
directory.- Prefix the downloaded files with
fedora-
(or whatever you want as long as you change it in the upcoming steps as well)
- Prefix the downloaded files with
- Grub Installation
- For GRUB2:
grub2-install --no-floppy /dev/sda2
- For GRUB:
grub-install --no-floppy /dev/sda2
- For GRUB2:
- Create GRUB boot config file
- For GRUB2 the path is
/boot/grub2/grub.cfg
. - For GRUB the path is
/boot/grub/grub.cfg
.
- For GRUB2 the path is
Optional steps:
- Copy your Kickstart and/ or config file to the
/boot
directory- This assumes the "system" you are using is able to open the
/boot
mounted partition and read the file from there, e.g., Kickstart can do it like thatinst.ks="hd:UUID=__BOOT_PART_UUID__:/ks.cfg"
(where the__BOOT_PART_UUID__
is the partition UUID).
- This assumes the "system" you are using is able to open the
- Reboot and enjoy!