/etc/profile
by
, 04-Apr-2018 at 09:54 (2244 Views)
I can verify.
So, after the testing I'll describe my solution (skip to end of this post)
On one of my machines, it somehow had escaped my attention and was still 42.1.
So, taking advantage of the situation, I inspected /etc/profile and found that the trailing back-slashes were there (not missing),
Then to test the perserverance of edits to this file I added a comment to the end of this file and then
Upgraded the machine (from 42.1 to 42.3).
The test comment inserted into /etc/profile survived the upgrade.
I then tested for replacing /etc/profile with a forced re-install.
First, to determine and verify the package which contains the file I ran
Verifying the package is aaa_base, I then ranCode:zypper se -x --provides /etc/profile
Inspecting the file /etc/profile again, I still found the inserted test comment.Code:zypper in -f aaa_base
So, apparently someone has gone out of its way to make sure that the /etc/profile is not over-written.
This may be useful in some cases (I remember a Forum thread which discussed where the official documentation for some app instructed direct edits to /etc/profile) but as we can see in this thread that the behavior is unexpected.
My solution:
Verified this installs a default /etc/profile.Code:# rm /etc/profile # zypper in -f aaa_base
HTH,
TSU