1
0
mirror of synced 2026-01-22 18:21:20 +00:00

19 Commits

Author SHA1 Message Date
Axel Beckert
49db07bcf8 Merge all centos/fedora 50-setup-hostname into common/50-setup-hostname-rpm
Rename previous common/50-setup-hostname to common/50-setup-hostname-deb; adjust all links
2012-06-05 18:12:41 +02:00
Axel Beckert
fc736c040d Refactoring: Massive code deduplication in hooks directory
All hooks files which were identical and had no second group of
identically named hook files have been moved to a new hooks/common
directory and now have symbolic links to the new single file at their
old locations.

Also slightly modified to make this work:

  * Makefile: copy new hooks/common directory
  * Some tests: ignore new hooks/common directory
2012-06-04 16:26:03 +02:00
Stéphane Jourdois
bd840ba071 Replace tabs with spaces
This makes t/no-tabs.t pass.
I'm responsible for some tabs in previous patches, so this
fixes mine also :)

Note that I find this test silly, but "dura lex, sed lex"...
2010-07-16 16:27:42 +02:00
Dmitry Nedospasov
8834e669dd Correctly resolve the FQDN
* The FQDN *MUST* follow the hostname in /etc/hosts
* /etc/hostname need only contain the hostname
* Remove the 127.0.1.1 line for hosts with ips
2010-06-23 15:06:31 +02:00
Dmitry Nedospasov
83ff7c416f Cleaned up 50-setup-hostname, added --copy-hosts option
* Long overdue clean up of 50-setup-hostname, since simply
  copying the dom0's /etc/hosts file isn't reliable.
* Added a --copy-hosts option for those that do want to copy
  the dom0's /etc/hosts
* Documented both options in the .conf file as well as in
  the scripts
2010-06-05 16:57:37 +02:00
Dmitry Nedospasov
efc9058c10 50-setup-hostname: added 127.0.1.1 with hostname for static ips, with FQDN for DHCP hosts
70-install-ssh: "ssh" package doesn't fully resolve on atleast the newer distros, changed the package "ssh" to "openssh-server"

80-install-kernel: new script to install a kernel for the pygrub flag

80-install-modules: added support for pygrub, this script is essentially ignored if pygrub is set. The kernel script will install modules in that case.
2010-04-17 03:12:52 +02:00
Axel Beckert
eae96c3b5a Fix bashisms: kill -HUP -> kill -s HUP 2010-04-09 01:32:22 +02:00
Axel Beckert
ead13f17b3 Don't write the FQDN into /etc/hostname (Closes: #492583) 2010-03-10 23:24:21 +01:00
Steve Kemp
aa7a2c4c5e New command line argument --no-hosts 2008-11-23 13:06:24 +00:00
Steve Kemp
5d11b820b7 Add the hostname to dom0's /etc/hosts in the correct order.
#477775
2008-04-30 19:05:21 +01:00
steve
fc88b30ea4 2006-12-26 22:15:34 by steve
Add stub /etc/hosts file for new instances which use DHCP.
  See #484683
2006-12-26 22:15:36 +00:00
steve
12193d90c8 2006-12-23 23:22:27 by steve
Add short hostname to /etc/host on dom0 too.
2006-12-23 23:22:28 +00:00
steve
8f79f92a88 2006-10-19 17:04:17 by steve
Portability fixups for using a non-bash shell.
  Patches from Eric Lemoine.
2006-10-19 17:04:18 +00:00
steve
b413aae0fb 2006-06-15 07:47:02 by steve
BUGFIX:  *really* allow tests to succeed prior to installation.
2006-06-15 07:47:05 +00:00
steve
c1e4d3531b 2006-06-15 07:42:59 by steve
Source common.sh from the parent directory if the global installation
 isn't found.
  This allows "make test" to succeed *before* the tools are installed.
2006-06-15 07:42:59 +00:00
steve
2bb8a1b394 2006-06-13 13:21:22 by steve
TABs become spaces.  Tabs are evil.
2006-06-13 13:21:23 +00:00
steve
27c9b89556 2006-06-09 17:31:03 by steve
BUGFIX:  Remove syntax erorr.
2006-06-09 17:31:03 +00:00
steve
d10e0ef0f2 2006-06-09 13:36:14 by steve
Use a fully qualified path to the 'common.sh', so we don't need to
 use chdir() when running our hooks
2006-06-09 13:36:14 +00:00
steve
efa1df08de 2006-06-09 10:30:37 by steve
Added to the repository.  These are almost straight copies of the
 previous hook scripts except they are now Debian-specific.

  They also each log their start and finish and optional information
 via the use of the ../common.sh file.

  No major changes anticipated.
2006-06-09 10:30:37 +00:00