Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ubuntu 20.04 - custom package instructions fail with an initramfs based installation #16289

Open
AndrewJDR opened this issue Jun 22, 2024 · 1 comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@AndrewJDR
Copy link

AndrewJDR commented Jun 22, 2024

(This is for the zfs-2.2.4 tag)

On Ubuntu 20.04, running the following command sequence from using the zfs documentation on Ubuntu 20.04 with initramfs installed rather than dracut produces the failure below.

$ ./configure
$ make native-deb-utils
make[2]: Entering directory '/home/dev/Documents/src/zfs-224'
find debian/tmp/lib -name '*.la' -delete
dh_install
dh_install: warning: Cannot find (any matches for) "usr/lib/dracut" (tried in ., debian/tmp)

dh_install: warning: openzfs-zfs-dracut missing files: usr/lib/dracut
dh_install: error: missing files, aborting
make[2]: *** [debian/rules:157: override_dh_install] Error 255
make[2]: Leaving directory '/home/dev/Documents/src/zfs-224'
make[1]: *** [debian/rules:28: binary] Error 2
make[1]: Leaving directory '/home/dev/Documents/src/zfs-224'
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
make: *** [Makefile:14449: native-deb-utils] Error 2

Note, it's not possible to have both dracut and initramfs installed at the same time on Ubuntu. The zfs documentation has the following note # deb-based systems usually use initramfs which suggests that it should be possible to build these packages with initramfs installed, rather than dracut. It'd be good to either change the docs to state that initramfs is not supported, or fix the build script to work without dracut.

@usaleem-ix
Copy link
Contributor

I have tried to reproduce this issue, but unfortunately have not been able to do so. Packages build fine for me on a fresh system with initramfs installed rather than dracut. Any steps to reproduce the issue would help investigate it further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants