mirror of
https://git.proxmox.com/git/grub2
synced 2025-10-25 19:39:23 +00:00
debian/postinst.in, debian/kernel/zz-update-grub: Call systemd-detect-virt (which works under any init system, despite the name) instead of the Ubuntu specific running-in-container wrapper. (LP: #1539016)
This commit is contained in:
parent
a129b76e60
commit
74aee3f1fe
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -1,7 +1,14 @@
|
||||
grub2 (2.02~beta2-36) UNRELEASED; urgency=medium
|
||||
|
||||
[ Colin Watson ]
|
||||
* Use HTTPS for Vcs-Git URL.
|
||||
|
||||
[ Martin Pitt ]
|
||||
* debian/postinst.in, debian/kernel/zz-update-grub: Call
|
||||
systemd-detect-virt (which works under any init system, despite the
|
||||
name) instead of the Ubuntu specific running-in-container wrapper.
|
||||
(LP: #1539016)
|
||||
|
||||
-- Colin Watson <cjwatson@debian.org> Wed, 27 Jan 2016 11:51:12 +0000
|
||||
|
||||
grub2 (2.02~beta2-35) unstable; urgency=medium
|
||||
|
||||
4
debian/kernel/zz-update-grub
vendored
4
debian/kernel/zz-update-grub
vendored
@ -3,8 +3,8 @@ set -e
|
||||
|
||||
which update-grub >/dev/null 2>&1 || exit 0
|
||||
|
||||
if type running-in-container >/dev/null 2>&1 && \
|
||||
running-in-container >/dev/null; then
|
||||
if type systemd-detect-virt >/dev/null 2>&1 &&
|
||||
systemd-detect-virt --quiet --container; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
||||
2
debian/postinst.in
vendored
2
debian/postinst.in
vendored
@ -296,7 +296,7 @@ config_item()
|
||||
|
||||
running_in_container()
|
||||
{
|
||||
type running-in-container >/dev/null 2>&1 && running-in-container >/dev/null
|
||||
type systemd-detect-virt >/dev/null 2>&1 && systemd-detect-virt --quiet --container
|
||||
}
|
||||
|
||||
run_grub_install()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user