Package: partman-target Version: 75 Severity: wishlist Tags: patch User: debian-...@lists.debian.org Usertags: zfs
check.d/proper_mountpoints prevents placing mount points in a subdirectory of /lib. At least on GNU/kFreeBSD, using /lib/modules as mount point is not only supported but even mandatory for certain configurations when using ZFS. I traced the addition of "/lib*" to commit 3a083d4f9167b52155aff7b1d2e431da4ea031a1 by Colin Watson (CCed). Assuming the intent was to match all directories in / that begin with "lib" (i.e. /lib{,32,64}), my proposed patch is to list them explicitly. -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: kfreebsd-amd64 (x86_64) Kernel: kFreeBSD 8.2-1-amd64 Locale: LANG=ca_AD.UTF-8, LC_CTYPE=ca_AD.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff --git a/check.d/proper_mountpoints b/check.d/proper_mountpoints index 497882e..c5db16e 100755 --- a/check.d/proper_mountpoints +++ b/check.d/proper_mountpoints @@ -77,7 +77,7 @@ must_be_on_root () { for mp in $mountpoints; do case $mp in - /bin|/dev|/etc|/lib*|/media|/sbin) + /bin|/dev|/etc|/lib|/lib32|/lib64|/media|/sbin) db_subst partman-target/must_be_on_root MOUNTPOINT "$mp" db_capb align db_input critical partman-target/must_be_on_root || true