kurulum.guncelleme
This commit is contained in:
parent
4a61fbfc2f
commit
a686ae7cd2
1 changed files with 12 additions and 9 deletions
21
bin/kurulum.py
Normal file → Executable file
21
bin/kurulum.py
Normal file → Executable file
|
@ -177,18 +177,16 @@ def bolumSec():
|
||||||
f.write("{} seçildi !".format(seciliBolum))
|
f.write("{} seçildi !".format(seciliBolum))
|
||||||
print("{} seçildi !".format(seciliBolum))
|
print("{} seçildi !".format(seciliBolum))
|
||||||
kurparam["disk"]["bolum"]="/dev/"+seciliBolum
|
kurparam["disk"]["bolum"]="/dev/"+seciliBolum
|
||||||
###formatDialog(seciliBolum)
|
formatDialog(seciliBolum)
|
||||||
takasSec(seciliBolum)
|
|
||||||
|
|
||||||
def formatDialog(part):
|
def formatDialog(part):
|
||||||
status = d.yesno(title="Uyarı !",
|
status = d.yesno(title="Uyarı !",
|
||||||
text="/dev/{} bölümü ext4 türünde formatlanacak. Emin misiniz ?".format(part))
|
text="/dev/{} bölümü ext4 türünde formatlanacak. Emin misiniz ?".format(part))
|
||||||
if status == "ok":
|
if status == "ok":
|
||||||
d.infobox(text="Formatlanıyor... Lütfen bekleyiniz...")
|
kurparam["disk"]["format"]="evet"
|
||||||
formatPart(part)
|
|
||||||
time.sleep(5)
|
|
||||||
else:
|
else:
|
||||||
bolumSec()
|
kurparam["disk"]["format"]="hayir"
|
||||||
|
takasSec(part)
|
||||||
|
|
||||||
def bolumFormatla(hedef):
|
def bolumFormatla(hedef):
|
||||||
komut="umount -l "+hedef
|
komut="umount -l "+hedef
|
||||||
|
@ -365,9 +363,7 @@ def swapAyarla(bolum):
|
||||||
os.system("mkswap "+"/dev/"+bolum)
|
os.system("mkswap "+"/dev/"+bolum)
|
||||||
os.system('echo "`lsblk -ln -o UUID /dev/' + bolum + '` none swap sw 0 0" | tee -a /etc/fstab')
|
os.system('echo "`lsblk -ln -o UUID /dev/' + bolum + '` none swap sw 0 0" | tee -a /etc/fstab')
|
||||||
|
|
||||||
|
def main():
|
||||||
if __name__ == "__main__":
|
|
||||||
|
|
||||||
if len(sys.argv) == 1:
|
if len(sys.argv) == 1:
|
||||||
karsilamaEkrani()
|
karsilamaEkrani()
|
||||||
else:
|
else:
|
||||||
|
@ -377,3 +373,10 @@ if __name__ == "__main__":
|
||||||
else:
|
else:
|
||||||
d.infobox(text=dosya+" bulunamadı!")
|
d.infobox(text=dosya+" bulunamadı!")
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
|
||||||
|
main()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue