Skip to content

Instantly share code, notes, and snippets.

@denysonique
Created December 27, 2013 16:40
Show Gist options
  • Save denysonique/8149406 to your computer and use it in GitHub Desktop.
Save denysonique/8149406 to your computer and use it in GitHub Desktop.
# cat ~/chroot-ubuntu.sh
mount /ubuntu
mount --rbind /dev /ubuntu/dev
mount --rbind /proc /ubuntu/proc
mount --rbind /sys /ubuntu/sys
mount --rbind /home /ubuntu/home
mount --rbind /run /ubuntu/run
chroot /ubuntu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment