Skip to content

Instantly share code, notes, and snippets.

View somebodykot's full-sized avatar

somebodykot somebodykot

View GitHub Profile
#! /usr/bin/env bash
if [ -z "$1" ] ; then
mkdir /mnt/tmp/grub/
cp "$0" /mnt/tmp/grub/
# Chroot
mount --bind /dev /mnt/dev/
mount --bind /dev/pts /mnt/dev/pts
mount --bind /proc /mnt/proc