Skip to content

Instantly share code, notes, and snippets.

@bor8
bor8 / chroot.sh
Last active January 3, 2019 10:57 — forked from uglide/chroot.sh
Chroot to Installed system on LVM
#!/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