[opensuse-factory] override sysctl.d settings ?
I created the following file: /etc/sysctl.d/ipv6tempaddr.conf --- net.ipv6.conf.default.use_tempaddr = 0 --- It seemed to be being ignored, so I checked dmesg: systemd-sysctl[258]: Duplicate assignment of net/ipv6/conf/default/use_tempaddr in file '/etc/sysctl.d/ipv6tempaddr.conf', ignoring. I know /etc/sysctl.conf says: # To disable or override a distribution provided file just place a # file with the same name in /etc/sysctl.d/ but it seems pretty silly to have to copy all of /usr/lib/sysctl.d/50-default.conf to override a single setting? -- Per Jessen, Zürich (17.2°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Per Jessen wrote:
I created the following file:
/etc/sysctl.d/ipv6tempaddr.conf
--- net.ipv6.conf.default.use_tempaddr = 0 ---
It seemed to be being ignored, so I checked dmesg:
systemd-sysctl[258]: Duplicate assignment of net/ipv6/conf/default/use_tempaddr in file '/etc/sysctl.d/ipv6tempaddr.conf', ignoring.
This is on 13.1 Milestone2. -- Per Jessen, Zürich (17.3°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Am 03.07.2013 14:22, schrieb Per Jessen:
I created the following file:
/etc/sysctl.d/ipv6tempaddr.conf
Just a guess: try 99-ipv6tempaddr.conf
--- net.ipv6.conf.default.use_tempaddr = 0 ---
It seemed to be being ignored, so I checked dmesg:
systemd-sysctl[258]: Duplicate assignment of net/ipv6/conf/default/use_tempaddr in file '/etc/sysctl.d/ipv6tempaddr.conf', ignoring.
I know /etc/sysctl.conf says:
# To disable or override a distribution provided file just place a # file with the same name in /etc/sysctl.d/
but it seems pretty silly to have to copy all of /usr/lib/sysctl.d/50-default.conf to override a single setting?
Let's hope that 99-xxx overrides 50-default :-) -- Stefan Seyfried "If your lighter runs out of fluid or flint and stops making fire, and you can't be bothered to figure out about lighter fluid or flint, that is not Zippo's fault." -- bkw -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Op woensdag 3 juli 2013 17:00:35 schreef Stefan Seyfried:
Am 03.07.2013 14:22, schrieb Per Jessen:
I created the following file:
/etc/sysctl.d/ipv6tempaddr.conf
Just a guess: try 99-ipv6tempaddr.conf
--- net.ipv6.conf.default.use_tempaddr = 0 ---
It seemed to be being ignored, so I checked dmesg:
systemd-sysctl[258]: Duplicate assignment of net/ipv6/conf/default/use_tempaddr in file '/etc/sysctl.d/ipv6tempaddr.conf', ignoring.
I know /etc/sysctl.conf says:
# To disable or override a distribution provided file just place a # file with the same name in /etc/sysctl.d/
but it seems pretty silly to have to copy all of /usr/lib/sysctl.d/50-default.conf to override a single setting?
Let's hope that 99-xxx overrides 50-default :-)
The comment in /etc/sysctl.conf reads: #### # # /etc/sysctl.conf is meant for local sysctl settings # # sysctl reads settings from the following locations: # /boot/sysctl.conf-<kernelversion> # /lib/sysctl.d/*.conf # /usr/lib/sysctl.conf.d/*.conf # /usr/local/lib/sysctl.d/*.conf # /etc/sysctl.d/*.conf # /run/sysctl.d/*.conf # /etc/sysctl.conf # # To disable or override a distribution provided file just place a # file with the same name in /etc/sysctl.d/ # # See sysctl.conf(5) and sysctl(8) for more information # #### In case you use NetworkManager you can specify it for IPv6 in Basic Settings Privacy Extensions. -- fr.gr. Freek de Kruijf -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Stefan Seyfried wrote:
Am 03.07.2013 14:22, schrieb Per Jessen:
I created the following file:
/etc/sysctl.d/ipv6tempaddr.conf
Just a guess: try 99-ipv6tempaddr.conf
Well, it changed the behaviour. I didn't get the duplicate assignment complaint from systemd this time, but my setting of setting "net.ipv6.conf.default.use_tempaddr" was ignored :-( Then I tried using /etc/sysctl.d/10-ipv6tempaddr.conf, which worked! -- Per Jessen, Zürich (17.4°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Am 03.07.2013 17:50, schrieb Per Jessen:
Stefan Seyfried wrote:
Am 03.07.2013 14:22, schrieb Per Jessen:
I created the following file:
/etc/sysctl.d/ipv6tempaddr.conf
Just a guess: try 99-ipv6tempaddr.conf
Well, it changed the behaviour. I didn't get the duplicate assignment complaint from systemd this time, but my setting of setting "net.ipv6.conf.default.use_tempaddr" was ignored :-(
Then I tried using /etc/sysctl.d/10-ipv6tempaddr.conf, which worked!
Ok, so the first one wins, not the last one? Interesting, and IIUC exactly the other way round than the way udev rules work. But what matters most is that it works for you now :-) Best regards, Stefan -- Stefan Seyfried "If your lighter runs out of fluid or flint and stops making fire, and you can't be bothered to figure out about lighter fluid or flint, that is not Zippo's fault." -- bkw -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Am 03.07.2013 20:51, schrieb Stefan Seyfried:
Am 03.07.2013 17:50, schrieb Per Jessen:
Stefan Seyfried wrote:
Am 03.07.2013 14:22, schrieb Per Jessen:
I created the following file:
/etc/sysctl.d/ipv6tempaddr.conf
Just a guess: try 99-ipv6tempaddr.conf
Well, it changed the behaviour. I didn't get the duplicate assignment complaint from systemd this time, but my setting of setting "net.ipv6.conf.default.use_tempaddr" was ignored :-(
Then I tried using /etc/sysctl.d/10-ipv6tempaddr.conf, which worked!
Ok, so the first one wins, not the last one? Interesting, and IIUC exactly the other way round than the way udev rules work.
note that the code says it is the other way round, and my testing (on Factory) shows the same: seife@susi:~> sysctl --system 2>/dev/null * Applying /boot/sysctl.conf-3.10.0-1.gf080c74-desktop ... * Applying /etc/sysctl.d/10-abc.conf ... * Applying /usr/lib/sysctl.d/50-default.conf ... * Applying /etc/sysctl.d/90-xyz.conf ... * Applying /etc/sysctl.conf ... (I did create empty 10-abc.conf and 90-xyz.conf before) No idea why it's the other way round for you... -- Stefan Seyfried "If your lighter runs out of fluid or flint and stops making fire, and you can't be bothered to figure out about lighter fluid or flint, that is not Zippo's fault." -- bkw -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Stefan Seyfried wrote:
Am 03.07.2013 20:51, schrieb Stefan Seyfried:
Am 03.07.2013 17:50, schrieb Per Jessen:
Stefan Seyfried wrote:
Am 03.07.2013 14:22, schrieb Per Jessen:
I created the following file:
/etc/sysctl.d/ipv6tempaddr.conf
Just a guess: try 99-ipv6tempaddr.conf
Well, it changed the behaviour. I didn't get the duplicate assignment complaint from systemd this time, but my setting of setting "net.ipv6.conf.default.use_tempaddr" was ignored :-(
Then I tried using /etc/sysctl.d/10-ipv6tempaddr.conf, which worked!
Ok, so the first one wins, not the last one? Interesting, and IIUC exactly the other way round than the way udev rules work.
note that the code says it is the other way round, and my testing (on Factory) shows the same:
seife@susi:~> sysctl --system 2>/dev/null * Applying /boot/sysctl.conf-3.10.0-1.gf080c74-desktop ... * Applying /etc/sysctl.d/10-abc.conf ... * Applying /usr/lib/sysctl.d/50-default.conf ... * Applying /etc/sysctl.d/90-xyz.conf ... * Applying /etc/sysctl.conf ...
(I did create empty 10-abc.conf and 90-xyz.conf before)
No idea why it's the other way round for you...
Well, let's see: chestnut:~ # sysctl --system | grep Apply * Applying /boot/sysctl.conf-3.10.0-rc4-1-default ... * Applying /etc/sysctl.d/10-ipv6tempaddr.conf ... * Applying /usr/lib/sysctl.d/50-default.conf ... * Applying /etc/sysctl.conf ... 10-ipv6tempaddr.conf: net.ipv6.conf.default.use_tempaddr = 0 50-default.conf: net.ipv6.conf.default.use_tempaddr = 2 /etc/sysctl.conf : empty # find /proc -name \*tempaddr\* | xargs cat 0 2 0 0 0 -1 It seems quite clear that the default was changed when I ran 'sysctl' above, but that the settings must have been correctly set at boot-time. When I was out googling yesterday, I noticed this report which seems to address a similar issue: https://bugzilla.redhat.com/show_bug.cgi?id=924433 -- Per Jessen, Zürich (16.8°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (3)
-
Freek de Kruijf
-
Per Jessen
-
Stefan Seyfried