#!/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