Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save kevin335200/e19b0dedb40e876e98fcb1d902eda1db to your computer and use it in GitHub Desktop.

Select an option

Save kevin335200/e19b0dedb40e876e98fcb1d902eda1db to your computer and use it in GitHub Desktop.

Revisions

  1. kevin335200 created this gist Jun 25, 2021.
    13 changes: 13 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    #! /bin/bash

    mkdir /mnt/gentoo
    zpool import tank -R /mnt/gentoo

    mount --rbind /dev /mnt/gentoo/dev
    mount --make-rslave /mnt/gentoo/dev
    mount -t proc /proc /mnt/gentoo/proc
    mount --rbind /sys /mnt/gentoo/sys
    mount --make-rslave /mnt/gentoo/sys
    mount --rbind /tmp /mnt/gentoo/tmp
    mount --bind /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
    chroot /mnt/gentoo /bin/bash