blob: 6cb9bb422d5ca81d645eb6ea98c2c3a910d42ca6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
|