Skip to content

Instantly share code, notes, and snippets.

@dlangille
Created January 5, 2015 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dlangille/66fd6df0fd278124831d to your computer and use it in GitHub Desktop.
Save dlangille/66fd6df0fd278124831d to your computer and use it in GitHub Desktop.
poudriere jail -u -j : updating the jail
Note that all existing packages are cleared.
[dan@slocum:~] $ sudo poudriere bulk -v -j 93amd64 -p default -z master-list devel/p5-Exporter-Tinyorter-Tiny
[00:00:00] ====>> Creating the reference jail... done
[00:00:00] ====>> Mounting system devices for 93amd64-default-master-list
[00:00:00] ====>> Mounting ports/packages/distfiles
[00:00:00] ====>> Stashing existing package repository
[00:00:01] ====>> Mounting packages from: /usr/local/poudriere/data/packages/93amd64-default-master-list
[00:00:01] ====>> Mounting /var/db/ports from: /usr/local/etc/poudriere.d/master-list-options
[00:00:01] ====>> Appending to make.conf: /usr/local/etc/poudriere.d/make.conf
[00:00:01] ====>> Appending to make.conf: /usr/local/etc/poudriere.d/master-list-make.conf
/etc/resolv.conf -> /usr/local/poudriere/data/.m/93amd64-default-master-list/ref/etc/resolv.conf
[00:00:01] ====>> Starting jail 93amd64-default-master-list
[00:00:01] ====>> Logs: /usr/local/poudriere/data/logs/bulk/93amd64-default-master-list/2015-01-05_13h04m38s
[00:00:01] ====>> WWW: http://services.unixathome.org/poudriere/build.html?mastername=93amd64-default-master-list&build=2015-01-05_13h04m38s
[00:00:01] ====>> Loading MOVED
[00:00:01] ====>> Calculating ports order and dependencies
[00:00:02] ====>> Computing deps for devel/p5-Exporter-Tiny
[00:00:02] ====>> Computing deps for lang/perl5.16
[00:00:02] ====>> Computing deps for ports-mgmt/pkg
[00:00:02] ====>> Cleaning all packages due to newer version of the jail... done
[00:00:14] ====>> pkg package missing, skipping sanity
[00:00:14] ====>> Skipping incremental rebuild and repository sanity checks
[00:00:14] ====>> Cleaning the build queue
[00:00:14] ====>> Recording filesystem state for prepkg... done
[00:00:16] ====>> Building 3 packages using 3 builders
[00:00:16] ====>> Starting/Cloning builders
[00:00:17] ====>> Hit CTRL+t at any time to see build progress and stats
[00:00:17] ====>> [01][00:00:00] Starting build of ports-mgmt/pkg
[00:00:18] ====>> [01][00:00:01] Allowing MAKE_JOBS for ports-mgmt/pkg
[00:00:18] ====>> [01][00:00:01] Status for build ports-mgmt/pkg: check-sanity
[00:00:18] ====>> [01][00:00:01] Status for build ports-mgmt/pkg: pkg-depends
[00:00:18] ====>> [01][00:00:01] Status for build ports-mgmt/pkg: fetch-depends
[00:00:18] ====>> [01][00:00:01] Status for build ports-mgmt/pkg: fetch
[00:00:18] ====>> [01][00:00:01] Status for build ports-mgmt/pkg: distfiles /usr/ports/distfiles -> /usr/local/poudriere/data/.m/93amd64-default-master-list/01/portdistfiles
[00:00:18] ====>> [01][00:00:01] Status for build ports-mgmt/pkg: checksum
[00:00:18] ====>> [01][00:00:01] Status for build ports-mgmt/pkg: distfiles /usr/local/poudriere/data/.m/93amd64-default-master-list/01/portdistfiles -> /usr/ports/distfiles
[00:00:18] ====>> [01][00:00:01] Status for build ports-mgmt/pkg: extract-depends
[00:00:18] ====>> [01][00:00:01] Status for build ports-mgmt/pkg: extract
[00:00:19] ====>> [01][00:00:02] Status for build ports-mgmt/pkg: patch-depends
[00:00:19] ====>> [01][00:00:02] Status for build ports-mgmt/pkg: patch
[00:00:19] ====>> [01][00:00:02] Status for build ports-mgmt/pkg: build-depends
[00:00:19] ====>> [01][00:00:02] Status for build ports-mgmt/pkg: lib-depends
[00:00:19] ====>> [01][00:00:02] Status for build ports-mgmt/pkg: configure
[00:00:22] ====>> [01][00:00:05] Status for build ports-mgmt/pkg: build
[00:00:43] ====>> [01][00:00:26] Status for build ports-mgmt/pkg: run-depends
[00:00:43] ====>> [01][00:00:26] Status for build ports-mgmt/pkg: stage
[00:00:44] ====>> [01][00:00:27] Status for build ports-mgmt/pkg: package
[00:00:48] ====>> [01][00:00:31] Finished build of ports-mgmt/pkg: Success
[00:00:48] ====>> [01][00:00:00] Starting build of lang/perl5.16
[00:00:50] ====>> [01][00:00:02] Status for build lang/perl5.16: check-sanity
[00:00:50] ====>> [01][00:00:02] Status for build lang/perl5.16: pkg-depends
[00:00:50] ====>> [01][00:00:02] Status for build lang/perl5.16: fetch-depends
[00:00:51] ====>> [01][00:00:03] Status for build lang/perl5.16: fetch
[00:00:51] ====>> [01][00:00:03] Status for build lang/perl5.16: distfiles /usr/ports/distfiles -> /usr/local/poudriere/data/.m/93amd64-default-master-list/01/portdistfiles
[00:00:51] ====>> [01][00:00:03] Status for build lang/perl5.16: checksum
[00:00:51] ====>> [01][00:00:03] Status for build lang/perl5.16: distfiles /usr/local/poudriere/data/.m/93amd64-default-master-list/01/portdistfiles -> /usr/ports/distfiles
[00:00:51] ====>> [01][00:00:03] Status for build lang/perl5.16: extract-depends
[00:00:51] ====>> [01][00:00:03] Status for build lang/perl5.16: extract
[00:00:53] ====>> [01][00:00:05] Status for build lang/perl5.16: patch-depends
[00:00:53] ====>> [01][00:00:05] Status for build lang/perl5.16: patch
[00:00:54] ====>> [01][00:00:06] Status for build lang/perl5.16: build-depends
[00:00:54] ====>> [01][00:00:06] Status for build lang/perl5.16: lib-depends
[00:00:54] ====>> [01][00:00:06] Status for build lang/perl5.16: configure
[00:01:17] ====>> [01][00:00:29] Status for build lang/perl5.16: build
[00:03:44] ====>> [01][00:02:56] Status for build lang/perl5.16: run-depends
[00:03:44] ====>> [01][00:02:56] Status for build lang/perl5.16: stage
[00:04:17] ====>> [01][00:03:29] Status for build lang/perl5.16: package
[00:04:42] ====>> [01][00:03:54] Finished build of lang/perl5.16: Success
[00:04:42] ====>> [01][00:00:00] Starting build of devel/p5-Exporter-Tiny
[00:04:43] ====>> [01][00:00:01] Status for build devel/p5-Exporter-Tiny: check-sanity
[00:04:43] ====>> [01][00:00:01] Status for build devel/p5-Exporter-Tiny: pkg-depends
[00:04:44] ====>> [01][00:00:02] Status for build devel/p5-Exporter-Tiny: fetch-depends
[00:04:44] ====>> [01][00:00:02] Status for build devel/p5-Exporter-Tiny: fetch
[00:04:44] ====>> [01][00:00:02] Status for build devel/p5-Exporter-Tiny: distfiles /usr/ports/distfiles -> /usr/local/poudriere/data/.m/93amd64-default-master-list/01/portdistfiles
[00:04:44] ====>> [01][00:00:02] Status for build devel/p5-Exporter-Tiny: checksum
[00:04:44] ====>> [01][00:00:02] Status for build devel/p5-Exporter-Tiny: distfiles /usr/local/poudriere/data/.m/93amd64-default-master-list/01/portdistfiles -> /usr/ports/distfiles
[00:04:44] ====>> [01][00:00:02] Status for build devel/p5-Exporter-Tiny: extract-depends
[00:04:45] ====>> [01][00:00:03] Status for build devel/p5-Exporter-Tiny: extract
[00:04:45] ====>> [01][00:00:03] Status for build devel/p5-Exporter-Tiny: patch-depends
[00:04:45] ====>> [01][00:00:03] Status for build devel/p5-Exporter-Tiny: patch
[00:04:45] ====>> [01][00:00:03] Status for build devel/p5-Exporter-Tiny: build-depends
[00:04:46] ====>> [01][00:00:04] Status for build devel/p5-Exporter-Tiny: lib-depends
[00:04:46] ====>> [01][00:00:04] Status for build devel/p5-Exporter-Tiny: configure
[00:04:46] ====>> [01][00:00:04] Status for build devel/p5-Exporter-Tiny: build
[00:04:47] ====>> [01][00:00:05] Status for build devel/p5-Exporter-Tiny: run-depends
[00:04:47] ====>> [01][00:00:05] Status for build devel/p5-Exporter-Tiny: stage
[00:04:47] ====>> [01][00:00:05] Status for build devel/p5-Exporter-Tiny: package
[00:04:47] ====>> [01][00:00:05] Finished build of devel/p5-Exporter-Tiny: Success
[00:04:48] ====>> Stopping 3 builders
[00:04:49] ====>> Creating pkgng repository
Creating repository in /tmp/packages: 100%
Packing files for repository: 100%
[00:04:50] ====>> Committing packages to repository
[00:04:50] ====>> Removing old packages
[00:04:52] ====>> Built ports: ports-mgmt/pkg lang/perl5.16 devel/p5-Exporter-Tiny
[93amd64-default-master-list] [2015-01-05_13h04m38s] [committing:] Queued: 3 Built: 3 Failed: 0 Skipped: 0 Ignored: 0 Tobuild: 0 Time: 00:04:51
[00:04:52] ====>> Logs: /usr/local/poudriere/data/logs/bulk/93amd64-default-master-list/2015-01-05_13h04m38s
[00:04:52] ====>> WWW: http://services.unixathome.org/poudriere/build.html?mastername=93amd64-default-master-list&build=2015-01-05_13h04m38s
[00:04:52] ====>> Cleaning up
[00:04:52] ====>> Umounting file systems
[dan@slocum:~] $
This shows FreeBSD 9.3-RELEASE-p7
====>> Building devel/p5-Exporter-Tiny
build started at Mon Jan 5 13:09:21 UTC 2015
port directory: /usr/ports/devel/p5-Exporter-Tiny
building for: FreeBSD 93amd64-default-master-list-job-01 9.3-RELEASE-p7 FreeBSD 9.3-RELEASE-p7 amd64
maintained by: sunpoet@FreeBSD.org
Makefile ident: $FreeBSD: head/devel/p5-Exporter-Tiny/Makefile 373448 2014-11-26 13:08:24Z mat $
Poudriere version: 3.1.1
Host OSVERSION: 903000
Jail OSVERSION: 903000
Note the problem(?) at the end:
[dan@slocum:~] $ sudo poudriere jail -u -j 93amd64
[00:00:00] ====>> Upgrading using ftp
/etc/resolv.conf -> /usr/local/poudriere/jails/93amd64/etc/resolv.conf
Looking up update.FreeBSD.org mirrors... 5 mirrors found.
Fetching public key from update2.freebsd.org... done.
Fetching metadata signature for 9.3-RELEASE from update2.freebsd.org... done.
Fetching metadata index... done.
Fetching 2 metadata files... done.
Inspecting system... done.
Preparing to download files... done.
Fetching 183 patches.....10....20....30....40....50....60....70....80....90....100....110....120....130....140....150....160....170....180. done.
Applying patches... done.
Fetching 3 files... done.
The following files will be removed as part of updating to 9.3-RELEASE-p7:
/usr/share/zoneinfo/Asia/Chongqing
/usr/share/zoneinfo/Asia/Harbin
/usr/share/zoneinfo/Asia/Kashgar
The following files will be added as part of updating to 9.3-RELEASE-p7:
/usr/share/zoneinfo/Asia/Chita
/usr/share/zoneinfo/Asia/Srednekolymsk
/usr/src/contrib/tzdata/zone1970.tab
The following files will be updated as part of updating to 9.3-RELEASE-p7:
/lib/libcrypt.so.5
/lib/libcrypto.so.6
/rescue/[
/rescue/atacontrol
/rescue/atmconfig
/rescue/badsect
/rescue/bsdlabel
/rescue/bunzip2
/rescue/bzcat
/rescue/bzip2
/rescue/camcontrol
/rescue/cat
/rescue/ccdconfig
/rescue/chflags
/rescue/chgrp
/rescue/chio
/rescue/chmod
/rescue/chown
/rescue/chroot
/rescue/clri
/rescue/cp
/rescue/csh
/rescue/date
/rescue/dd
/rescue/devfs
/rescue/df
/rescue/dhclient
/rescue/disklabel
/rescue/dmesg
/rescue/dump
/rescue/dumpfs
/rescue/dumpon
/rescue/echo
/rescue/ed
/rescue/ex
/rescue/expr
/rescue/fastboot
/rescue/fasthalt
/rescue/fdisk
/rescue/fsck
/rescue/fsck_4.2bsd
/rescue/fsck_ffs
/rescue/fsck_msdosfs
/rescue/fsck_ufs
/rescue/fsdb
/rescue/fsirand
/rescue/gbde
/rescue/geom
/rescue/getfacl
/rescue/glabel
/rescue/gpart
/rescue/groups
/rescue/gunzip
/rescue/gzcat
/rescue/gzip
/rescue/halt
/rescue/head
/rescue/hostname
/rescue/id
/rescue/ifconfig
/rescue/init
/rescue/ipf
/rescue/kenv
/rescue/kill
/rescue/kldconfig
/rescue/kldload
/rescue/kldstat
/rescue/kldunload
/rescue/ldconfig
/rescue/less
/rescue/link
/rescue/ln
/rescue/ls
/rescue/lzcat
/rescue/lzma
/rescue/md5
/rescue/mdconfig
/rescue/mdmfs
/rescue/mkdir
/rescue/mknod
/rescue/more
/rescue/mount
/rescue/mount_cd9660
/rescue/mount_msdosfs
/rescue/mount_nfs
/rescue/mount_ntfs
/rescue/mount_nullfs
/rescue/mount_udf
/rescue/mount_unionfs
/rescue/mt
/rescue/mv
/rescue/nc
/rescue/newfs
/rescue/newfs_msdos
/rescue/nos-tun
/rescue/pgrep
/rescue/ping
/rescue/ping6
/rescue/pkill
/rescue/ps
/rescue/pwd
/rescue/rcorder
/rescue/rcp
/rescue/rdump
/rescue/realpath
/rescue/reboot
/rescue/red
/rescue/rescue
/rescue/restore
/rescue/rm
/rescue/rmdir
/rescue/route
/rescue/routed
/rescue/rrestore
/rescue/rtquery
/rescue/rtsol
/rescue/savecore
/rescue/sed
/rescue/setfacl
/rescue/sh
/rescue/spppcontrol
/rescue/stty
/rescue/swapon
/rescue/sync
/rescue/sysctl
/rescue/tail
/rescue/tar
/rescue/tcsh
/rescue/tee
/rescue/test
/rescue/tunefs
/rescue/umount
/rescue/unlink
/rescue/unlzma
/rescue/unxz
/rescue/vi
/rescue/whoami
/rescue/xz
/rescue/xzcat
/rescue/zcat
/rescue/zfs
/rescue/zpool
/sbin/init
/sbin/init.bak
/sbin/routed
/sbin/rtsol
/usr/bin/dig
/usr/bin/ftp
/usr/bin/gate-ftp
/usr/bin/host
/usr/bin/nslookup
/usr/bin/nsupdate
/usr/bin/openssl
/usr/bin/pftp
/usr/include/openssl/dtls1.h
/usr/include/openssl/ssl.h
/usr/include/openssl/ssl3.h
/usr/include/openssl/tls1.h
/usr/lib/libcrypt.a
/usr/lib/libcrypt_p.a
/usr/lib/libcrypto.a
/usr/lib/libcrypto_p.a
/usr/lib/libmagic.a
/usr/lib/libmagic.so.4
/usr/lib/libmagic_p.a
/usr/lib/libssl.a
/usr/lib/libssl.so.6
/usr/lib/libssl_p.a
/usr/lib32/libcrypt.a
/usr/lib32/libcrypt.so.5
/usr/lib32/libcrypt_p.a
/usr/lib32/libcrypto.a
/usr/lib32/libcrypto.so.6
/usr/lib32/libcrypto_p.a
/usr/lib32/libmagic.a
/usr/lib32/libmagic.so.4
/usr/lib32/libmagic_p.a
/usr/lib32/libssl.a
/usr/lib32/libssl.so.6
/usr/lib32/libssl_p.a
/usr/sbin/dnssec-dsfromkey
/usr/sbin/dnssec-keyfromlabel
/usr/sbin/dnssec-keygen
/usr/sbin/dnssec-revoke
/usr/sbin/dnssec-settime
/usr/sbin/dnssec-signzone
/usr/sbin/dnssec-verify
/usr/sbin/freebsd-update
/usr/sbin/lwresd
/usr/sbin/named
/usr/sbin/named-checkconf
/usr/sbin/named-checkzone
/usr/sbin/named-compilezone
/usr/sbin/named-journalprint
/usr/sbin/ntp-keygen
/usr/sbin/ntpd
/usr/sbin/rndc
/usr/sbin/rtsold
/usr/share/doc/bind9/CHANGES
/usr/share/zoneinfo/Africa/Accra
/usr/share/zoneinfo/Africa/Bamako
/usr/share/zoneinfo/Africa/Banjul
/usr/share/zoneinfo/Africa/Conakry
/usr/share/zoneinfo/Africa/Dakar
/usr/share/zoneinfo/Africa/Freetown
/usr/share/zoneinfo/Africa/Lome
/usr/share/zoneinfo/Africa/Nouakchott
/usr/share/zoneinfo/Africa/Ouagadougou
/usr/share/zoneinfo/Africa/Sao_Tome
/usr/share/zoneinfo/America/Metlakatla
/usr/share/zoneinfo/Antarctica/Casey
/usr/share/zoneinfo/Antarctica/Macquarie
/usr/share/zoneinfo/Asia/Irkutsk
/usr/share/zoneinfo/Asia/Jayapura
/usr/share/zoneinfo/Asia/Khandyga
/usr/share/zoneinfo/Asia/Krasnoyarsk
/usr/share/zoneinfo/Asia/Magadan
/usr/share/zoneinfo/Asia/Novokuznetsk
/usr/share/zoneinfo/Asia/Novosibirsk
/usr/share/zoneinfo/Asia/Omsk
/usr/share/zoneinfo/Asia/Pyongyang
/usr/share/zoneinfo/Asia/Riyadh
/usr/share/zoneinfo/Asia/Sakhalin
/usr/share/zoneinfo/Asia/Seoul
/usr/share/zoneinfo/Asia/Shanghai
/usr/share/zoneinfo/Asia/Taipei
/usr/share/zoneinfo/Asia/Tashkent
/usr/share/zoneinfo/Asia/Tbilisi
/usr/share/zoneinfo/Asia/Tokyo
/usr/share/zoneinfo/Asia/Urumqi
/usr/share/zoneinfo/Asia/Ust-Nera
/usr/share/zoneinfo/Asia/Vladivostok
/usr/share/zoneinfo/Asia/Yakutsk
/usr/share/zoneinfo/Asia/Yekaterinburg
/usr/share/zoneinfo/Atlantic/St_Helena
/usr/share/zoneinfo/Australia/Adelaide
/usr/share/zoneinfo/Australia/Brisbane
/usr/share/zoneinfo/Australia/Broken_Hill
/usr/share/zoneinfo/Australia/Currie
/usr/share/zoneinfo/Australia/Darwin
/usr/share/zoneinfo/Australia/Eucla
/usr/share/zoneinfo/Australia/Hobart
/usr/share/zoneinfo/Australia/Lindeman
/usr/share/zoneinfo/Australia/Lord_Howe
/usr/share/zoneinfo/Australia/Melbourne
/usr/share/zoneinfo/Australia/Perth
/usr/share/zoneinfo/Australia/Sydney
/usr/share/zoneinfo/Europe/Budapest
/usr/share/zoneinfo/Europe/Helsinki
/usr/share/zoneinfo/Europe/Kaliningrad
/usr/share/zoneinfo/Europe/Mariehamn
/usr/share/zoneinfo/Europe/Moscow
/usr/share/zoneinfo/Europe/Riga
/usr/share/zoneinfo/Europe/Samara
/usr/share/zoneinfo/Europe/Simferopol
/usr/share/zoneinfo/Europe/Volgograd
/usr/share/zoneinfo/Pacific/Apia
/usr/share/zoneinfo/Pacific/Chatham
/usr/share/zoneinfo/Pacific/Pago_Pago
/usr/share/zoneinfo/zone.tab
/usr/src/contrib/bind9/CHANGES
/usr/src/contrib/bind9/bin/named/config.c
/usr/src/contrib/bind9/bin/named/query.c
/usr/src/contrib/bind9/bin/named/server.c
/usr/src/contrib/bind9/lib/dns/adb.c
/usr/src/contrib/bind9/lib/dns/include/dns/adb.h
/usr/src/contrib/bind9/lib/dns/include/dns/resolver.h
/usr/src/contrib/bind9/lib/dns/resolver.c
/usr/src/contrib/bind9/lib/isccfg/namedconf.c
/usr/src/contrib/file/elfclass.h
/usr/src/contrib/file/readelf.c
/usr/src/contrib/file/softmagic.c
/usr/src/contrib/ntp/ntpd/ntp_config.c
/usr/src/contrib/ntp/ntpd/ntp_control.c
/usr/src/contrib/ntp/ntpd/ntp_crypto.c
/usr/src/contrib/ntp/ntpd/ntp_proto.c
/usr/src/contrib/ntp/util/ntp-keygen.c
/usr/src/contrib/tnftp/src/fetch.c
/usr/src/contrib/tzdata/africa
/usr/src/contrib/tzdata/antarctica
/usr/src/contrib/tzdata/asia
/usr/src/contrib/tzdata/australasia
/usr/src/contrib/tzdata/backward
/usr/src/contrib/tzdata/etcetera
/usr/src/contrib/tzdata/europe
/usr/src/contrib/tzdata/factory
/usr/src/contrib/tzdata/leap-seconds.list
/usr/src/contrib/tzdata/northamerica
/usr/src/contrib/tzdata/pacificnew
/usr/src/contrib/tzdata/southamerica
/usr/src/contrib/tzdata/systemv
/usr/src/contrib/tzdata/yearistype.sh
/usr/src/contrib/tzdata/zone.tab
/usr/src/crypto/openssl/apps/s_client.c
/usr/src/crypto/openssl/crypto/asn1/a_object.c
/usr/src/crypto/openssl/crypto/err/openssl.ec
/usr/src/crypto/openssl/crypto/objects/obj_dat.c
/usr/src/crypto/openssl/doc/apps/s_client.pod
/usr/src/crypto/openssl/doc/ssl/SSL_CTX_set_mode.pod
/usr/src/crypto/openssl/ssl/d1_both.c
/usr/src/crypto/openssl/ssl/d1_clnt.c
/usr/src/crypto/openssl/ssl/d1_lib.c
/usr/src/crypto/openssl/ssl/dtls1.h
/usr/src/crypto/openssl/ssl/s23_clnt.c
/usr/src/crypto/openssl/ssl/s23_srvr.c
/usr/src/crypto/openssl/ssl/s2_lib.c
/usr/src/crypto/openssl/ssl/s3_clnt.c
/usr/src/crypto/openssl/ssl/s3_enc.c
/usr/src/crypto/openssl/ssl/s3_lib.c
/usr/src/crypto/openssl/ssl/ssl.h
/usr/src/crypto/openssl/ssl/ssl3.h
/usr/src/crypto/openssl/ssl/ssl_err.c
/usr/src/crypto/openssl/ssl/ssl_lib.c
/usr/src/crypto/openssl/ssl/t1_enc.c
/usr/src/crypto/openssl/ssl/t1_lib.c
/usr/src/crypto/openssl/ssl/tls1.h
/usr/src/lib/libcrypt/crypt.c
/usr/src/sbin/routed/input.c
/usr/src/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/zfs_vnops.c
/usr/src/sys/conf/newvers.sh
/usr/src/sys/kern/kern_prot.c
/usr/src/sys/kern/vfs_lookup.c
/usr/src/sys/netinet/tcp_input.c
/usr/src/usr.sbin/freebsd-update/freebsd-update.sh
/usr/src/usr.sbin/rtsold/rtsol.c
/var/db/mergemaster.mtree
Installing updates...mtree: line 2: no parent node
done.
9.3-RELEASE-p7
[00:00:27] ====>> Recording filesystem state for clean... done
[dan@slocum:~] $
@FlorianHeigl
Copy link

Tracked down (somewhat) to related issue: freebsd/poudriere#221
The mtree error results in not installing the updates.
It's pretty good to verify with the timestamp of /usr/bin/ftp

Once I found poudriere is all shell scripts it was a bit easier to follow.
The "distro string" is built by means of some hacks in poudriere and completely independent of an working update. (function update_version does it)
It needs to run before the freebsd-update call which then believes the version poudriere set up.

Now. freebsd-update fails with the mtree error, and thus does not ever really update.
It looks ok since on the next "fetch" it'll fetch updates, but if I call it again it seems to bring along the old stuff again. Idk.

What I've done is giving me a shell right after the freebsd-update, to debug.
And it seems the error only occurs with the
"freebsd-update fetch install" call poudriere uses, while a separate call of
"freebsd-update fetch"
"freebsd-update install" seems to be the crowbar that does the update.
(my /usr/bin/ftp testfile is now updated)

Thank you for the debug info, it would have been near to impossible without something to compare against.
The above bug report mentions the issue is apparently only on 9.x, which hints at different freebsd-update versions, but I'm out of my depth long ago.

@jungle-boogie
Copy link

Just a passerby...I have seen this thread on the security mailing list about updating jails:
https://lists.freebsd.org/pipermail/freebsd-security/2015-January/008106.html

@FlorianHeigl
Copy link

fyi: freebsd-update extracts the version from /bin/sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment