Created
May 9, 2018 22:04
-
-
Save pateketrueke/0ebf9cfb2be64ff5299e84abf6f4fe76 to your computer and use it in GitHub Desktop.
Mount and install through 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
vgchange -a y | |
mkdir /newroot | |
mount /dev/yourVG/rootLV /newroot | |
mount /dev/yourbootpartition /newroot/boot | |
mount -o bind /dev /newroot/dev | |
mount -o bind /sys /newroot/sys | |
mount -o bind /var /newroot/var | |
mount -o bind /proc /newroot/proc | |
cp /etc/resolv.conf /newroot/etc/resolv.conf | |
cp /var/cache/apt/archives/*deb /newroot/tmp/ | |
chroot /newroot | |
cd /tmp | |
dpkg -i *.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment