Created
April 16, 2023 03:52
-
-
Save mackncheesiest/d0bd65f9d62a7c9e3954ec4e2d9e5a8c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ ! -f /dev/mapper/rootfs ]; then | |
cryptsetup luksOpen /dev/sdb rootfs | |
fi | |
mkdir -p /mnt/gentoo | |
mount /dev/mapper/rootfs /mnt/gentoo | |
mount /dev/sda /mnt/gentoo/boot/efi | |
mkdir -p /mnt/gentoo/{proc,sys,dev} | |
mount -v -t proc none /mnt/gentoo/proc | |
mount -v --rbind /sys /mnt/gentoo/sys | |
mount -v --rbind /dev /mnt/gentoo/dev | |
mount -v --make-rslave /mnt/gentoo/sys | |
mount -v --make-rslave /mnt/gentoo/dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment