Created
December 24, 2018 01:57
-
-
Save Masterxilo/7d43ff1861617d18db8b6e23be4ec88f to your computer and use it in GitHub Desktop.
This file contains 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
# use e.g. to derive | |
# INSTALL_DRIVE | |
# param for grub-install from the --efi-directory param | |
# $1 is e.g. /boot/efi | |
# then this will give you the current boot device | |
# note: grub-install creates device GUID specific boot config - will stop working when you assign new gpt partition guids | |
echo /dev/$(lsblk -no pkname $(df -P $1 | awk 'END{print $1}')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mount -t proc proc proc/
mount -t sysfs sys sys/
mount -o bind /dev dev/