Comment 10 for bug 1848399

Revision history for this message
satmandu (satadru-umich) wrote : Re: experimental zfs install fails w/ grub error

"zpool import -f -a -o cachefile=none -N" is throwing an error when a zpool isn't importable.

Changing this line:
    zpool import -f -a -o cachefile=none -N 2>/dev/null
to
    zpool import -f -a -o cachefile=none -N 2>/dev/null || true
Allows update-grub to succeed.

There's still an error, but it doesn't appear to be fatal.

Worth noting that the function import_pools has the comment "We have to ignore zpool import output, as potentially multiple / will be available, and we need to autodetect all zpools this way with their real mountpoints."

So to actually do that one needs to ignore the error from zpool import. (I don't see any zpool import flags which would avoid throwing that error.)

This will happen if any zpools are on the system with zfs feature flags not supported by the zfs version in the installer image.