Hi all,

there was an issue (either due a bug or due design) in the past about RPM OSTree treating %post scriptlets in SPEC file differently than on Fedora Linux - IIUC the explanation was %post scriptlets were applied on the server side of the system with RPM OSTree, thus any configuration changes like switching symlinks with alternatives were not applied/usable for normal user.

Has it got fixed during the time? Or is there a new technology which would do the trick for Silverblue and Fedora Linux alike?

Because there is a user which was used to setting NOEXEC on /usr/bin/vi to prevent running shell from vi as a root when using 'sudo vi' - since the /usr/bin/vi is shell script now and uses exec to spawn the correct binary, NOEXEC flags breaks 'sudo vi' completely.

The only possible solution here I see is to use alternatives in %post scriptlet, but if the situation is the same, the functionality brought by alternatives (automatic switch from vi -> vim and back if vim-enhanced is installed without shell restart) won't work in OSTree.

Thank you in advance!


Zdenek

--
Zdenek Dohnal
Senior Software Engineer
Red Hat, BRQ-TPBC
--
_______________________________________________
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
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to