1
0
mirror of synced 2026-01-13 07:09:37 +00:00
Axel Beckert eab2940bf6 Reimplement $dist/updates vs $dist-security more backwards-compatible
This reverts most code, but not the implemented functionality of
commit 2fba5cb90e30f2bfab07782c9fa3b99275e769da.

Requiring a config file change to still be able to install old
distributions would make a bump of the major version necessary
according to Semantic Versioning. Let's avoid that:

The list of distributions with the old path scheme is finite and will
never change again. Hence it's ok and especially backwards compatible
to hardcode this list in hooks/debian/20-setup-apt.

It's also less and more obvious (but not necessarily easier to read)
code. But it's all in one place and not scattered over three files.
And it's just one line instead like a dozen or two dozens.

Closes: #972749 (kinda again)
2020-12-19 07:38:37 +01:00
..

hooks/


  Once a distribution of GNU/Linux has been installed by the
 xt-install-image script we'll have a pristine system.

  To configure this the program xt-customize-image will call
 a collection of distro-specific shell scripts, or hooks.

  For each distribution we support there is a subdirectory 
 containing the necessary functions to configure the host
 minimally.

  By the time the scripts finish we'll expect:

   * The installation to have a working fstab file.
   * The installation will have IP address + networking configured.
   * The installation will have a running installation of OpenSSH

  The subdirectories in this hooks/ directory will be installed
 to the directory /usr/share/xen-tools/

Steve
--