Internals
This section describes how Sheep works internally.
Installation process in UEFI boot mode
Here are the steps executed by this tool in order to install a Linux distribution
- Wipe the target drive (every single partition is deleted)
- Create three GPT partitions
- The EFI System partition
- The cloud-init partition
- The Linux root filesystem partition
- Format partitions using the appropriate filesystem
- Mount partitions
- Get Linux root filesystem image and extract it
- Get EFI bootloader and install it
- Create boot entry in the EFI boot manager
- Write the grub menu
- Configure the Linux root filesystem using cloud-init
- Unmount partitions
- Reboot the machine
Installation process in legacy boot mode
Here are the steps executed by this tool in order to install a Linux distribution
- Wipe the target drive (every single partition is deleted)
- Create three GPT partitions
- The bios boot partition for MBR
- The cloud-init partition
- The Linux root filesystem partition
- Format partitions using the appropriate filesystem
- Mount partitions
- Get Linux root filesystem image and extract it
- Write the MBR partition using grub-install
- Write the grub menu
- Configure the Linux root filesystem using cloud-init
- Unmount partitions
- Reboot the machine
The full process run in a couple of seconds when using a tar.gz
or tar.xz
a root filesystem archive. It takes additionnal time (depending on your CPU performance) when extracting Qcow2