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. (#3902)

This commit is contained in:
Anton Hvornum 2025-11-06 15:26:44 +01:00 committed by GitHub
parent bf8f72cc54
commit a3d85c1c58
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -779,6 +779,7 @@ class Installer:
content = re.sub('\nHOOKS=(.*)', f'\nHOOKS=({" ".join(self._hooks)})', content)
mkinit.seek(0)
mkinit.truncate()
mkinit.write(content)
try: