-
-
Save winderickxeli/2d58a09a745a82f9e41fdee0375504b6 to your computer and use it in GitHub Desktop.
Chroot to Installed system on LVM
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 | |
fdisk -lu | |
pvscan | |
vgscan | |
vgchange -a y | |
lvscan | |
mount /dev/ubuntu-vg/root /mnt | |
mount --bind /dev /mnt/dev | |
mount --bind /proc /mnt/proc | |
mount --bind /sys /mnt/sys | |
mount /dev/sda2 /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