From d587fa5f8836ccc883634e36b3d8787a404dfcbc Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Fri, 21 Mar 2014 20:52:01 +0400 Subject: [PATCH] conf.d: updated README to mention mixin/* The mixin concept and name has been borrowed from Ruby language -- it's a kind of thing that can be added to more or less whatever suitable; the problem it tries to solve is that incrementally building up the image configuration breaks when one would like to change something that's been configured in early enough so that grafting early will warrant a lot of duplication later on but inheriting too much things that need to be changed gets too much hackery in. It started while trying to build an installer image using configuration bits and pieces collected while bringing an installable LiveCD together: there are just too many livecdish things in a LiveCD to try and rebase the actual desktop configuration things onto an installer, so putting these into a mixin to be reused within both livecd and installer seems the way to go. --- conf.d/README | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/conf.d/README b/conf.d/README index 45874b78..1701a057 100644 --- a/conf.d/README +++ b/conf.d/README @@ -12,6 +12,12 @@ Попросту говоря, copy-paste -- тревожный признак. +Вместо него нередко может помочь выделение кусочков конфигурации +в пределах включаемого файла в цели mixin/*, которые не являются +самостоятельными или даже промежуточными, но включают полезные +группы настроек, нужных в различных образах, не наследующих +друг другу -- посмотрите существующие примеры использования. + По переменным (см. тж. doc/pkglists.txt): * для пользовательского окружения (live, main) предназначены