Bug 193228 - freebsd-update(8) -b for jail updates fails on last "install" within major-update
Summary: freebsd-update(8) -b for jail updates fails on last "install" within major-up...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.0-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-01 17:26 UTC by Martin Kropfinger
Modified: 2022-12-18 20:21 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Kropfinger 2014-09-01 17:26:49 UTC

    
Comment 1 Martin Kropfinger 2014-09-01 17:34:48 UTC
Updating a jails, for patch levels, can be done with freebsd-update(8). I tried updating a jail with freebsd-update from 9.2-p10 to 10.0-p7.

At first i set UNAME_r using setenv to 9.2-RELEASE-p10 and did the:

freebsd-update upgrade -r 10.0-RELEASE -b /usr/jails/wiki

Followed by freebsd-update install and again freebsd-update install. During this I restarted the jail.

After this I rebuild all ports inside the jail. At last I tried the last freebsd-install with:
freebsd-update upgrade -r 10.0-RELEASE -b /usr/jails/wiki

freebsd-install(8) returned:

Installing updates...rmdir: /usr/jails/wiki//var/named/etc/namedb/master: Directory not empty
rmdir: /usr/jails/wiki//var/named/etc/namedb: Directory not empty
rmdir: /usr/jails/wiki//var/named/etc: Directory not empty
rmdir: /usr/jails/wiki//var/named: Directory not empty
 done.

So the paths seem to be handled in a wrong way.

The jail can't be started at all because oh wrong libs.
Comment 2 Ed Maste freebsd_committer freebsd_triage 2022-12-14 16:57:46 UTC
I am sorry that nobody has investigated this issue since it was submitted.

Does this issue still occur?