Skip to content

Feature: _install ​

Description ​

Provides a generic installation framework that copies a running Garden Linux live environment to a physical disk.

What it does ​

_install places an installation script (install.sh) and two systemd-repart partition layout files into /opt/install/ inside the image. The installation script handles partitioning (using systemd-repart), filesystem creation, copying the live rootfs, and bootloader installation. It supports both interactive and non-interactive modes:

  • Interactive: prompts the user to choose a target disk and an encryption password.
  • Non-interactive: reads the target device from the GL_INSTALL_TARGET environment variable, enabling use by _autoinstall.

The script installs either a UEFI (systemd-boot) or legacy BIOS (syslinux) bootloader depending on the system firmware.

_install does not produce a standalone bootable image on its own. Combine it with _iso or _pxe to create a live medium with installation capability, or add _autoinstall for unattended installation.

Files ​

Files present in this feature and their purpose. See the feature file reference for the semantics of each file type.

FilePurpose
file.include.markers.yaml (ref)Maps files in this feature to test-coverage marker IDs.
info.yaml (ref)Declares type: flag and included/excluded features.
file.include/opt/install/install.sh (file.include)Main installation script: partitions the disk, formats it, copies the rootfs, and installs the bootloader.
file.include/opt/install/repart/00-efi.conf (file.include)systemd-repart partition definition for the EFI System Partition (ESP).
file.include/opt/install/repart/10-root.conf (file.include)systemd-repart partition definition for the root filesystem partition.

This feature has no include or exclude relationships.