Skip to content

Instantly share code, notes, and snippets.

@cidkidnix
Created December 11, 2021 20:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cidkidnix/8543d1949e5e47c2056e344c177434eb to your computer and use it in GitHub Desktop.
Save cidkidnix/8543d1949e5e47c2056e344c177434eb to your computer and use it in GitHub Desktop.
sed -i "s|rpool=.*|rpool=\`zdb -l \${GRUB_DEVICE} \| grep -E '[[:blank:]]name' \| cut -d\\\' -f 2\`|" /etc/grub.d/10_linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment