Roger Marquis <marquis at roble.com> writes:> Problem with freebsd-update is that it has some of the same scope issues > as installworld. We've also had problems defining "-r" (in a jail) when > the booted kernel is not the revision we want to build to. Doesn't help > that "-r" doesn't parse patch levels.I do it all the time: $ sudo env UNAME_r=X.Y-RELEASE freebsd-update fetch install Patch levels don't matter to freebsd-update, it will look at what's actually installed and not what the kernel says (which is not necessarily correct anyway, because some updates don't touch the kernel). It just needs to know the correct release. Not sure what you mean by scope issues. DES -- Dag-Erling Sm?rgrav - des at des.no
Dag-Erling Sm?rgrav <des at des.no> writes:> $ sudo env UNAME_r=X.Y-RELEASE freebsd-update fetch installActually, you want to do this from *outside* the jail, partly out of healthy paranoia and partly so freebsd-update will re-use previously downloaded indexes and patches: $ sudo env UNAME_r=X.Y-RELEASE freebsd-update -b /path/to/jail fetch install Don't worry about conflicts - freebsd-update names its working directory after the sha256 sum of the destination directory, so you can fetch, merge, install and rollback updates for multiple jails as well as the host independently of eachother. DES -- Dag-Erling Sm?rgrav - des at des.no
> DES wrote: > I do it all the time: > $ sudo env UNAME_r=X.Y-RELEASE freebsd-update fetch installNot sure if using a jail to test is relevant but this never updates (my) binaries to the specified RELEASE/RELENG, only to the current kernel's patch level. Then there's the issue of specifying -RELEASE to mean -RELENG.> Not sure what you mean by scope issues.That's referring back to the original question of buildworld/installworld vs "cd /usr/src/path/to/patched/binary;make install" (vs freebsd-update) and the granularity of respective updates.> Actually, you want to do this from *outside* the jail, partly out of > healthy paranoia and partly so freebsd-update will re-use previously > downloaded indexes and patchesUpdates to non-jailed environments are the preferred method to be sure but patching and testing base updates in a jail can be more convenient. Roger