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
"remaster-antix" package contains a script which overwrites slim.conf #5
Comments
"slim" package must, unconditionally, install /etc/slim.conf the scripts within "cli-installer-antix" and "remaster-antix" packages should be modified so that they only install /etc/slim.conf if id does not already exist (allowing for varying package installation order during build-iso operation). Still need to figure out how to handle /usr/local/bin/UM-set (provided by "user-management-antix" package) so that the content of /etc/slim/conf and /usr/share/slim/slim.template will remain synced. |
Not sure in which direction this is going. I guess it is trying to identify how (and what) is putting its finger in slim.conf. Seems antix-install (minstall) also replaces the string in slim.conf only.
cli-installer does a similar thing but to an original "installation" copy of slim.conf. Why I am not sure as would it not be original when you are installing? Maybe not if it is a remastered copy.
which would break easily if the type was changed slightly (for example a space between # and default_user) User Management does the same as cli-installer but maybe a little more robust by not assuming the line is always the same type
I am not seeing how slim.conf is used with remaster. I only see the file.
and then slim-login seems to grab a fresh copy and append to it.
I have not looked, but is slim.lock and slim.log not the default? why does it need to be specified by slim-login and not the others? So what would be the best way to work?
|
IIRC, 2 files are overwritten by other packages: /etc/slim.conf and /etc/skel/rox/menu Other than (perhaps) the need to place a copy of each of these in the "Templates" subdirectory of the build-iso package, no other packages should provide copies of these files. |
(as noted in TODO file)
$ dpkg-query -S /usr/local/share/live-files/general-files/etc/slim.conf
remaster-antix: /usr/local/share/live-files/general-files/etc/slim.conf
https://github.com/antiX-Linux/remaster/blob/master/live-files/general-files/etc/slim.conf
Also, package "cli-installer-antix" contains a script which will overwrite slim.conf
$ dpkg-query -S /usr/local/bin/cli-installer
cli-installer-antix: /usr/local/bin/cli-installer
Also, /usr/local/bin/UM-set (provided by "user-management-antix" package) overwrites any (EVERY) line within /etc/slim.conf which contains "default_user" or "auto_login" (these are absent from slim.template, and lines containing these are appended to template and written to /etc/slim.conf when user runs the "slim-login" utility) ("Configure autologin" in controlCentre)
Due to appending, no functional conflict... but this action may confuse a sysadmin who had manually edited slim.conf
^--- this action by UM-set differs from the action performed by /usr/local/bin/slim/login
(search/replace vs append)
AND an antiX live system can (will) wind up with non-synced copies of:
/etc/slim.conf
vs
/usr/share/slim/slim.template
vs
/usr/local/share/live-files/general-files/etc/slim.conf
The text was updated successfully, but these errors were encountered: