Salta al contenuto

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone
  • I converted another host to pkgbase with `pkgbasify`.

    Mondo freebsd bastillebsd pkgbase
    1
    0 Votazioni
    1 Post
    0 Visualizzazioni
    bastillebsd@fosstodon.org
    I converted another host to pkgbase with `pkgbasify`. Worked great! Even updated the jail base:./pkgbasify --rootdir /usr/local/bastille/releases/15.1-RELEASEBastille even detects that the jail base has been updated, and the next `bastille update 15.1-RELEASE` automatically uses pkg.#FreeBSD #BastilleBSD #pkgbase
  • 0 Votazioni
    3 Post
    0 Visualizzazioni
    mjack@mastodon.bsd.cafe
    Digging a bit deeper, I noticed this in 'freebsd-update.sh':--- # Return 0 if the system is managed using pkgbase, 1 otherwise.check_pkgbase(){ # Packaged base requires that pkg is bootstrapped. if ! pkg -N -r ${BASEDIR} >/dev/null 2>/dev/null; then return 1 fi # uname(1) is used by pkg to determine ABI, so it should exist. # If it comes from a package then this system uses packaged base. if ! pkg -r ${BASEDIR} which /usr/bin/uname >/dev/null; then return 1 fi return 0--- So, pkg bootstrapped and 'uname' from package. https://github.com/freebsd/freebsd-src/blob/main/usr.sbin/freebsd-update/freebsd-update.sh