lvm2, mkinitcpio, man-pages rebuild

This commit is contained in:
Berk Çakar
2021-09-14 23:48:31 +03:00
parent b2f35a7320
commit c88492ad79
16 changed files with 318 additions and 170 deletions
+11 -1
View File
@@ -3,4 +3,14 @@
import os
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
os.system("/sbin/mudur_tmpfiles.py /usr/lib/tmpfiles.d/lvm2.conf")
if os.path.exists("/etc/lvm/lvm.conf"):
with open("/etc/lvm/lvm.conf", 'r') as file:
fileContent = file.readlines()
for lineIndex in range(len(fileContent)):
if ('use_lvmetad =' in fileContent[lineIndex]):
fileContent[lineIndex] = ' use_lvmetad = 1\n'
with open("/etc/lvm/lvm.conf", 'w') as tableFile:
tableFile.writelines(fileContent)
break
os.system("/sbin/mudur_tmpfiles.py /usr/lib/tmpfiles.d/lvm2.conf")