Bug#848945: grub-common: Empty rpool leaves ZFS systems unbootable

Chris Zubrzycki chris at mid-earth.net
Wed Feb 8 03:01:21 UTC 2017


Good patch, except my root dataset has a - in it’s name, it’s called debian-2 and each major upgrade gets a new version… Please change the grep line to use grep -P -v '\s-‘


zfsbootfs=`zpool get bootfs | sed '2,100!d' |  grep -P -v ‘\s-' | awk {'print $3'} 2>/dev/null || true`

Nothing in that command should have whitespace then a - as far as I can tell, unless it’s a pool without bootfs set.


-chris zubrzycki
- --
PGP ID: 0xA2ABC070
Fingerprint: 26B0 BA6B A409 FA83 42B3  1688 FBF9 8232 A2AB C070
========================================================

"Twice blessed is help unlooked for." --Tolkien



More information about the Pkg-grub-devel mailing list