Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 927402 - sys-fs/lvm2 uses /sbin/thin_check, but thin_provisioning-tools installs in /usr/sbin/
Summary: sys-fs/lvm2 uses /sbin/thin_check, but thin_provisioning-tools installs in /u...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-21 14:00 UTC by Ed Wildgoose
Modified: 2024-03-21 15:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Wildgoose 2024-03-21 14:00:00 UTC
This feels like such a big issue that I initially suspect some error in my config, however, after upgrading to sys-fs/lvm2-2.03.22-r3 my thin volumes no longer mount. Issue is that the /etc/init.d/lvm2 script fails with:



This seems to be down to the following stanza in the ebuild:

    if use lvm && use thin; then
        myeconfargs+=( --with-thin=internal --with-cache=internal )
        local texec
        for texec in check dump repair restore; do
            myeconfargs+=( --with-thin-${texec}="${EPREFIX}"/sbin/thin_${texec} )
            myeconfargs+=( --with-cache-${texec}="${EPREFIX}"/sbin/cache_${texec} )
        done
    else
        myeconfargs+=( --with-thin=none --with-cache=none )
    fi

Here we seem to be forcing the autoconf values for "--with-thin-check=/sbin/thing_check"

However, current sys-block/thin-provisioning-tools-1.0.10 installs the tools into /usr/sbin/

This seems like it could cause boot failures for others?
Comment 1 Ed Wildgoose 2024-03-21 14:02:46 UTC
Oops. Missed pasting in the init.d errors. 

# /etc/init.d/lvm restart
lvm                       | * WARNING: you are stopping a boot service
lvm                       | * Caching service dependencies ...                                                                                                                                                                                [ ok ]
lvm                       | * Stopping the Logical Volume Manager ...
lvm                       |  /sbin/thin_check: execvp failed: No such file or directory
lvm                       |  WARNING: Check is skipped, please install recommended missing binary /sbin/thin_check!
lvm                       |  0 logical volume(s) in volume group "vg_slow" now active                                                                                                                                                         [ ok ]
lvm                       | * Starting the Logical Volume Manager ...
lvm                       |  Found volume group "vg_slow" using metadata type lvm2
lvm                       |  /sbin/thin_check: execvp failed: No such file or directory
lvm                       |  WARNING: Check is skipped, please install recommended missing binary /sbin/thin_check!
lvm                       |  1 logical volume(s) in volume group "vg_slow" now active