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
#!/bin/bash | |
set -euo pipefail | |
CHROOT_PART="/dev/sda3" | |
CHROOT_DIR="/mnt/proxmox" | |
die() { echo "$*" 1>&2 ; exit 1; } | |
echo "Checking for debootstrap package" | |
pacman -Q debootstrap >/dev/null 2>&1 \ |
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
mkdir ./mnt | |
mount /dev/pve/root ./mnt | |
cd mnt | |
mount -t proc proc proc/ | |
mount -t sysfs sys sys/ | |
mount -o bind /dev dev/ | |
cd .. | |
chroot ./mnt ./bin/bash | |
pmxcfs | |
/bin/nano /etc/pve/nodes/{node name}/qemu-server/100.conf |