removed unnessacry --target

This commit is contained in:
advaithm 2021-04-20 20:46:49 +05:30
parent 8b723c25e2
commit b4312ab95d
No known key found for this signature in database
GPG Key ID: E557E45E6DAFFC0C
1 changed files with 1 additions and 1 deletions

View File

@ -432,7 +432,7 @@ class Installer():
root_device = subprocess.check_output(f'basename "$(readlink -f /sys/class/block/{root_partition.path.replace("/dev/","")}/..)"', shell=True).decode().strip()
if root_device == "block":
root_device = f"{root_partition.path}"
o = b''.join(sys_command(f'/usr/bin/arch-chroot {self.target} grub-install --target=--target=i386-pc /dev/{root_device}'))
o = b''.join(sys_command(f'/usr/bin/arch-chroot {self.target} grub-install --target=i386-pc /dev/{root_device}'))
sys_command('/usr/bin/arch-chroot grub-mkconfig -o /boot/grub/grub.cfg')
else:
raise RequirementError(f"Unknown (or not yet implemented) bootloader added to add_bootloader(): {bootloader}")