Skip to content

Instantly share code, notes, and snippets.

@mjeveritt
Created April 15, 2019 02:43
Show Gist options
  • Save mjeveritt/ae947a419bedc2a39e9b7a85c5b8a00b to your computer and use it in GitHub Desktop.
Save mjeveritt/ae947a419bedc2a39e9b7a85c5b8a00b to your computer and use it in GitHub Desktop.
chroot-here.sh
#!/bin/bash
mount --bind /var/tmp/catalyst/snapshot_cache/20181230/portage usr/portage/
mount --bind /usr/portage/distfiles usr/portage/distfiles
mount -t proc none proc/
mount --rbind /sys sys/
mount --rbind /dev dev/
chroot . /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment