1
0
mirror of synced 2026-01-20 01:25:09 +00:00

141 Commits

Author SHA1 Message Date
Axel Beckert
7ebb0f41a4 Fix missing "|" in regex in Debian's 20-setup-apt
Closes: #997668
2021-10-24 02:23:35 +02:00
Axel Beckert
4aa9428e3b Merge branch 'arm64-debian' of https://github.com/ianmclinden/xen-tools 2020-12-27 15:50:56 +01:00
Axel Beckert
0da2ed1365 Fix test suite failures in a Sid chroot
Problem was that the commented variant only was a new, $dist-security
one, but is also written if the security repo is disabled with other
distributions than sid/unstable.
2020-12-20 08:47:31 +01: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
Axel Beckert
e8897649b7 Fix mostly trailing whitespace in generated sources.list 2020-12-19 06:49:29 +01:00
Axel Beckert
2fba5cb90e Debian DomUs: Distinguish between $dist/updates and $dist-security
From Debian 11 Bullseye onwards, debian uses $dist-security instead of
$dist/updates as distribution part in /etc/apt/sources.list.

Mark those distributions with the old-style subdirectory path with
"security-subdir" in distributions.conf.

Thanks to Paul Wise for the bug report (and hence reminding me of
this) and for the suggestions on how to implement this (even if I
didn't follow them for the sake of simplicity and no additional
dependencies).

Closes: #972749
2020-12-19 06:49:29 +01:00
Ian McLinden
967bdcfaa9
Add debian install rules for arm64 2020-05-14 12:16:09 -05:00
Daniel Reichelt
ef09662822 Fix inconsistent handling of --nopygrub parameter
Closes: https://bugs.debian.org/842609
2017-01-10 21:29:30 +01:00
Axel Beckert
ca9e091d4b Switch many URLs to https://; update them if broken or redirected 2016-08-11 20:53:10 +02:00
Axel Beckert
4d64044f29 Fix corner cases where not the latest kernel would have been checked 2014-09-25 23:20:07 +02:00
Axel Beckert
8610300206 Use "686-pae" kernels instead of "686" kernels on Debian Wheezy and later
Thanks to Daniel Lintott!

Closes: #742778
2014-03-28 20:06:00 +01:00
Axel Beckert
29bdbdd455 Fix typo in comment 2014-03-28 19:50:48 +01:00
Axel Beckert
555ce383d3 Switch from /usr/lib/xen-tools/ to /usr/share/xen-tools/ to properly adhere FHS 2013-04-05 20:19:22 +02:00
Axel Beckert
57c7d13c48 Factor out legacy grub menu.lst generation 2013-01-24 23:06:53 +01:00
Axel Beckert
1de424a69d Fix filesystem tools installation in 91-install-fs-tools
Was broken since 4.3rc1.

Merged 91-install-fs-tools back into 90-make-fstab. Added support for
RPM-based distributions, too, so it's more generic now.
2013-01-23 18:02:44 +01:00
Axel Beckert
9182aaccb7 Install grub-legacy in all pygrub-based DomUs 2013-01-22 02:35:27 +01:00
Axel Beckert
a2aa1b8a02 Factor out module-init-tools (or kmod) installation 2013-01-22 02:33:12 +01:00
Axel Beckert
c39628cbe4 Overwork TLS disabling on Debian and Ubuntu 2013-01-18 01:26:11 +01:00
Axel Beckert
3b7750e9a9 Also suppport elevator=noop for pygrub 2012-11-13 23:35:20 +01:00
Axel Beckert
85cbbded61 Merge 90-make-fstab-deb and 90-make-fstab-rpm
Split off deb-specific part into common/91-install-fs-tools
2012-06-06 17:21:33 +02:00
Axel Beckert
a3d53e78b5 Use the debian/55-create-dev script as common/55-create-dev
Use it also for gentoo and dapper.

Add a TODO note about stuff which came up during comparing all the
previously existing variants of 55-create-dev.
2012-06-06 17:03:04 +02:00
Axel Beckert
e39b5a0edf Merge all centos/fedora 99-clean-image into common/99-clean-image-rpm
Rename previous common/99-clean-image to common/99-clean-image-deb; adjust all links
2012-06-05 18:58:31 +02:00
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
522eb34694 Link debian/90-make-fstab to common/90-make-fstab-deb
They differed just by whitespace
2012-06-05 16:46:31 +02:00
Axel Beckert
b3c834935a Remove white-space and comment differences between common/20-setup-apt and debian/20-setup-apt 2012-06-04 18:39:31 +02:00
Axel Beckert
db77d621e7 hooks/debian/20-setup-apt: Use blacklist for libc6-xen instead of whitelist 2012-06-04 18:38:22 +02:00
Axel Beckert
98983cc9a0 Refactoring: Massive code deduplication in hooks directory (Part 3)
All remaining hooks files just differed syntactially, but not
semantically. They were merged into one file sporting the most
readable syntax variant.
2012-06-04 16:59:19 +02:00
Axel Beckert
2e9394d010 Refactoring: Massive code deduplication in hooks directory (Part 2)
All hooks files which were identical in two groups (debianoid and
redhatoid) have been moved to the new hooks/common directory and now
have symbolic links to the according new files at their old locations.
2012-06-04 16:47:59 +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
Axel Beckert
9c90c93bc9 Merge commit 'refs/merge-requests/2' of git://gitorious.org/xen-tools/xen-tools into merge-requests/2 2012-05-08 00:30:36 +02:00
Vagrant Cascadian
81656a9ef5 only attempt to generate the ssh host keys if not already present 2012-05-07 22:16:39 +02:00
Alex Tomlins
b0bae98746 Use configured apt_proxy in guests. 2011-03-31 09:39:39 +01:00
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
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
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
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
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
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