From 9aa203f7d7a1899aac7bb7d8209cc2a394ffdbd8 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Sun, 7 Feb 2021 12:03:10 +0100 Subject: update --- bin/repairboot | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bin/repairboot (limited to 'bin/repairboot') diff --git a/bin/repairboot b/bin/repairboot new file mode 100755 index 0000000..6cb9bb4 --- /dev/null +++ b/bin/repairboot @@ -0,0 +1,14 @@ +#!/bin/sh -ex + +# Repair boot from yoda (for acer swift5) + + +[ "$USER" = root ] || exec sudo "$0" "$@" + +cryptsetup open /dev/nvme0n1p2 swift +mount /dev/mapper/swift /mnt +mount /dev/nvme0n1p1 /mnt/boot + +arch-chroot /mnt << EOT +bootctl --path=/boot install +EOT -- cgit v1.2.3