miliskur.py-guncelleme
This commit is contained in:
		
							parent
							
								
									91f3cc0d43
								
							
						
					
					
						commit
						727c841d43
					
				
					 1 changed files with 6 additions and 6 deletions
				
			
		| 
						 | 
				
			
			@ -112,21 +112,21 @@ def hedefBagla(hedef):
 | 
			
		|||
	sistemKopyala()
 | 
			
		||||
 | 
			
		||||
def sistemKopyala():
 | 
			
		||||
	os.system("cp -axvnu /  /mnt")
 | 
			
		||||
	os.system("acp -g -axvnu /  /mnt")
 | 
			
		||||
	initrdOlustur()
 | 
			
		||||
	
 | 
			
		||||
def initrdOlustur():
 | 
			
		||||
	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")
 | 
			
		||||
	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()
 | 
			
		||||
	else:
 | 
			
		||||
		kurulumBitir()
 | 
			
		||||
 | 
			
		||||
def grubKur():
 | 
			
		||||
	os.system("grub-install --boot-directory=/mnt/boot /dev/sda")
 | 
			
		||||
	os.system("grub-install --boot-directory=/mnt/boot /dev/sdb")
 | 
			
		||||
	os.system("grub-mkconfig -o /boot/grub/grub.cfg")
 | 
			
		||||
	kurulumBitir()
 | 
			
		||||
	
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue