[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#618382: zfsutils: Inability to have /usr on a seperate zfs filesystem when using a zroot.



Package: zfsutils
Version: 8.1-4
Severity: normal
Usertags: kfreebsd

If running Debian/kFreeBSD's root filesystem on zfs, if one attempts to put /usr in a sub filesystem the system will no longer boot.

Example filesystem layout
NAME              MOUNTPOINT
zroot             /zroot
zroot/debian      /
zroot/debian/usr  /usr
zroot/home        /home

By default, the installer will place the entire filesytem in the zroot, without creating any additional sub filesystems. ZFSs flexibility encourages the use of
many filessytems to facilitate the fine grained control of ZFSs more advanced features such as snapshots, compression, deduplication, encryption, etc.

The reason why the system fails to boot is during init, to mount the additional filesystems, /sbin/zfs is called, which depends on /lib/libgeom.so.0, which in
turn depends on /usr/lib/libexpat.so.1. If /usr/lib does not reside on the same filesystem as the kernel mounted for root, /sbin/zfs fails to run, and thus can
not mount the additional filesystems.

On FreeBSD libgeom depends on /lib/libbsdxml instead of libexpat, thus upstream is unaffected by this issue.

-- System Information:
Debian Release: 6.0
  APT prefers squeeze-updates
  APT policy: (500, 'squeeze-updates'), (500, 'stable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages zfsutils depends on:
ii  libbsd0                       0.2.0-1    utility functions from BSD systems
ii  libc0.1                       2.11.2-10  Embedded GNU C Library: Shared lib
ii  libgeom0                      8.1-5      FreeBSD GEOM library
ii  libnvpair0                    8.1-4      OpenSolaris name-value pair librar
ii  libuutil0                     8.1-4      OpenSolaris userland utility libra
ii  libzfs0                       8.1-4      FreeBSD ZFS library

zfsutils recommends no packages.

zfsutils suggests no packages.

-- no debconf information



Reply to: