Skip to content

Instantly share code, notes, and snippets.

@pateketrueke
Created May 9, 2018 22:04
Show Gist options
  • Save pateketrueke/0ebf9cfb2be64ff5299e84abf6f4fe76 to your computer and use it in GitHub Desktop.
Save pateketrueke/0ebf9cfb2be64ff5299e84abf6f4fe76 to your computer and use it in GitHub Desktop.
Mount and install through LVM
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