-
-
Save bor8/b6629225a09f47cd193cfe3b45bd88d5 to your computer and use it in GitHub Desktop.
Chroot to Installed system on LVM
This file contains 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 | |
fdisk -lu | |
pvscan | |
vgscan | |
vgchange -a y | |
lvscan | |
mount /dev/template99-vg/root /mnt | |
mount --bind /dev /mnt/dev | |
mount --bind /proc /mnt/proc | |
mount --bind /sys /mnt/sys | |
mount --bind /dev/pts /mnt/dev/pts | |
mount --bind /run /mnt/run | |
mount /dev/sda1 /mnt/boot | |
# mkdir /mnt/boot/efi || true | |
# mount /dev/sda1 /mnt/boot/efi | |
chroot /mnt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment