diff options
| author | Marc Vertes <mvertes@free.fr> | 2021-02-07 12:03:10 +0100 |
|---|---|---|
| committer | Marc Vertes <mvertes@free.fr> | 2021-02-07 12:03:10 +0100 |
| commit | 351a23a8b81766d7aba3bfb469f049348d13d2ec (patch) | |
| tree | bd9eb037006c32b4772ea213b0180743953d1f29 /bin/repairboot | |
| parent | df0534903b2034f1f3bd563033eeb0cfdccfe518 (diff) | |
update
Diffstat (limited to 'bin/repairboot')
| -rwxr-xr-x | bin/repairboot | 14 |
1 files changed, 14 insertions, 0 deletions
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 |
