Bug 193228

Summary: freebsd-update(8) -b for jail updates fails on last "install" within major-update
Product: Base System Reporter: Martin Kropfinger <freebsdbugzilla>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Some People CC: emaste, grahamperrin
Priority: ---    
Version: 10.0-RELEASE   
Hardware: amd64   
OS: Any   

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?