Skip to content

Instantly share code, notes, and snippets.

@Masterxilo
Created December 24, 2018 01:57
Show Gist options
  • Save Masterxilo/7d43ff1861617d18db8b6e23be4ec88f to your computer and use it in GitHub Desktop.
Save Masterxilo/7d43ff1861617d18db8b6e23be4ec88f to your computer and use it in GitHub Desktop.
# 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}'))
@Masterxilo
Copy link
Author

mount -t proc proc proc/
mount -t sysfs sys sys/
mount -o bind /dev dev/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment