1
0
mirror of synced 2026-01-15 15:56:10 +00:00

194 Commits

Author SHA1 Message Date
Stéphane Jourdois
8589e0ca80 Add btrfs support. 2010-08-06 15:48:25 +02:00
Axel Beckert
0f99b8b995 Use apt-config dump to determine Dom0's APT proxy settings.
This is the official way, needs no own parsing (therefore less
fault-prone) and shorter. Also fixes Debian bug #560011 -- the manual
parsing did not catch all syntax variants.

Also add some comments before /etc/apt/sources.list generation in the
Ubuntu hooks.
2010-08-03 15:59:10 +02:00
Axel Beckert
73528d94e7 Mounts also /dev/pts automatically before running any hooks or rules
Closes Debian bug #588783.
2010-08-03 15:51:33 +02:00
Axel Beckert
75b0d5eeb5 Use the better 15-disable-hwclock used for Ubuntu also for Debian (Closes: #588880) 2010-08-03 13:49:38 +02:00
Stéphane Jourdois
3a456608d4 Configure a default locale. 2010-07-26 20:24:37 +02:00
Stéphane Jourdois
77a3876cbe Do not copy host sudoers in guest.
As noticed by Dmitry Nedospasov (Cf. [1]), sudoers file should not be
copied by default.

Move this hook to a role, and add a warning about this in role.

[1] http://xen-tools.org/pipermail/xen-tools-dev/2010-July/000146.html
2010-07-25 22:10:59 +02:00
Axel Beckert
231fff9785 Shebang lines with /bin/bash are not wanted.
There maybe systems, especially in the BSD world, without bash.
2010-07-23 13:28:28 +02:00
Dmitry Nedospasov
3951ceb718 Fix karmic/lucid gettys
This was broken by a previous patch, the if statement looked for
a foler that doesn't exist on karmic, but did on prior release,
since ttys are no longer in /etc/event.d, but instead in /etc/init

/etc/event.d -> /etc/init
2010-07-18 20:14:26 +02:00
Stéphane Jourdois
2e3924427e Use Dom0's resolv.conf unless nameserver is set.
If nameserver config option is not set (default value), copy Dom0's
/etc/resolv.conf on guest.
Provide a role to show how to customize /etc/resolv.conf in guest.
2010-07-18 18:35:51 +02:00
Axel Beckert
806f2d0b23 Replace tabs by 8 blanks (for now) 2010-07-16 17:38:37 +02:00
Stéphane Jourdois
aaa6cdc60c Replace single quotes by doubles quotes in scripts
This helps make t/quoted-strings.t pass.
2010-07-16 16:27:42 +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
Stéphane Jourdois
c5b4f4bc73 Test file before modifying
This shuts down errors during t/hook-inittab.t proving, and does
not modify hook during real run.
2010-07-16 16:27:42 +02:00
Stéphane Jourdois
66a4a399ab Use intrepid sed script for inittab
This makes t/hook-inittab.t pass for this hook.
2010-07-15 14:18:19 +02:00
Stéphane Jourdois
6a66d4f068 Disable other getty lines as debian does.
This makes t/hook-inittab.t pass for this hook.
2010-07-15 14:18:19 +02:00
Axel Beckert
c78dc0ab77 Remove redundant * in string comparison, remove trailing whitespace 2010-07-15 09:29:05 +02:00
Stéphane Jourdois
f032178de9 Add new nameserver config option
This optional config value is used in hooks to create domU resolv.conf.
If unset, domU's resolv.conf is created by the guest distrib install.
2010-07-10 11:38:03 +02:00
Stéphane Jourdois
09f38740c8 Use dom0 resolv.conf when chrooting
Temporarily use resolv.conf from dom0 when chrooting into domU,
to be able to run apt-get and yum inside chroot.

This permits to use different nameservers in domU, and does not
break install nor offline update from dom0.
2010-07-10 10:51:38 +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
96f4026e33 Updated remaining 50-setup-hostname scripts 2010-06-05 17:09:51 +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
7eec7171db Fix trailing whitespace 2010-06-05 01:37:29 +02:00
Dmitry Nedospasov
fd64b6efe1 Add "Log our finish", it was accidentily deleted 2010-06-03 00:11:32 +02:00
Dmitry Nedospasov
915cb05d85 Updated remaining 70-install-ssh files 2010-06-02 23:58:51 +02:00
Dmitry Nedospasov
8cf4c83936 Fix 70-install-ssh in debian, print RSA fingerprint
This will fix 70-install-ssh, allowing it complete postinst by
generating host SSH keys for it. The resulting RSA host key
fingerprint is printed in an Installation summary at the end
of isntall. Next step is to apply the same change to the remaining
70-install-ssh's.
2010-06-02 23:51:36 +02:00
Axel Beckert
e1c1793232 Do not add security support if we're installing Sid 2010-05-23 21:40:30 +02:00
Axel Beckert
df82d28c3c Refactoring: Make check for sources.list more readable 2010-05-23 21:38:11 +02:00
Nathan
c0549371cc Add installPackage() function to call the appropriate distro installation function 2010-05-17 03:33:08 +02:00
Nathan O'Sullivan
f8f2915ec0 Mount /dev/pts while running apt-get to reduce unnecessary errors in logfile 2010-05-17 03:25:52 +02:00
Nathan O'Sullivan
2bbd414b19 Copy /etc/localtime from host 2010-05-17 03:24:39 +02:00
Axel Beckert
abb37b2587 Edgy to Hardy: Also use hvc0 als default console device 2010-05-17 02:42:05 +02:00
Axel Beckert
f34afec732 hooks/intrepid: Fix log message regarding console tty 2010-05-17 02:41:23 +02:00
Axel Beckert
17b105e8e0 Use hvc0 instead of tty1 in intrepid, too 2010-05-17 02:32:38 +02:00
Axel Beckert
d670d13071 pygrub with Debian: Support the case where the local architectures is used by default
(Also fixes some typos in logged messages.)
2010-05-17 01:28:01 +02:00
Axel Beckert
dd5edf3ccb Call MAKEDEV only if it is installed.
(Which is the case as long as it was a 'required' package.)
2010-05-17 00:10:02 +02:00
Axel Beckert
57cc021ba7 Refactoring: consistent variable usage: ${variable}; some double quotes to ensure valid "test" syntax. 2010-05-16 23:39:44 +02:00
Axel Beckert
5653681c95 Fix syntax error 'unexpected operator' in kernel architecture check 2010-05-16 03:13:24 +02:00
Axel Beckert
d0b7777218 Use double quotes for ${pygrub} check 2010-05-16 03:06:14 +02:00
Axel Beckert
40405b41df Refactoring: Remove more differences between Karmic and Debian hooks 2010-05-16 02:50:35 +02:00
Axel Beckert
db32bcffd4 Refactoring: Remove whitespace differences between Karmic and Debian hooks 2010-05-16 02:48:45 +02:00
Axel Beckert
f72c3869e8 Karmic + Lucid: Also use hvc0 instead of tty1 2010-05-15 22:05:29 +02:00
Axel Beckert
49d01d9a76 Use hvc0 and xvda devices by default, add --scsi option for sda names 2010-05-15 16:04:17 +02:00
Axel Beckert
28803001d3 Use hvc0 instead of tty1 for Xen console by default 2010-05-15 15:48:59 +02:00
Dmitry Nedospasov
6f69386f90 * Test the supported distros
* Added an extra hook for Intrepid and Jaunty
* Cleaned up install-kernel scripts
* Updated README
* Updated Makefile to include the new hook
2010-04-24 17:01:53 +02:00
Dmitry Nedospasov
a214296973 Updated kerenl install script in edgy 2010-04-17 19:24:51 +02:00
Dmitry Nedospasov
a155db0339 parse distribution for grub menu.lst from /etc/issue 2010-04-17 17:52:54 +02:00
Dmitry Nedospasov
0ecc697a82 1. Added pygrub support to the ubuntu scripts
- Hardy still not working
2. Added karmic support
	- Working fully
3. Edited Makefile to install karmic hooks
2010-04-17 14:41:18 +02:00
Dmitry Nedospasov
a82f8754df Changed description of the kernel script 2010-04-17 03:24:13 +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
ae5a2eab53 Replace all tabs with 8 blanks to make t/no-tabs.t happy 2010-04-15 02:22:44 +02:00