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 | |
---|---|---|
2018-10-22 07:40:11 | Tree | |
[e34ed9]
by
![]() 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
![]() Fix systemd files don't get installed after rpm upgrade Refine %post to install sysv/systemd files when both install and update. |
2018-10-22 07:39:09 | Tree |
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.
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.
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.