dracutdevs / dracut

dracut the event driven initramfs infrastructure
https://github.com/dracutdevs/dracut/wiki
GNU General Public License v2.0
598 stars 397 forks source link

test: make dracut directory and package libdir configurable #2484

Closed bdrung closed 1 year ago

bdrung commented 1 year ago

Changes

Make the directory of the dracut.sh script and the package libdir configurable to allow running the test suite out-of-tree. PKGLIBDIR can be pointed to the installed dracut libdir. Use PKGLIBDIR for the location of dracut-init.sh, dracut-install, dracut-util, dracut-cpio, and modules.d.

This change is used to run the test suite against the installed dracut in an autopkgtest for the Debian/Ubuntu package.

Checklist

bdrung commented 1 year ago

Thanks @aafeijoo-suse for pointing it out. I reworked the patches. Now you can set DRACUT and PKGLIBDIR.

Side note: Good news for running the first four tests on Ubuntu against the installed package: https://autopkgtest.ubuntu.com/packages/dracut. amd64 is working, but the other architectures are failing. Patches will be coming. Brace yourself. ;)

bdrung commented 1 year ago

No, thanks to you for working on this. It's good to see some interest from Debian :)

The interest is coming from Ubuntu and was caused by using dracut-install in initramfs-tools: https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/2031185

You need to fix this shell issue: https://github.com/dracutdevs/dracut/actions/runs/5877491623/job/15938056367?pr=2484#step:4:18

Done.

bdrung commented 1 year ago

Fixed commit message title.