Skip to content

Commit a3d85c1

Browse files
authored
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)
1 parent bf8f72c commit a3d85c1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

archinstall/lib/installer.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,7 @@ def mkinitcpio(self, flags: list[str]) -> bool:
779779

780780
content = re.sub('\nHOOKS=(.*)', f'\nHOOKS=({" ".join(self._hooks)})', content)
781781
mkinit.seek(0)
782+
mkinit.truncate()
782783
mkinit.write(content)
783784

784785
try:

0 commit comments

Comments
 (0)