Skip to content

Instantly share code, notes, and snippets.

View Huh-David's full-sized avatar
😄

David Huh Huh-David

😄
View GitHub Profile
@heywoodlh
heywoodlh / setup-clevis.sh
Last active February 17, 2025 14:01
Ubuntu setup for Clevis
# credit: https://askubuntu.com/a/1475182
# invoke with:
# curl -L https://gist.githubusercontent.com/heywoodlh/b55eb33e248db2b8a7625c1fddc6b8d3/raw/ce517a862ae4b4dd0c7a60912df22c5bcb10d736/setup-clevis.sh -o /tmp/setup-clevis.sh
# sudo bash /tmp/setup-clevis.sh /dev/sda3
disk="$1"
[[ ! -n "${disk}" ]] && echo "Usage: $0 /dev/sda3" && exit 1
[[ -n "${disk}" ]] && [[ ! -e "${disk}" ]] && echo "Disk ${disk} does not exist. Exiting." && exit 1
#install needed packages