Solved `ezjail-admin update -u` leads to "Could not create kernel backup directory"

quamenzullo

Active Member

Reaction score: 6
Messages: 104

Hello,

I've had a problem similar to this one, though other files were concerned, and am trying to apply the suggested workaround (only changed the path to my basejail since it is in /srv):

Code:
$ sudo mkdir /basejail/
$ sudo mount -t nullfs -o ro /srv/basejail/ /basejail/
$ sudo /usr/sbin/freebsd-update -b /srv/newjail fetch
But after that, when I run
Code:
ezjail-admin update -u
from the host, I get another error:

Code:
# ezjail-admin update -u
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 4 mirrors found.
Fetching metadata signature for 10.2-RELEASE from update6.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

No updates needed to update system to 10.2-RELEASE-p15.
No updates are available to install.
Run '/usr/sbin/freebsd-update fetch' first.
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 4 mirrors found.
Fetching metadata signature for 10.2-RELEASE from update3.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

The following files will be updated as part of updating to 10.2-RELEASE-p15:
/var/db/mergemaster.mtree
Installing updates...rm: /srv/newjail//boot/kernel.old/.freebsd-update: Read-only file system
rm: /srv/newjail//boot/kernel.old: Read-only file system
touch: /srv/newjail//boot/kernel.old/.freebsd-update: Read-only file system
Could not create kernel backup directory
I have seen a similar error has been discussed here, but in my case the error shows up from the host, not from inside the jail.

So, is there something to do to solve the problem?
 
OP
OP
quamenzullo

quamenzullo

Active Member

Reaction score: 6
Messages: 104

Got stuck with this problem for a while, so in case some are still looking for an answer: ezjail-admin install -p (coudln't find this stated clearly in other threads).


For information, I was getting either

Code:
Installing updates...mkdir: /srv/newjail//boot: No such file or directory
mtree: /srv/newjail//boot/kernel: No such file or directory
mtree: /srv/newjail//boot/kernel.old: No such file or directory
touch: /srv/newjail//boot/kernel.old/.freebsd-update: No such file or directory
Could not create kernel backup directory
Or, after mount -t nullfs -o ro /srv/basejail/ /basejail/:

Code:
# ezjail-admin update -u
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 4 mirrors found.
Fetching metadata signature for 10.2-RELEASE from update5.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.
The following files will be updated as part of updating to 10.2-RELEASE-p18:
/bin/freebsd-version
.
.
.
Installing updates... done.
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 4 mirrors found.
Fetching metadata signature for 10.2-RELEASE from update5.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

The following files will be updated as part of updating to 10.2-RELEASE-p18:
/var/db/mergemaster.mtree
Installing updates...rm: /srv/newjail//boot/kernel.old/.freebsd-update: Read-only file system
rm: /srv/newjail//boot/kernel.old: Read-only file system
touch: /srv/newjail//boot/kernel.old/.freebsd-update: Read-only file system
Could not create kernel backup directory
 
Top