From b4f3e7fef33d9f9a4713aceda805dc3ba15966db Mon Sep 17 00:00:00 2001 From: Furkan Kalkan Date: Tue, 11 Oct 2016 11:08:34 +0300 Subject: [PATCH] =?UTF-8?q?grub=20kurulum=20d=C3=BCzeltildi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/miliskur-test.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/bin/miliskur-test.py b/bin/miliskur-test.py index f0282269a..a036d9d27 100644 --- a/bin/miliskur-test.py +++ b/bin/miliskur-test.py @@ -127,27 +127,28 @@ def formatPart(part): def hedefBagla(hedef): os.system("mount "+hedef+" /mnt") d.infobox(text="hedef disk bağlandı.") - sistemKopyala() + sistemKopyala(hedef) -def sistemKopyala(): +def sistemKopyala(hedef): os.system("clear") #print("\033c") os.system("acp -g -axnu / /mnt") #os.system("cp -axvnu / /mnt") - initrdOlustur() + initrdOlustur(hedef) -def initrdOlustur(): +def initrdOlustur(hedef): 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": - grubKur() + grubKur(hedef) else: kurulumBitir() -def grubKur(): - os.system("grub-install --boot-directory=/mnt/boot /dev/sdb") +def grubKur(hedef): + hedef = hedef[:-1] + os.system("grub-install --boot-directory=/mnt/boot " + hedef) os.system("chroot /mnt grub-mkconfig -o /boot/grub/grub.cfg") kurulumBitir()