Add chroot.sh
This commit is contained in:
parent
47cbcc7557
commit
4cea1a17e7
19
chroot.sh
Normal file
19
chroot.sh
Normal file
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user