This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail # -> http://redsymbol.net/articles/unofficial-bash-strict-mode/ | |
# Reverse what lxd init does | |
function check_distro() { | |
local distro=$(grep 'DISTRIB_CODENAME' /etc/lsb-release | cut -d '=' -f 2) | |
echo "$distro" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# mount the boot partition | |
mount /dev/nvme0n1p9 /mnt | |
mount /dev/nvme0n1p7 /mnt/boot | |
# change root to /mnt partition | |
arch-chroot /mnt | |
# reinstall grub |
OlderNewer