Menu

Code-git Merge Request #1: Fix installation of systemd services (merged)

Merging...

Merged

Something went wrong. Please, merge manually

Checking if merge is possible...

Something went wrong. Please, merge manually

Aska Wu wants to merge 3 commits from /u/askawu/ipmiutil/ to master, 2018-10-31

Fix couple issues found during upgrade from centos 6 to centos 7.

While upgrade to centos 7, ipmiutil systemd services won't get installed. Though systemd is compatible for legacy sysv scripts but they cannot be started automatically when system boots up.

Besides, make systemd scriptlets, such as %systemd_post, work on CentOS system. And prevent duplicated IINITDIR in initutil.env, eventhough I don't really know what it is for.

Commit Date  
[4df387] (upgrade_rpm_centos) by Aska.Wu Aska.Wu

Prevent duplicated IINITDIR in ipmiutil.env

2018-10-22 07:40:11 Tree
[e34ed9] by Aska.Wu Aska.Wu

Run systemd scriptlets on Centos system

Run helper macros like %systemd_post and %systemd_preun on CentOS system

2018-10-22 07:39:39 Tree
[01c09a] by Aska.Wu Aska.Wu

Fix systemd files don't get installed after rpm upgrade

Refine %post to install sysv/systemd files when both install and update.
Refine %postun to remove sys/systemd files only when uninstall.

2018-10-22 07:39:09 Tree

Discussion

  • Andy Cress

    Andy Cress - 2018-10-26

    I think these changes are good, but I did have a question about the context. You said upgrading from CentOS6 to CentOS7. I presume that means switching to CentOS7 or reinstalling the OS? There is not a reliable method to upgrade (in place) from 6 to 7 that I am aware of. I am aware that Red Hat started a project for that, but it is pre-Alpha and incomplete.

     
    • Aska Wu

      Aska Wu - 2018-10-31

      It seems too late to reply your question...:)

      Yes, you're right, there's no reliable method. For our internal project, we use https://github.com/upgrades-migrations/redhat-upgrade-tool and https://github.com/upgrades-migrations/redhat-upgrade-dracut to upgrade to CentOS 7.

      And I found systemd services are installed first but removed at the end of rpm upgrade. That's the problem these patches try to solve.

       
  • Andy Cress

    Andy Cress - 2018-10-29
    • Status: open --> merged
     
  • Andy Cress

    Andy Cress - 2018-10-29

    Merged the changes to master. I will test the result against both Red Hat and SuSE to see if any further fine-tuning is needed or not.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.