From cf788a87523b06606a3d31c7eaebe61d74ba8287 Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Thu, 5 Dec 2024 21:06:33 -0700 Subject: [PATCH] python: setup: arch: Remove installimage additions to HOOKS Signed-off-by: Nathan Chancellor --- python/setup/arch.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python/setup/arch.py b/python/setup/arch.py index 5e023747..cb81c1b7 100755 --- a/python/setup/arch.py +++ b/python/setup/arch.py @@ -5,6 +5,7 @@ from argparse import ArgumentParser import base64 from collections import UserDict +import contextlib import getpass import json import os @@ -352,6 +353,11 @@ def installimage_adjustments(mkinitcpio_conf, conf='linux.conf', dryrun=False): mkinitcpio_conf['FILES'].add(firmware_location) + # Drop the additions that Hetzner made to hooks because we do not need them + with contextlib.suppress(KeyError): + mkinitcpio_conf['HOOKS'].remove('lvm2') + mkinitcpio_conf['HOOKS'].remove('mdadm_udev') + # If we are not booted in UEFI mode, we cannot switch to systemd-boot, so # do not bother messing with the partitions if not Path('/sys/firmware/efi').exists():