Skip to content

dracut fails to work if installed in /usr/local #2629

Open
@ahuebi

Description

@ahuebi

Describe the bug
dracut fails to work if installed in /usr/local

Distribution used
Linux Mint 21.3

Dracut version
/usr/local/bin/dracut --version

dracut

Init system
n/a

To Reproduce
git clone https://github.com/dracutdevs/dracut.git
cd dracut
./configure --prefix /usr/local
make
sudo make install
type dracut

dracut is hashed (/usr/local/bin/dracut)

dracut --kver 6.7.6

dracut[F]: Cannot find /usr/lib/dracut/dracut-init.sh.

dracut[F]: Are you running from a git checkout?

dracut[F]: Try passing -l as an argument to /usr/local/bin/dracut

dracut -l --kver 6.7.6

dracut[F]: Cannot find /usr/lib/dracut/dracut-init.sh.

dracut[F]: Are you running from a git checkout?

dracut[F]: Try passing -l as an argument to /usr/local/bin/dracut

Expected behavior
Build of an initramfs image

Additional context
Add any other context you like about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugOur bugs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions