Package: u-boot-menu
Version: 4.2.4
Severity: important
Hi,
On my custom Debian + Mobian system, I've installed u-boot-menu while
having apt configured with no-recommends. rsync is just a recommendation
so it was not installed.
However, rsync is used by postinst.d/zz-u-boot-menu script to copy the
devicetree files when the sync dtbs flag is true. So, in my case, those
files were not copied and no warning or error was emitted. So, a silent
failure to copy the devicetree files. The system is unbootable without
those.
That /etc/kernel/postinst.d/zz-u-boot-menu script tests for the present
of rsync command and silently and wrongly skips the syncing if not
found.
Possible solutions:
1. entirely replace rsync with cp(1). (my preferred solution).
Instead of:
rsync -a "${srcdir}/" "${destdir}/"
use:
cp -a "${srcdir}/." "${destdir}/"
That seems equivalent to me (I did some local tests). Notice the dot
('.') at the end of $srcdir.
2. make rsync a dependency of u-boot-menu, not just a recommendation
3. fallback to other sync mechanisms, like cp (see 1.), if rsync is
absent
4. print an error if rsync is absent and syncing cannot be done
Thanks,
Eugen