Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use 70-yast.conf instead of 30-yast.conf #995

Merged
merged 3 commits into from
Dec 3, 2019

Conversation

imobachgs
Copy link
Contributor

When writing sysctl related settings, YaST will use 70-yast.conf instead of 30-yast.conf to reduce the chance of getting its values overridden.

During the installation/upgrade of yast2.rpm, if a 30-yast.conf is found, it will be renamed to 70-yast.conf. If the 70-yast.conf already exists, the 30-yast.conf will be simply removed (this case should not happen).

@coveralls
Copy link

Coverage Status

Coverage remained the same at 29.969% when pulling 1d64876 on fix-sysctl-yast-conf-path into b5d6a6e on master.

Copy link
Member

@dgdavid dgdavid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR looks good to me as it is, although I left a comment there ;)

@@ -177,6 +177,14 @@ mkdir -p %{buildroot}%{_sysconfdir}/YaST2
%post
%{fillup_only -n yast2}

if [ -f "/etc/sysctl.d/30-yast.conf" ]; then
if [ -f "/etc/sysctl.d/70-yast.conf" ]; then
rm /etc/sysctl.d/30-yast.conf
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From the PR's description

If the 70-yast.conf already exists, the 30-yast.conf will be simply removed (this case should not happen).

If we are sure that it will not happen, I'd simplify this.

Anyway, it looks good to me as it is.

@imobachgs imobachgs merged commit 34edee8 into master Dec 3, 2019
@imobachgs imobachgs deleted the fix-sysctl-yast-conf-path branch December 3, 2019 09:18
@yast-bot
Copy link
Contributor

yast-bot commented Dec 3, 2019

✔️ Public Jenkins job #159 successfully finished
✔️ Created OBS submit request #753133

@yast-bot
Copy link
Contributor

yast-bot commented Dec 3, 2019

✔️ Internal Jenkins job #57 successfully finished
✔️ Created IBS submit request #206886

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants