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:
parent
bf8f72cc54
commit
a3d85c1c58
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue