Skip to content

Instantly share code, notes, and snippets.

@denysonique
Created December 27, 2013 16:40
Show Gist options
  • Select an option

  • Save denysonique/8149406 to your computer and use it in GitHub Desktop.

Select an option

Save denysonique/8149406 to your computer and use it in GitHub Desktop.

Revisions

  1. denysonique created this gist Dec 27, 2013.
    9 changes: 9 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    # 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