[Bug 1688890] [NEW] initramfs-zfs should support misc /dev dirs

Jens Elkner 1688890 at bugs.launchpad.net
Sat May 6 19:26:21 UTC 2017


Public bug reported:

Right now 'zfs-initramfs', i.e. /usr/share/initramfs-tools/scripts/zfs
does not support any other directory than /dev for "zpool import ...".
Therefore even if a pool gets created from a different directory like
/dev, say /dev/disk/by-id or /dev/chassis/SYS on next reboot /dev will
be used and thus zpool status will show the /dev/sd* etc. on successful
import. Beside that now a user does not see the original names used in
"zpool create ..." the unstable names like "/dev/sd*" are shown, which
is explicitly NOT recommended.

The following patch introduces the "pseudo" kernel param named "zdirs" -
a comma separated list of dev dirs to scan on import - which gets used
by /usr/share/initramfs-tools/scripts/zfs to honor it.

** Affects: zfs-linux (Ubuntu)
     Importance: Undecided
         Status: New

** Package changed: grub2 (Ubuntu) => zfs-linux (Ubuntu)

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

Title:
  initramfs-zfs should support misc /dev dirs

Status in zfs-linux package in Ubuntu:
  New

Bug description:
  Right now 'zfs-initramfs', i.e. /usr/share/initramfs-tools/scripts/zfs
  does not support any other directory than /dev for "zpool import ...".
  Therefore even if a pool gets created from a different directory like
  /dev, say /dev/disk/by-id or /dev/chassis/SYS on next reboot /dev will
  be used and thus zpool status will show the /dev/sd* etc. on
  successful import. Beside that now a user does not see the original
  names used in "zpool create ..." the unstable names like "/dev/sd*"
  are shown, which is explicitly NOT recommended.

  The following patch introduces the "pseudo" kernel param named "zdirs"
  - a comma separated list of dev dirs to scan on import - which gets
  used by /usr/share/initramfs-tools/scripts/zfs to honor it.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1688890/+subscriptions



More information about the foundations-bugs mailing list