Re: Packaging question: Rebuild initramfs after adding to dracut.conf.d

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Eric Edens via devel <devel@xxxxxxxxxxxxxxxxxxxxxxx> 于 2021年2月4日周四 上午10:54写道:
I'm working on a package that adds a configuration to dracut.conf.d. [1] To rebuild initramfs, upstream's spec file calls `dracut --force` in `%post` . [2]

Questions:
- Is it recommended that the RPM updates initramfs? 
- If so, what's the recommended method?
I think this should be taken care of by kernel package via 
%transfiletriggerin and transfiletriggerpostun, since there can be multiple initramfs to be updated.

As background, the RPM will be used in the Google Cloud kickstart [3] during image creation, but it will also be used to allow users to import existing installations to run on Google Cloud.

What I've done so far:
- Read through https://docs.fedoraproject.org/en-US/packaging-guidelines/
- Search for example usages of `dracut`, `new-kernel-pkg`, and `installkernel` in http://src.fedoraproject.org/

1. https://github.com/GoogleCloudPlatform/guest-configs/blob/master/src/etc/dracut.conf.d/gce.conf
2. https://github.com/GoogleCloudPlatform/guest-configs/blob/master/packaging/google-compute-engine.spec#L82
3. https://pagure.io/fedora-kickstarts/blob/main/f/fedora-cloud-base-gcp.ks
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux