On 8/20/24 21:04, Charles Curley wrote:
I have a preseed file set up to do a lot of the installation process
for me. However, I still have to customize it for each machine, e.g.
host name. I then do the disk partition layout manually during the
installation.

What I would like to do is have a file with the standard parts of the
setup, and then separate files for each machine.

I can do the include, but it doesn't seem to work correctly. The Debian
GNU/Linux Installation Guide says "It is possible to include other
preconfiguration files from a preconfiguration file. Any settings in
those files will override pre-existing settings from files loaded
earlier. This makes it possible to put, for example, general networking
settings for your location in one file and more specific settings for
certain configurations in other files." B.5.3

If a.cfg calls b.cfg, it appears that b.cfg's settings override
a.cfg's regardless of the order. If both files set the host name, I get
b.cfg's host name regardless of whether a.cfg sets the host name before
or after calling b.cfg.



The below assumes that this is not a regression or a bug for the
debian-boot mailing list.

When I was playing with this, the only way I could get it to work was by
specifying options that are common in `preseed.cfg` and add more
specific options in included CFG files.

For the sake of clarity `preseed.cfg` could have the name of
`common.cfg` and `node01.cfg`, `node02.cfg` would have specific configs
for node01 and node02 respectively.
This makes it impossible to specify  options twice with different values.

To me the documentation is somewhat misleading and does not match what
you already found out.

--
John Doe

Reply via email to