From b2c03daea3e7840b97ed5eee56f61d78aeb27b4c Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Thu, 6 Nov 2025 14:33:51 +0100 Subject: [PATCH] Fixed an issue where re-writing a smaller mkinitcpio.conf than previously existed, the 'no' part at the end became a trailing 'o' causing syntax issues. --- archinstall/lib/installer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index 987ae64434..e9ddafce9e 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -779,6 +779,7 @@ def mkinitcpio(self, flags: list[str]) -> bool: content = re.sub('\nHOOKS=(.*)', f'\nHOOKS=({" ".join(self._hooks)})', content) mkinit.seek(0) + mkinit.truncate() mkinit.write(content) try: