Open swills opened 3 years ago
I'll try to add back compat for it. But it's such a small script why do we even allow not building it? Is there a concern about security or someone wrongly using it on the target system?
I'll try to add back compat for it. But it's such a small script why do we even allow not building it? Is there a concern about security or someone wrongly using it on the target system?
I think it's a combination of vendors not wanting/needing it and potentially using it wrongly on systems built from source or using pkgbase. Which brings up a whole other issue of updating jails that are using pkgbase, but I suppose that's a separate issue to address later.
Prerequisites
Describe the bug
A host built with
WITHOUT_FREEBSD_UPDATE=yes
doesn't have/usr/sbin/freebsd-update
installed. This prevents updating jails that are created using ftp/http.How to reproduce
Steps to reproduce the behavior:
WITHOUT_FREEBSD_UPDATE=yes
set in/etc/src.conf
, runmake delete-old
-m http
poudriere jail -u
sed: /usr/sbin/freebsd-update: No such file or directory
Expected behavior
Poudriere uses
/usr/sbin/freebsd-update
from the jail to update the jail, instead of the one from the host, and the update succeeds.Screenshots
Environment
Additional context
N/A