Files
poky/meta/recipes-devtools
Niko Mauno da35b05c7f opkg-utils: Fix update-alternatives link relocation
Recently Debian-style support for link relocation was added to
'update-alternatives' script, but it fails under circumstances where
host rootfs root directory differs from target rootfs root directory
and two alternative packages provide a symbolic link with source
located in different directories.

An example of the case is busybox provided /bin/rev (symlinking to
/bin/busybox.nosuid) and util-linux provided /usr/bin/rev (symlinking
to /usr/bin/rev.util-linux) in which case following failure occurs
during image recipe's do_rootfs() task:

  ERROR: core-image-minimal-1.0-r0 do_rootfs: Postinstall scriptlets of ['util-linux'] have failed. If the intention is to defer them to first boot,
  then please place them into pkg_postinst_ontarget_${PN} ().
  Deferring to first boot via 'exit 1' is no longer supported.
  Details of the failure are in .../tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.
  ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs

Looking in log.do_rootfs file, following relevant lines can be observed:

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

Mitigate issue by applying patch which adds target root filesystem root
directory path prefix to failing 'mv' calls relevant variable references

(From OE-Core rev: f0912e23629758fe4303284e7db8f4089bb7b4cb)

(From OE-Core rev: 58f062843008c42d28f14c42fb5f991aef73728e)

Signed-off-by: Niko Mauno <niko.mauno@iki.fi>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-01-08 20:14:42 +00:00
..
2018-11-07 23:08:55 +00:00
2018-11-09 15:27:34 +00:00
2018-09-10 12:13:06 +01:00
2018-07-05 00:22:08 +01:00
2018-09-21 18:45:46 -07:00
2018-08-23 18:02:23 +01:00
2018-08-23 18:02:23 +01:00
2018-06-27 13:55:21 +01:00
2018-06-18 11:07:57 +01:00
2018-03-20 09:59:32 +00:00
2018-03-06 06:43:10 -08:00
2018-10-18 23:26:35 +01:00
2018-10-08 16:04:12 +01:00
2018-10-29 17:26:47 +00:00
2018-10-25 14:53:44 +01:00
2018-03-09 09:17:03 -08:00
2018-05-11 07:49:37 +01:00
2018-01-02 17:24:37 +00:00
2018-01-30 12:53:16 +00:00
2018-03-11 06:27:01 -07:00
2018-03-31 09:48:42 +01:00
2018-09-20 05:41:32 -07:00
2018-11-07 23:08:54 +00:00
2017-12-18 18:03:56 +00:00
2018-08-23 07:50:01 +01:00
2018-10-16 20:35:43 +01:00
2018-09-11 10:46:17 +01:00
2018-09-21 18:45:47 -07:00
2018-11-07 23:08:54 +00:00
2018-08-29 10:42:51 +01:00
2018-10-09 19:04:02 +01:00
2018-06-21 09:34:40 +01:00
2018-03-09 09:17:03 -08:00
2018-02-06 11:06:29 +00:00
2018-10-12 16:57:21 +01:00
2018-11-09 15:27:34 +00:00