The edition package lists installed BOTH grub-pc and grub-efi-amd64 (+ shim-signed). Those provide the same bootloader role and conflict in apt, so every rootfs build failed with "unable to correct problems, you have held broken packages". A rootfs now carries exactly ONE bootloader, chosen by the BOOT variable (mirroring the existing --boot bios|efi deploy option): - versions.mk / common.sh: BOOT := bios (bios -> grub-pc, efi -> grub-efi-amd64 + shim-signed + mokutil), exported via the Makefile. - build-rootfs.sh validates BOOT early and injects the matching boot packages into the apt install; the static package lists no longer contain any grub package. - deploy-disk.sh / build-image.sh / install.sh default --boot from the same BOOT variable, so a rootfs and the artifact deployed from it can never disagree (BOOT=efi make image-cloud produces a UEFI image). - mokutil is now installed explicitly in the efi flavour (it was not pulled in because we install with --no-install-recommends). - docs updated (building.md knob + rationale, secureboot.md note).
47 lines
2.0 KiB
Makefile
47 lines
2.0 KiB
Makefile
# ─────────────────────────────────────────────────────────────────────────────
|
|
# Arcline OS — version pins & build constants
|
|
#
|
|
# Single source of truth for what a build produces. Every script sources this
|
|
# (directly or via scripts/common.sh) so there is exactly one place to bump a
|
|
# version or switch the Debian base.
|
|
# ─────────────────────────────────────────────────────────────────────────────
|
|
|
|
# Distro identity
|
|
DISTRO_NAME := Arcline OS
|
|
DISTRO_ID := arclineos
|
|
VERSION := 0.1.0
|
|
RELEASE_NAME := arclines
|
|
|
|
# Debian base we build on. Trixie = Debian 13 stable.
|
|
DEBIAN_SUITE := trixie
|
|
DEBIAN_MIRROR := http://deb.debian.org/debian
|
|
SECURITY_MIRROR := http://security.debian.org/debian-security
|
|
|
|
# Architecture we target first. amd64 is the primary; arm64 builds are a
|
|
# stretch goal. Kept in one place so adding arm64 is a one-line change.
|
|
ARCH := amd64
|
|
|
|
# Kernel flavour shipped by the base. Trixie ships 6.12 LTS.
|
|
KERNEL_PACKAGE := linux-image-amd64
|
|
KERNEL_VERSION := 6.12
|
|
|
|
# Boot flavour for installed systems — decides which GRUB lands in the image.
|
|
# bios → grub-pc (bare metal + most clouds; the default)
|
|
# efi → grub-efi-amd64 + shim-signed + mokutil (UEFI + secure boot)
|
|
# grub-pc and grub-efi-amd64 conflict, so exactly one is ever installed.
|
|
BOOT := bios
|
|
|
|
# Edition codenames (the "what do I install" flavours).
|
|
EDITIONS := server workstation cloud
|
|
|
|
# Output layout under build/
|
|
BUILD_DIR := build
|
|
ROOTFS_DIR := $(BUILD_DIR)/rootfs
|
|
IMAGE_DIR := $(BUILD_DIR)/iso
|
|
DEB_DIR := $(BUILD_DIR)/debs
|
|
LOG_DIR := $(BUILD_DIR)/logs
|
|
ARTIFACT_DIR := $(BUILD_DIR)/artifacts
|
|
|
|
# Toolchain: the 11 Go tools that ship with Arcline OS (see toolchain/).
|
|
TOOLCHAIN_REPO := https://git.arcline.it/arcline/tools.git
|