Eric Edens via devel <devel@lists.fedoraproject.org> 于 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@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
> 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@lists.fedoraproject.org
>
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org

Reply via email to