Axel Beckert
eab2940bf6
Reimplement $dist/updates vs $dist-security more backwards-compatible
...
This reverts most code, but not the implemented functionality of
commit 2fba5cb90e .
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
Axel Beckert
9ee1f63705
Create hooks/artful with new 40-setup-networking-deb-netplan
...
Since Ubuntu 17.10 Artful, Ubuntu has decided to use netplan instead
of ifupdown.
40-setup-networking-deb-netplan has been contributed by Arno and Peter.
(see https://github.com/xen-tools/xen-tools/issues/51#issuecomment-412019510 )
Closes xen-tools/xen-tools#51 .
Since we have to make a variant of hooks/karmic/ as hook/artful/,
rename hooks/karmic/80-install-kernel (which previously was unique to
hooks/karmic/) to hooks/common/80-install-kernel-ubuntu and add
symlinks to it from hooks/karmic/ and hook/artful/.
2019-02-03 23:30:45 +01:00
Axel Beckert
b9e0284a43
Drop --quiet from installDebianPackageAndRecommends
...
See https://github.com/xen-tools/xen-tools/pull/42#issuecomment-212903567
2019-02-03 17:38:22 +01:00
Axel Beckert
26a698bbd6
Merge branch 'no-progress-in-logs' of https://github.com/YSakhno/xen-tools into YSakhno-no-progress-in-logs
2019-02-03 17:35:52 +01:00
Axel Beckert
422f682b37
Fix comments wrt. /etc/xen-tools/skel/
2017-08-04 00:45:11 +02:00
Santiago Vila
07d014a0d6
Fix possible missing gateway in generated /etc/network/interfaces
...
Closes: https://bugs.debian.org/764625
2017-01-10 21:46:03 +01: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
4d4daca745
Fix typos found by check-all-the-things/spellintian
2016-08-11 21:47:35 +02:00
Axel Beckert
18b76606d2
Fix typos found by check-all-the-things/codespell
2016-08-11 21:35:41 +02:00
Axel Beckert
ca9e091d4b
Switch many URLs to https://; update them if broken or redirected
2016-08-11 20:53:10 +02:00
Yuri Sakhno
230167d84a
Small fix due to some messages being written to stderr rather than stdout
2016-04-20 14:24:08 +03:00
Yuri Sakhno
87dd127cf8
Eliminate progress reporting which is useless in logs
2016-04-20 11:45:39 +03:00
Axel Beckert
d06abe6fe2
Use -o APT::Install-Recommends=false instead of --no-install-recommends
...
Older APT releases bail out on unknown commandline options like
"--no-install-recommends", but accept any Foo=Bar setting to their
"-o" option.
Using -o APT::Install-Recommends=false instead of
--no-install-recommends in common.sh's installDebianPackage allows to
use some of the default hooks to be used unmodified again for older
Debian releases, e.g. Etch.
2015-06-11 22:07:20 +02:00
Axel Beckert
87aba7164e
Drop all occurrences of apt's --force-yes parameter
...
It only forces the installation of untrusted packages and that's
unwanted.
Closes : #776487
2015-06-11 18:08:52 +02:00
Lukas Schwaighofer
a7a8028dc0
Fix usage of nonexistent variable in removeDebianPackage
2015-01-09 13:08:07 +01: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
71e5ad4345
Fix missing quoting in shell function "assert" in hooks/common.sh
2014-09-25 23:15:51 +02:00
Joan
079382302b
Fix gateway always empty on debian domU
2014-05-30 17:30:23 +02:00
Lionel FÉLICITÉ
5093c731cf
Pass "-y" option ("assume yes") to yum
...
Closes : #735675
2014-03-28 20:48:18 +01: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
0feefc4179
hooks/common.sh: Split up installDebianPackage…
...
… into installDebianPackage and installDebianPackageAndRecommends
2013-12-10 00:32:07 +01:00
Patryk Ściborek
96679edad9
Fix disableStartStopDaemon() if /sbin/initctl is not present
2013-10-28 20:48:10 +01:00
Axel Beckert
fae561aaca
Meaningful whitespace fixes in hooks/common/40-setup-networking-deb
2013-09-24 23:16:22 +02:00
Axel Beckert
205bf96f0a
Handle potentially empty gateway setting properly
...
… in hooks/common/40-setup-networking-deb
Thanks Simone Caruso!
2013-09-24 23:11:05 +02:00
Axel Beckert
571f540992
Refactoring: Replace all occurrences of "! -z" by "-n"
...
Occurred in hooks and bash-completion.
2013-09-24 22:54:05 +02: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
d7f219f160
Create /boot/grub/default if non-existent
...
Seems to be needed at least for Squeeze.
2013-01-24 23:14:34 +01:00
Axel Beckert
f18285943c
Call update-grub at the end of 82-install-grub-legacy to update menu.lst
2013-01-24 23:14:34 +01:00
Axel Beckert
780839988d
Remove trailing blank line
2013-01-24 23:14:34 +01:00
Axel Beckert
025e20a1f1
Better check for grub-legacy availability which ignores virtual packages
2013-01-24 23:14:34 +01:00
Axel Beckert
9330b79d51
hooks/common.sh: Fix syntax error in installCentOS4Package wrapper.
2013-01-24 23:14:10 +01:00
Axel Beckert
979b6fb166
hooks/common.sh: installDebianPackage no more installs recommends
2013-01-24 23:07:56 +01: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
505950dae0
isAPT: Also check for dpkg and rename it to isDeb
...
That way we should not try to use Debian/Ubuntu package names if
apt4rpm is available.
2013-01-23 17:47:13 +01:00
Axel Beckert
0c8b5d25c4
Factor out functions to test if we should use yum or apt
2013-01-23 17:40:00 +01:00
Axel Beckert
bce580658e
hooks/common.sh: Rename installCentOS4Package to installRPMPackage
...
Add installCentOS4Package wrapper for backward compatibility.
2013-01-23 17:00:09 +01:00
Axel Beckert
290ca33840
Fix some typos and grammar in log messages
2013-01-23 13:14:35 +01:00
Axel Beckert
a1838d9030
Also use linux-image-virtual instead of linux-image-server for >= karmic
2013-01-23 13:14:35 +01:00
Axel Beckert
30ae761c27
Fix typo
2013-01-22 02:37: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
03506de7e4
Refactoring: Normalize 80-kernel-install for Ubuntus
2013-01-22 02:01:13 +01:00
Axel Beckert
8c2a2878df
Ubuntu: install linux-image-virtual instead of linux-image-server
...
By default install linux-image-virtual instead of linux-image-server
on Ubuntu Intrepid and newer.
Hopefully closes : #640099 , LP #839492
2013-01-22 01:18:57 +01:00
Axel Beckert
a297aa4f5b
Fix quoting in hooks/common/91-install-fs-tools
2013-01-21 16:32:10 +01:00
Axel Beckert
6423a67982
Handle module-init-tools → kmod transition in wheezy/raring gracefully
2013-01-21 16:20:03 +01:00
Axel Beckert
c39628cbe4
Overwork TLS disabling on Debian and Ubuntu
2013-01-18 01:26:11 +01:00