1. Some error is reported when we build the package. This issue was found originally on version 059, but I check the latest codes and build it, found it still exists, so report this and attached a fix patch. # lintian --tag-display-limit 0 dracut-core_105-2_amd64.deb running with root privileges is not recommended! E: dracut-core: service-file-is-not-a-file [lib/systemd/system/dracut-cmdline.service] E: dracut-core: service-file-is-not-a-file [lib/systemd/system/dracut-initqueue.service] E: dracut-core: service-file-is-not-a-file [lib/systemd/system/dracut-mount.service] E: dracut-core: service-file-is-not-a-file [lib/systemd/system/dracut-pre-mount.service] E: dracut-core: service-file-is-not-a-file [lib/systemd/system/dracut-pre-pivot.service] E: dracut-core: service-file-is-not-a-file [lib/systemd/system/dracut-pre-trigger.service] E: dracut-core: service-file-is-not-a-file [lib/systemd/system/dracut-pre-udev.service] E: dracut-core: service-file-is-not-a-file [lib/systemd/system/dracut-shutdown-onfailure.service] E: dracut-core: service-file-is-not-a-file [lib/systemd/system/dracut-shutdown.service] E: dracut-core: service-file-is-not-a-file [lib/systemd/system/initrd.target.wants/dracut-cmdline.service] E: dracut-core: service-file-is-not-a-file [lib/systemd/system/initrd.target.wants/dracut-initqueue.service] E: dracut-core: service-file-is-not-a-file [lib/systemd/system/initrd.target.wants/dracut-mount.service] E: dracut-core: service-file-is-not-a-file [lib/systemd/system/initrd.target.wants/dracut-pre-mount.service] E: dracut-core: service-file-is-not-a-file [lib/systemd/system/initrd.target.wants/dracut-pre-pivot.service] E: dracut-core: service-file-is-not-a-file [lib/systemd/system/initrd.target.wants/dracut-pre-trigger.service] E: dracut-core: service-file-is-not-a-file [lib/systemd/system/initrd.target.wants/dracut-pre-udev.service] E: dracut-core: service-file-is-not-a-file [lib/systemd/system/sysinit.target.wants/dracut-shutdown.service] 2. We found dracut cannot regenerate initramfs on the system with ostree, the cause is it cannot correctly find the location of the initramfs on the system with ostree, so I also attached a patch to fix it.
The lintian error may come from the fact that you are using a backports version of dracut which still has the services files in /lib. We already have this in debian/lintian: dracut-core: systemd-service-file-shutdown-problems [usr/lib/systemd/system/*dracut-*.service] The patch for ostree support is a wishlist bug. We are currently not happy with the removal of linux-version and using ls in old style backticks (twice). We have to think about your patch.
Thanks for your response, but in my test, I used the latest codes from https://salsa.debian.org/debian/dracut.git , and just built it again in the bookworm, still see these errors, if replaced *[usr/lib/systemd/system/*dracut-*.service] *to *[lib/systemd/system/*dracut-*.service]*, all lintian errors will be gone, would you please check it again, thanks. It may indeed not be the best option to use *ls*, but I really don't know how to get the correct location of kernel which is in a non-standard path along with the*linux-version* on the system with ostree, would you please give me some suggestions ?
Hi Thomas This is a V2 for ostree patch, and i have attached it. In the new patch, I adjust some codes , would you please check it? thanks.