Created
April 15, 2019 02:43
-
-
Save mjeveritt/ae947a419bedc2a39e9b7a85c5b8a00b to your computer and use it in GitHub Desktop.
chroot-here.sh
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
#!/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