1
0
mirror of synced 2026-01-18 16:56:58 +00:00

310 Commits

Author SHA1 Message Date
Axel Beckert
fd8f94935a Bump version number to 4.2 RC2 (may become 4.2 "final").
Start new debian/changelog entry, mention Dmitry's fix for #484652.
2010-08-31 00:58:54 +02:00
Dmitry Nedospasov
80d002d8a8 swap-dev or noswap must be set with image-dev 2010-08-31 00:11:00 +02:00
Stéphane Jourdois
8589e0ca80 Add btrfs support. 2010-08-06 15:48:25 +02:00
Axel Beckert
3d43ec184d Print the output of called commands on --verbose (Closes: #513126) 2010-08-05 16:03:58 +02:00
Axel Beckert
e30550a289 Whitespace: tab -> 8 blanks 2010-08-05 16:02:31 +02:00
Axel Beckert
1df7ef41da xen-delete-image also needs at least one of --evms, --lvm, or --dir.
This led to strange error messages from xen-delete-image if an
installation failed because they looked like coming from xen-create-image.

xen-delete-image now explicitly states that the error was on the
deletion of the image. not on its creation. (Closes: #513138)
2010-08-03 17:19:24 +02:00
Axel Beckert
1ee85ef493 Fixes wrong loop module parameter syntax in warning. (Closes: #516902) 2010-08-03 16:45:58 +02:00
Axel Beckert
ab8ee902eb Properly document that genpass=1 is now default 2010-08-03 16:16:24 +02:00
Axel Beckert
cd258b1c13 Documentation: --debootstrap-cmd: Path is optional 2010-08-03 16:01:16 +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
03968fd18c Allow --install-method=cdebootstrap
It's just a shortcut for
--install-method=debootstrap --debootstrap-cmd=cdebootstrap
2010-08-03 15:22:51 +02:00
Axel Beckert
93a70819cf Next release will be a release candidate 2010-08-03 13:54:58 +02:00
Stéphane Jourdois
389fa94bcb Move old log files rather than removing them. 2010-07-26 20:24:37 +02:00
Stéphane Jourdois
64c9c8398b Remove trailing space from make_fs_ options.
The "-d name=" option doesn't appear as necessary with mkfs.xfs, at
least with version 3.1.2 of mkfs.xfs (of course, tested with a file
instead of a device).
This simplifies a TODO item.
2010-07-26 19:28:28 +02:00
Stéphane Jourdois
5cd664c6b0 Encrypt root password with sha256 by default.
- Use perl crypt with some magic rather than openssl to hash root
password, either generated or provided by user.
- Remove the undocumented dependency on openssl.
- Add a hash_method option to configure the hashing algorithm.
- Permit md5, sha256 and sha512, and use sha256 as default.
- Remove TODO entry about "more random" passwords.
- Remove an ugly system() call.
2010-07-25 22:10:59 +02:00
Stéphane Jourdois
6f0c858a2b Add validation for ip and mac
I forgot those on first pass, sorry.
2010-07-23 13:29:56 +02:00
Dmitry Nedospasov
1aeb23823c Fix hostname regex check
Set a minimal length so that the check doesn't fail
2010-07-18 19:52:29 +02:00
Stéphane Jourdois
0e16a65d80 Validate option arguments
Also provide a default value for serial_device and disk_device.
Remove corresponding TODO entry.

Note: as shown by this patch, some needed fixes remain. Some options
take yes/no, some 0/1, etc.
2010-07-18 18:37:59 +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
bf9c56d42c Remove trailing whitespace
Makes t/test-trailing-whitespace.t pass
2010-07-16 16:27:42 +02:00
Stéphane Jourdois
ddb999d952 Remove trailing spaces
This helps t/pod-check.t to pass on this file.
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
Axel Beckert
9f517cb4c3 Re-add --genpass-len for backwards compatibility 2010-07-15 18:18:52 +02:00
Axel Beckert
f115c3db60 Merge commit '0f751d1' 2010-07-15 18:17:32 +02:00
Axel Beckert
e6f57bdebe Re-add --no-hosts and --copy-hosts for backwards compatibility and declare them deprecated 2010-07-15 18:14:16 +02:00
Stéphane Jourdois
0f751d1d26 Rename genpass-len to genpass_len to match default config.
This makes prove t/argument-check.t pass.
2010-07-15 14:18:19 +02:00
Stéphane Jourdois
d8e4774bcf Remove hyphen in options.
Options no-hosts and copy-hosts do not have hyphens in default
configuration.
This helps to prove t/argument-check.t.
2010-07-15 14:18:19 +02:00
Axel Beckert
2bd526df23 Document how multiple nameservers should be delimited 2010-07-15 09:28:10 +02:00
Stéphane Jourdois
774dbd0fb9 Document vifname config option in xen-create-image
This new option was added by Dmitry Nedospasov <dmitry@nedos.net>
in commit c03029e0c6509489834312f888523dee3f7bc92d

Note that this option should not appear in default configuration,
as it is not meant to be used there.
2010-07-10 11:49:40 +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
be205d307e Typos/whitespace fixes 2010-07-05 10:19:06 +02:00
Dmitry Nedospasov
3359c10349 Minor fix, can't delete image w/out hostname 2010-07-05 10:15:38 +02:00
Dmitry Nedospasov
995608ca6c Changed fail value and documented it, to ensure images aren't overwritten 2010-06-20 11:36:16 +02:00
Dmitry Nedospasov
14aead8537 Spruce up installation summary for empty passwords 2010-06-20 11:12:11 +02:00
Dmitry Nedospasov
aac7317f55 Update genpass documentation in --help and in .conf 2010-06-20 11:10:33 +02:00
Dmitry Nedospasov
12327183b2 Fix genpass whitespace whitespace fail 2010-06-20 11:07:19 +02:00
Dmitry Nedospasov
bdd54fbd80 Minor edit: Formating 2010-06-12 12:05:06 +02:00
Dmitry Nedospasov
97de622f89 Fixed installation summary output on failure or usage
* Set $FAIL whenever exit is called
* Set $FAIL=-1 when help or manual
2010-06-12 12:04:23 +02:00
Dmitry Nedospasov
63693d4c27 Added --password flag and documented it 2010-06-07 17:58:12 +02:00
Dmitry Nedospasov
39806f8ad0 Added a genpass flag to generate a password and install it in the guest
* We could use the same functions to set a password via a --password flag
* It would nice to move more functionality to subroutines
* The current generatePassword subroutine, only generates alphanum passwords and hashes
2010-06-07 17:37:57 +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
a0fba6f9c7 Fixed installation summary IP output 2010-06-05 16:25:46 +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
a6ccc91a5c Use cdn.debian.net (GeoIP) instead of ftp.debian.org by default
See http://wiki.debian.org/DebianGeoMirror for the details
2010-06-02 18:10:07 +02:00
Axel Beckert
6bc050ae61 POD: Add parameters to options where parameters are needed, add some possible and default values 2010-06-02 17:52:43 +02:00
Axel Beckert
473ad1ccd7 Align all documentation the same way 2010-06-02 17:42:03 +02:00
Dmitry Nedospasov
df036e4354 Documented the cachedir option 2010-06-02 17:00:08 +02:00
Dmitry Nedospasov
fa51b092af Merge branch 'master' of git@gitorious.org:xen-tools/xen-tools 2010-06-02 16:44:53 +02:00