Niko Mauno 37f2ddb196 update-alternatives: Fix link relocation support
Commit fcb2633900 which added Debian-style
support for link relocation tries to relocate symbolic link on host OS,
resulting in following-like error when two alternative packages have
symbolic link source located in different directories (/bin/rev ->
/bin/busybox.nosuid and /usr/bin/rev -> /usr/bin/rev.util-linux):

  update-alternatives: renaming rev link from /bin/rev to /usr/bin/rev
  mv: cannot stat '/bin/rev': No such file or directory

Fix the issue by prefixing 'olink' and 'link' variable references with
path to targeted root filesystem's root directory.

Signed-off-by: Niko Mauno <niko.mauno@iki.fi>
Signed-off-by: Alejandro del Castillo <alejandro.delcastillo@ni.com>
2018-11-12 10:06:05 -06:00
2013-12-03 13:19:19 +00:00
2016-06-01 17:17:44 -05:00
2016-06-01 17:17:44 -05:00
2016-06-01 17:17:44 -05:00
2016-06-01 17:17:44 -05:00
2016-06-01 17:17:44 -05:00
2016-06-01 17:17:44 -05:00
2016-06-01 17:17:44 -05:00
Description
Tools for the Opkg lightweight package management system
328 KiB
Languages
Python 54.3%
Shell 44.9%
Makefile 0.8%