Added a workaround for systemd boot-install.

See discussion here: https://github.com/systemd/systemd/issues/13603
This commit is contained in:
Anton Hvornum 2019-11-13 11:51:51 +01:00 committed by GitHub
parent bd38369e9b
commit ae66a45116
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -754,7 +754,8 @@ if __name__ == '__main__':
mkinit.write('FILES=()\n')
mkinit.write('HOOKS=(base udev autodetect modconf block encrypt filesystems keyboard fsck)\n')
o = b''.join(sys_command('/usr/bin/arch-chroot /mnt mkinitcpio -p linux').exec())
o = b''.join(sys_command('/usr/bin/arch-chroot /mnt bootctl --path=/boot install').exec())
## WORKAROUND: https://github.com/systemd/systemd/issues/13603#issuecomment-552246188
o = b''.join(sys_command('/usr/bin/arch-chroot /mnt bootctl --no-variables --path=/boot install').exec())
with open('/mnt/boot/loader/loader.conf', 'w') as loader:
loader.write('default arch\n')