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():