From 988388f07fb8bab554798aba91abc9965090d223 Mon Sep 17 00:00:00 2001 From: Thorsten Töpper Date: Thu, 18 Sep 2025 19:55:55 +0200 Subject: smalldeploy now uefi pxe capable --- .../airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount | 8 ++++++++ .../system/multi-user.target.wants/pacman-init.service | 1 + .../multi-user.target.wants/pull_network_online.service | 1 + .../airootfs/etc/systemd/system/pacman-init.service | 15 +++++++++++++++ .../etc/systemd/system/pull_network_online.service | 12 ++++++++++++ configs/smalldeploy/packages.x86_64 | 5 +++++ configs/smalldeploy/profiledef.sh | 1 + 7 files changed, 43 insertions(+) create mode 100644 configs/smalldeploy/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount create mode 120000 configs/smalldeploy/airootfs/etc/systemd/system/multi-user.target.wants/pacman-init.service create mode 120000 configs/smalldeploy/airootfs/etc/systemd/system/multi-user.target.wants/pull_network_online.service create mode 100644 configs/smalldeploy/airootfs/etc/systemd/system/pacman-init.service create mode 100644 configs/smalldeploy/airootfs/etc/systemd/system/pull_network_online.service (limited to 'configs') diff --git a/configs/smalldeploy/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount b/configs/smalldeploy/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount new file mode 100644 index 0000000..038961e --- /dev/null +++ b/configs/smalldeploy/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount @@ -0,0 +1,8 @@ +[Unit] +Description=Temporary /etc/pacman.d/gnupg directory + +[Mount] +What=tmpfs +Where=/etc/pacman.d/gnupg +Type=tmpfs +Options=mode=0755,noswap diff --git a/configs/smalldeploy/airootfs/etc/systemd/system/multi-user.target.wants/pacman-init.service b/configs/smalldeploy/airootfs/etc/systemd/system/multi-user.target.wants/pacman-init.service new file mode 120000 index 0000000..d473c92 --- /dev/null +++ b/configs/smalldeploy/airootfs/etc/systemd/system/multi-user.target.wants/pacman-init.service @@ -0,0 +1 @@ +/etc/systemd/system/pacman-init.service \ No newline at end of file diff --git a/configs/smalldeploy/airootfs/etc/systemd/system/multi-user.target.wants/pull_network_online.service b/configs/smalldeploy/airootfs/etc/systemd/system/multi-user.target.wants/pull_network_online.service new file mode 120000 index 0000000..f79e2f1 --- /dev/null +++ b/configs/smalldeploy/airootfs/etc/systemd/system/multi-user.target.wants/pull_network_online.service @@ -0,0 +1 @@ +/etc/systemd/system/pull_network_online.service \ No newline at end of file diff --git a/configs/smalldeploy/airootfs/etc/systemd/system/pacman-init.service b/configs/smalldeploy/airootfs/etc/systemd/system/pacman-init.service new file mode 100644 index 0000000..b824884 --- /dev/null +++ b/configs/smalldeploy/airootfs/etc/systemd/system/pacman-init.service @@ -0,0 +1,15 @@ +[Unit] +Description=Initializes Pacman keyring +Requires=etc-pacman.d-gnupg.mount +After=etc-pacman.d-gnupg.mount time-sync.target +BindsTo=etc-pacman.d-gnupg.mount +Before=archlinux-keyring-wkd-sync.service + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/bin/pacman-key --init +ExecStart=/usr/bin/pacman-key --populate + +[Install] +WantedBy=multi-user.target diff --git a/configs/smalldeploy/airootfs/etc/systemd/system/pull_network_online.service b/configs/smalldeploy/airootfs/etc/systemd/system/pull_network_online.service new file mode 100644 index 0000000..50d2e9f --- /dev/null +++ b/configs/smalldeploy/airootfs/etc/systemd/system/pull_network_online.service @@ -0,0 +1,12 @@ +[Unit] +Description=trigger network-online.target +After=network-online.target +Requires=network-online.target + +[Service] +Type=oneshot +ExecStart=/usr/bin/true + +[Install] +WantedBy=multi-user.target + diff --git a/configs/smalldeploy/packages.x86_64 b/configs/smalldeploy/packages.x86_64 index 27425e2..52c242c 100644 --- a/configs/smalldeploy/packages.x86_64 +++ b/configs/smalldeploy/packages.x86_64 @@ -3,12 +3,17 @@ base btrfs-progs dosfstools e2fsprogs +edk2-shell exfatprogs gptfdisk +grub less linux +lvm2 mkinitcpio mkinitcpio-archiso +mkinitcpio-nfs-utils +nbd nfs-utils openssh parted diff --git a/configs/smalldeploy/profiledef.sh b/configs/smalldeploy/profiledef.sh index f818845..fd8513e 100644 --- a/configs/smalldeploy/profiledef.sh +++ b/configs/smalldeploy/profiledef.sh @@ -20,4 +20,5 @@ file_permissions=( ["/etc/shadow"]="0:0:400" ["/root"]="0:0:750" ["/root/.automated_script.sh"]="0:0:755" + ["/root/.gnupg"]="0:0:700" ) -- cgit v1.2.3-70-g09d2