[arch-projects] [INITSCRIPTS][PATCH 1/4] localtime copy fix in to rc.conf man page
set_timezone function currently respect user choice of symlink to timezone file
or copy it. man page doesn't explain this subtlety which let think that
TIMEZONE parameter in rc.conf doesn't ensure anything.
Signed-off-by: Sébastien Luttringer
Modify our path collection loop to accept the remaining argv as paths to
config files. This overrides the default lookup for config files in
/etc, /lib, and /run so that single config files can be parsed at a time
Credits to Dave Reisner in 11ac21c1cf74
Signed-off-by: Sébastien Luttringer
On Mon, Mar 12, 2012 at 10:54 PM, Sébastien Luttringer
Modify our path collection loop to accept the remaining argv as paths to config files. This overrides the default lookup for config files in /etc, /lib, and /run so that single config files can be parsed at a time
Makes sense in principle. Do you know if any packages yet ship with sysctl files (systemd does, but that doesn't count ;-) )? If so they could call this in post_install, so that makes sense to me. -t
On Mon, Mar 12, 2012 at 11:19 PM, Tom Gundersen
On Mon, Mar 12, 2012 at 10:54 PM, Sébastien Luttringer
wrote: Modify our path collection loop to accept the remaining argv as paths to config files. This overrides the default lookup for config files in /etc, /lib, and /run so that single config files can be parsed at a time
Makes sense in principle. Do you know if any packages yet ship with sysctl files (systemd does, but that doesn't count ;-) )? If so they could call this in post_install, so that makes sense to me.
I don't know if package ship sysctl files, but there is few case where this should be done. It's more an admin facility to tweak a system and be compatible with other distro. Idea behind this commit, is to have the same behaviour in initscripts plugin. If package want trigger it, he can do it with the initscripts binary, calling /usr/lib/initscripts/arch-sysctl. But it's initscripts oriented and not really compatible with systemd and should directly call "sysctl -p hisfile.conf" instead. -- Sébastien Luttringer www.seblu.net
This patch mount kernel binfmt_misc filesystem at boot and allow loading of
a default configuration inspired from systemd binfmt.d way.
Signed-off-by: Sébastien Luttringer
On Mon, Mar 12, 2012 at 10:54 PM, Sébastien Luttringer
This patch mount kernel binfmt_misc filesystem at boot and allow loading of a default configuration inspired from systemd binfmt.d way.
Signed-off-by: Sébastien Luttringer
I'm not necessarily opposed to this, but could you point to some usecases? I assume this will allow us to remove some code from some packages and have them ship a config file instead? Some examples like this would be nice. -t
On Mon, Mar 12, 2012 at 11:12 PM, Tom Gundersen
On Mon, Mar 12, 2012 at 10:54 PM, Sébastien Luttringer
wrote: This patch mount kernel binfmt_misc filesystem at boot and allow loading of a default configuration inspired from systemd binfmt.d way.
Signed-off-by: Sébastien Luttringer
I'm not necessarily opposed to this, but could you point to some usecases? I assume this will allow us to remove some code from some packages and have them ship a config file instead? Some examples like this would be nice. Do you want this examples added in commit message or in a manpages[1]?
You can test this feature by droping a file wine.conf in /etc/binfmt.d with the following content: # Start WINE on Windows executables :DOSWin:M::MZ::/usr/bin/wine: After a reboot, or a succeful run of /usr/lib/initscripts/arch-binfmt, you can run ./toto.exe and it will be lauched automagically with wine as interpreter. You can read more detail on this linux feature in the kernel documentation[2]. I don't believe package currently use this feature. There is a wiki page with example for java[3] where the job is done in rc.local. This patch will allow to do it by initscripts config. [1] http://linuxmanpages.net/manpages/fedora15/man5/binfmt.d.5.html [2] http://www.kernel.org/doc/Documentation/binfmt_misc.txt [3] https://wiki.archlinux.org/index.php/Binfmt_misc_for_Java -- Sébastien Luttringer www.seblu.net
This patch revert patch 042d197b4d989ec64.
Signed-off-by: Sébastien Luttringer
On Mon, Mar 12, 2012 at 10:54 PM, Sébastien Luttringer
This patch revert patch 042d197b4d989ec64.
Signed-off-by: Sébastien Luttringer
This was discussed a lot back and forth. Could you give a summary in the commit message of the pros and cons, and why this is the right thing to do? -t
On Mon, Mar 12, 2012 at 11:13 PM, Tom Gundersen
On Mon, Mar 12, 2012 at 10:54 PM, Sébastien Luttringer
wrote: This patch revert patch 042d197b4d989ec64.
Signed-off-by: Sébastien Luttringer
This was discussed a lot back and forth. Could you give a summary in the commit message of the pros and cons, and why this is the right thing to do?
https://github.com/seblu/arch-initscripts/commit/9f75591c8a56ba7ec1ea20cfe16... Better? -- Sébastien Luttringer www.seblu.net
On Mon, Mar 12, 2012 at 10:54 PM, Sébastien Luttringer
set_timezone function currently respect user choice of symlink to timezone file or copy it. man page doesn't explain this subtlety which let think that TIMEZONE parameter in rc.conf doesn't ensure anything.
IMHO the manpage should stay the same, and we should rather change rc.sysinit to always ensure the symlink (the only point of doing the copy is in case /usr is not mounted, but we don't support that any more). -t
participants (3)
-
Seblu
-
Sébastien Luttringer
-
Tom Gundersen