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

dd 的 archlinux 没有 /etc/sysctl.conf 这个文件 #154

Open
hyird opened this issue Sep 19, 2024 · 5 comments
Open

dd 的 archlinux 没有 /etc/sysctl.conf 这个文件 #154

hyird opened this issue Sep 19, 2024 · 5 comments

Comments

@hyird
Copy link

hyird commented Sep 19, 2024

虽说自己touch一个就可以.
但是 这总归算是系统文件残缺?

@bin456789
Copy link
Owner

https://wiki.archlinuxcn.org/wiki/Sysctl#%E9%85%8D%E7%BD%AE

没有 /etc/sysctl.conf 才是正常的,因为它在 archlinux 上不会生效

@hyird
Copy link
Author

hyird commented Sep 19, 2024

那怎么 sysctl -p 还会报错

@bin456789
Copy link
Owner

我的意思是开机时 /etc/sysctl.conf 不会生效
手动 sysctl -p 那当我没说

@hyird
Copy link
Author

hyird commented Sep 19, 2024

哦哦 那现在的正确做法 应该是 创建一个 /etc/sysctl.conf 到 /etc/sysctl.d/99-sysctl.conf 的软链接

@bin456789
Copy link
Owner

哦哦 那现在的正确做法 应该是 创建一个 /etc/sysctl.conf 到 /etc/sysctl.d/99-sysctl.conf 的软链接

嗯,其他发行版就是这样做的

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

No branches or pull requests

2 participants