On Mon, 2019-07-01 at 17:18 -0400, James Antill wrote:
> On Mon, 2019-07-01 at 17:03 -0400, Robbie Harwood wrote:
> > Ben Cotton <bcot...@redhat.com> writes:
> > 
> > > == Detailed Description ==
> > > 
> > > Currently we know how to make an installable OS with packages
> > > that
> > > doesn't require the use of scriptlets, indeed rpm-ostree and
> > > others
> > > have already done this on a significantly bigger scale. So we
> > > plan
> > > to
> > > remove direct scriptlets from most (if not all) of the packages
> > > in
> > > the
> > > main fedora container image for Fedora 31. This means all four
> > > of:
> > > %pre/%post/%preun/%postun. After this change it'd be good to have
> > > some
> > > kind of temporary exception to be granted before those packages
> > > could
> > > add a scriptlet back (post F31 work).
> > 
> > Do I understand correctly that triggers aren't affected here?
> 
>  Yes.
> 
> > > Almost all of the hard work is already done, as rpm can react to
> > > files
> > > being dropped in specified places with known actions (Eg. In this
> > > way
> > > systemd components can create users or files). There are a few
> > > minor
> > > changes needed to packages to move from the old way of doing
> > > things
> > > (Eg. calling adduser) to doing the new thing. Note that while a
> > > program will still be run at installation time, those programs
> > > will
> > > be
> > > few and easily audited (as against the 666 slightly different
> > > ways
> > > of
> > > adding a user we currently have).
> > 
> > Is there a document describing common things that are done with
> > scriptlets and the "proper", non-scriptlet way to do them?  (If
> > not,
> > could one be made?)
> 
>  I don't believe there is a single document atm. ... I could look at
> putting one somewhere, although it's a bit like lumping random things
> together because we happen to be doing them at the same time.

OK, let's talk about concrete package: crypto-policies needs to run
update-crypto-policies --no-check >/dev/null

It currently does it in %post.

It could do it in %posttrans - that would be one option. What are the
other options?

-- 
Tomáš Mráz
No matter how far down the wrong road you've gone, turn back.
                                              Turkish proverb
[You'll know whether the road is wrong if you carefully listen to your
conscience.]

_______________________________________________
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