Created
December 11, 2021 20:37
-
-
Save cidkidnix/8543d1949e5e47c2056e344c177434eb 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
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