Summary: | /etc/freebsd-update.conf shouldn't include src as an Component on the Components line | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | Derek Schrock <dereks> | ||||||||||
Component: | conf | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||||||||
Status: | Closed FIXED | ||||||||||||
Severity: | Affects Many People | CC: | kczekirda, nwhitehorn | ||||||||||
Priority: | --- | ||||||||||||
Version: | 9.3-RELEASE | ||||||||||||
Hardware: | Any | ||||||||||||
OS: | Any | ||||||||||||
Attachments: |
|
Description
Derek Schrock
2014-11-01 19:44:10 UTC
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 |