← Back to team overview

kernel-packages team mailing list archive

[Bug 1596835] [NEW] libnvpair.so.1 should be in /lib/, not /usr/lib/

 

Public bug reported:

Currently, in Ubuntu 16.04, the package libnvpair1linux puts
libnvpair.so.1 in /usr/lib/, however, tools like zpool and zfs which are
installed in /sbin/ need this library. According to the FHS this means
the required libraries should be in /lib/ in order to allow the user to
install /usr/ on a separate partition that is not immediately available
after boot.

This turns out to be a problem indeed. On one of my systems I had /usr/
on a ZFS filesystem (and /, /lib/, /sbin/, /bin/ on a separate ext4
partition). However, the system failed to boot: it hung while mounting
the ZFS partitions which failed because zpool import didn't work as it
couldn't find libnvpair.so.1.

$ apt-cache policy libnvpair1linux 
libnvpair1linux:
  Installed: 0.6.5.6-0ubuntu9
  Candidate: 0.6.5.6-0ubuntu9
  Version table:
 *** 0.6.5.6-0ubuntu9 500
        500 http://nl.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
        100 /var/lib/dpkg/status
     0.6.5.6-0ubuntu8 500
        500 http://nl.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

$ apt-cache policy zfsutils-linux
zfsutils-linux:
  Installed: 0.6.5.6-0ubuntu9
  Candidate: 0.6.5.6-0ubuntu9
  Version table:
 *** 0.6.5.6-0ubuntu9 500
        500 http://nl.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
        100 /var/lib/dpkg/status
     0.6.5.6-0ubuntu8 500
        500 http://nl.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

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

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to zfs-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1596835

Title:
  libnvpair.so.1 should be in /lib/, not /usr/lib/

Status in zfs-linux package in Ubuntu:
  New

Bug description:
  Currently, in Ubuntu 16.04, the package libnvpair1linux puts
  libnvpair.so.1 in /usr/lib/, however, tools like zpool and zfs which
  are installed in /sbin/ need this library. According to the FHS this
  means the required libraries should be in /lib/ in order to allow the
  user to install /usr/ on a separate partition that is not immediately
  available after boot.

  This turns out to be a problem indeed. On one of my systems I had
  /usr/ on a ZFS filesystem (and /, /lib/, /sbin/, /bin/ on a separate
  ext4 partition). However, the system failed to boot: it hung while
  mounting the ZFS partitions which failed because zpool import didn't
  work as it couldn't find libnvpair.so.1.

  $ apt-cache policy libnvpair1linux 
  libnvpair1linux:
    Installed: 0.6.5.6-0ubuntu9
    Candidate: 0.6.5.6-0ubuntu9
    Version table:
   *** 0.6.5.6-0ubuntu9 500
          500 http://nl.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
          100 /var/lib/dpkg/status
       0.6.5.6-0ubuntu8 500
          500 http://nl.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

  $ apt-cache policy zfsutils-linux
  zfsutils-linux:
    Installed: 0.6.5.6-0ubuntu9
    Candidate: 0.6.5.6-0ubuntu9
    Version table:
   *** 0.6.5.6-0ubuntu9 500
          500 http://nl.archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages
          100 /var/lib/dpkg/status
       0.6.5.6-0ubuntu8 500
          500 http://nl.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

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


Follow ups