Since the src component is optional part of the FreeBSD base system more often than not you'll always end up with these type of error messages from freebsd-update fetch/install: $ freebsd-update fetch ... The following files will be added as part of updating to 10.0-RELEASE-p11: /usr/src/contrib/tzdata/zone1970.tab ... $ freebsd-update install Installing updates...install: ///usr/src/contrib/tzdata/zone1970.tab: No such file or directory done. $ If you want to keep /usr/src up to date then you should have to add that to /etc/freebsd-update.conf or freebsd-update(8) should be smart and not try to install components that are not installed. freebsd-update should have some logic to understand an empty /usr/src/ means I don't care about the src component even though it's on the Components line in freebsd-update.conf.
Created attachment 155928 [details] patch for bsdinstall
Comment on attachment 155928 [details] patch for bsdinstall >--- config.old 2015-02-08 11:00:26.000000000 +0100 >+++ config 2015-04-23 23:26:34.236700377 +0200 >@@ -40,6 +40,14 @@ > > cp $BSDINSTALL_TMPBOOT/* $BSDINSTALL_CHROOT/boot > >+src= >+for dist in $DISTRIBUTIONS; do >+ [ "$dist" = "src.txz" ] && src=1 >+done >+ >+[ ! "$src" ] && sed -i.bu 's/^Components src/Components/g' $BSDINSTALL_CHROOT/etc/freebsd-update.conf >+ >+ > [ "${debugFile#+}" ] && cp "${debugFile#+}" $BSDINSTALL_CHROOT/var/log/ > > # Set up other things from installed config
Created attachment 155929 [details] patch for bsdinstall
Created attachment 155930 [details] patch for bsdinstall config
Thanks for this! It seems like a good idea, but I'm very hesitant to patch files in the base system from the installer: it adds magic to something that is supposed to only be tar. Do you know how hard it would be to patch freebsd-update to be smarter instead?
Created attachment 155952 [details] patch for freebsd-update
That looks great to me, thanks. Anyone else have opinions?
Revision created: https://reviews.freebsd.org/D2364
Committed as https://svnweb.freebsd.org/base?view=revision&revision=284425 https://reviews.freebsd.org/rS284425