swap düzeltme ve sd kart kurulum fix
This commit is contained in:
parent
d917391144
commit
6dbe8a35eb
|
@ -151,6 +151,9 @@ def initrdOlustur(hedef):
|
||||||
|
|
||||||
def grubKur(hedef):
|
def grubKur(hedef):
|
||||||
hedef = hedef[:-1]
|
hedef = hedef[:-1]
|
||||||
|
if hedef = "/dev/mmcblk0": #SD kart'a kurulum fix
|
||||||
|
os.system("grub-install --boot-directory=/mnt/boot /dev/mmcblk0")
|
||||||
|
else:
|
||||||
os.system("grub-install --boot-directory=/mnt/boot " + hedef)
|
os.system("grub-install --boot-directory=/mnt/boot " + hedef)
|
||||||
os.system("chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg")
|
os.system("chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg")
|
||||||
kurulumBitir()
|
kurulumBitir()
|
||||||
|
@ -169,6 +172,8 @@ def chooseSwap(part):
|
||||||
for i in range(len(diskParts)-1):
|
for i in range(len(diskParts)-1):
|
||||||
if partMajmin[i].split(":")[1] != "0": # partition olmayanları ele (sda/sdb swap için uygun değil)
|
if partMajmin[i].split(":")[1] != "0": # partition olmayanları ele (sda/sdb swap için uygun değil)
|
||||||
if diskParts[i] != part:
|
if diskParts[i] != part:
|
||||||
|
for validPart in validParts:
|
||||||
|
if validPart in diskParts[i]: #loop partlar gibi swap kurulamayacak alanları ele
|
||||||
swapChoice.append((diskParts[i],partLabel[i]+ "\t" +partSizes[i]+"\t"+partFs[i]))
|
swapChoice.append((diskParts[i],partLabel[i]+ "\t" +partSizes[i]+"\t"+partFs[i]))
|
||||||
status,selectedPart = d.menu(text="Takas alanının yer alacağı disk bölümünü seçiniz",choices=swapChoice)
|
status,selectedPart = d.menu(text="Takas alanının yer alacağı disk bölümünü seçiniz",choices=swapChoice)
|
||||||
if status == "ok":
|
if status == "ok":
|
||||||
|
|
Loading…
Reference in New Issue