miliskur.py-guncelleme
This commit is contained in:
parent
e10feb7fc5
commit
91f3cc0d43
|
@ -101,30 +101,33 @@ def formatDialog(part):
|
||||||
choosePart()
|
choosePart()
|
||||||
|
|
||||||
def formatPart(part):
|
def formatPart(part):
|
||||||
runShellCommand("mkfs.ext4 "+"/dev/"+part)
|
os.system("mkfs.ext4 "+"/dev/"+part)
|
||||||
d.infobox(text="/dev/"+part+" Disk Formatlandı")
|
d.infobox(text="/dev/"+part+" Disk Formatlandı")
|
||||||
chooseSwap()
|
chooseSwap()
|
||||||
hedef="/dev/"+part
|
hedef="/dev/"+part
|
||||||
hedefBagla(hedef)
|
hedefBagla(hedef)
|
||||||
|
|
||||||
def hedefBagla(hedef):
|
def hedefBagla(hedef):
|
||||||
runShellCommand("umount /mnt && mount "+hedef+" /mnt")
|
os.system("umount /mnt && mount "+hedef+" /mnt")
|
||||||
sistemKopyala()
|
sistemKopyala()
|
||||||
|
|
||||||
def sistemKopyala():
|
def sistemKopyala():
|
||||||
runShellCommand("cp -axvnu / /mnt")
|
os.system("cp -axvnu / /mnt")
|
||||||
initrdOlustur()
|
initrdOlustur()
|
||||||
|
|
||||||
def initrdOlustur():
|
def initrdOlustur():
|
||||||
runShellCommand("chroot /mnt dracut --no-hostonly --add-drivers "'ahci'" -f /boot/initramfs")
|
os.system("mount —bind /dev /mnt/dev")
|
||||||
|
os.system("mount —bind /sys /mnt/sys")
|
||||||
|
os.system("mount —bind /proc /mnt/proc")
|
||||||
|
os.system("chroot /mnt dracut --no-hostonly --add-drivers "'ahci'" -f /boot/initramfs")
|
||||||
if d.yesno(text="Grub kurmak istiyor musunuz ?") == "ok":
|
if d.yesno(text="Grub kurmak istiyor musunuz ?") == "ok":
|
||||||
grubKur()
|
grubKur()
|
||||||
else:
|
else:
|
||||||
kurulumBitir()
|
kurulumBitir()
|
||||||
|
|
||||||
def grubKur():
|
def grubKur():
|
||||||
runShellCommand("chroot /mnt grub-install --boot-directory=/mnt/boot /dev/sda")
|
os.system("grub-install --boot-directory=/mnt/boot /dev/sda")
|
||||||
runShellCommand("chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg")
|
os.system("grub-mkconfig -o /boot/grub/grub.cfg")
|
||||||
kurulumBitir()
|
kurulumBitir()
|
||||||
|
|
||||||
def kurulumBitir():
|
def kurulumBitir():
|
||||||
|
|
Loading…
Reference in New Issue