From 4cea1a17e77ff301d894b7d01f1c4d7355e87c9b Mon Sep 17 00:00:00 2001 From: Ste Vaidis Date: Tue, 25 Feb 2025 10:45:47 +0200 Subject: [PATCH] Add chroot.sh --- chroot.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 chroot.sh diff --git a/chroot.sh b/chroot.sh new file mode 100644 index 0000000..34e156c --- /dev/null +++ b/chroot.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +sudo lsblk -f + +sudo mount /dev/nvme0n1p5 /mnt +sudo mount /dev/nvme0n1p1 /mnt/boot/efi + +sudo mount --bind /proc /mnt/proc +sudo mount --bind /dev /mnt/dev +sudo mount --bind /sys /mnt/sys +sudo mount --bind /run /mnt/run + +sudo chroot /mnt + + +# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB +# update-grub + +# sudo umount /mnt/dev /mnt/proc /mnt/sys /mnt/run /mnt/boot/efi /mnt