Skip to content

Commit

Permalink
python: setup: arch: Remove installimage additions to HOOKS
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Chancellor <[email protected]>
  • Loading branch information
nathanchance committed Dec 6, 2024
1 parent 6e6673b commit cf788a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/setup/arch.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from argparse import ArgumentParser
import base64
from collections import UserDict
import contextlib
import getpass
import json
import os
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit cf788a8

Please sign in to comment.