Bug 1180939 - update-alternatives: removes link if slave became master
Summary: update-alternatives: removes link if slave became master
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Forgotten User uM1-kgIFHl
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-14 16:01 UTC by Ludwig Nussel
Modified: 2023-04-06 15:29 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ludwig Nussel 2021-01-14 16:01:32 UTC
For the usrmerge some programs need to drop the master link in eg /bin and a link in /usr/bin as master instead. update-alternative deletes such links if the one in /usr was a slave before though.

# /usr/sbin/update-alternatives --install /bin/foo foo /usr/bin/true 15 --slave /usr/bin/foo usr-bin-foo /usr/bin/true
   update-alternatives: using /usr/bin/true to provide /bin/foo (foo) in auto mode
# /usr/sbin/update-alternatives --install /usr/bin/foo foo /usr/bin/true 15
   update-alternatives: renaming foo link from /bin/foo to /usr/bin/foo
   update-alternatives: warning: forcing reinstallation of alternative /usr/bin/true because link group foo is broken
# l {/usr,}/bin/foo
   /usr/bin/ls: cannot access '/usr/bin/foo': No such file or directory
   /usr/bin/ls: cannot access '/bin/foo': No such file or directory
Comment 1 Ludwig Nussel 2021-01-14 16:02:16 UTC
https://build.opensuse.org/request/show/863143