FYI:

One can replace the "zpool import -f -a -o cachefile=none -N" line with this:
    local pipe="/tmp/zpool_pipe"
    no_import_pools=$(mkfifo ${pipe}; zpool import -f -a -o cachefile=none -N 
2> ${pipe} | cut -d \' -f 2 ${pipe}; rm ${pipe})

If one wants a list of the pools which can not be imported.

To just discard the error though and keep update-grub from failing this
works fine too:

local discard_pool_import_err=""
discard_pool_import_err=$(zpool import -f -a -o cachefile=none -N 2>/dev/null 
|| true)

Maybe that workaround could be added so update-grub at least doesn't
fail if a zpool which can't be imported is seen?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1848399

Title:
  update-grub fails if zpools with unsupported feature_flags exist

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1848399/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to