Skip to content

Instantly share code, notes, and snippets.

@mrueg
Last active October 24, 2016 10:57
Show Gist options
  • Save mrueg/92ac374da822b2ad0f251f87e891d9a2 to your computer and use it in GitHub Desktop.
Save mrueg/92ac374da822b2ad0f251f87e891d9a2 to your computer and use it in GitHub Desktop.
#!/bin/bash
mkdir -p /mnt/gentoo
mount LABEL="root" /mnt/gentoo
mkdir -p /mnt/gentoo/boot
mount LABEL="BOOT" /mnt/gentoo/boot
cp -L /etc/resolv.conf /mnt/gentoo/etc/
mount -t proc proc /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --make-rslave /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
mount --make-rslave /mnt/gentoo/dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment