Solved Corrupt Snapshot Error Portsnap

D

Deleted member 62636

Guest
Hello, I am trying to install programs from ports collection in my jail but I am having files/f9b2bc14436e0db36c374a6943cc990c652b5af966ddf17afcf3effc6f657cf6.gz not found -- snapshot corrupt. error when trying to install ports collection via portnsap extract.
uname -a output:
FreeBSD MyJail 12.2-RELEASE-p3 FreeBSD 12.2-RELEASE-p3 GENERIC amd64

I tried doing rm -rf /usr/ports && rm /var/db/portsnap/tag && portsnap fetch extract update but It didn't work.

Thanks!
 
adding mount.devfs; to the jail.conf solved the issue.
 
For my jails I mount 'ports' from host-system.
It works fine, when host and jails runs the same FreeBSD version.

host:
/etc/jail.conf
Code:
jailname {
mount.fstab = "/etc/fstab.jailname";
}

/etc/fstab.jailname
Code:
# Device        Mountpoint      FStype  Options Dump    Pass#
/usr/ports      /home/jails/jailname/usr/ports/   nullfs  ro      0       0
/usr/local/distfiles /home/jails/jailname/usr/local/distfiles     nullfs  rw      0       0

At the host and inside the jails:
/etc/make.conf
Code:
DISTDIR?=/usr/local/distfiles
#PACKAGES?=/usr/local/packages
WRKDIRPREFIX?=/usr/local/portbuild
PORTSDIR?=/usr/ports

Create these directories if needed.
 
Back
Top