mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
* usr/lib/byobu/.shutil: LP: #844994
- the wget --timeout=1 was not working as desired, without the --tries=1 option too; so local boots of ubuntu ec2 images that don't have a working metadata service might take several minutes for byobu to start while that wget tries repeatedly to reach the metadata service; big thanks to Ben Howard for helping triage and fix ;-)
This commit is contained in:
parent
ae4db2486e
commit
788111f2ef
2 changed files with 7 additions and 1 deletions
6
debian/changelog
vendored
6
debian/changelog
vendored
|
@ -5,6 +5,12 @@ byobu (4.33) unreleased; urgency=low
|
||||||
- save a fork
|
- save a fork
|
||||||
- fix detection of updates, which only worked when there were security
|
- fix detection of updates, which only worked when there were security
|
||||||
updates
|
updates
|
||||||
|
* usr/lib/byobu/.shutil: LP: #844994
|
||||||
|
- the wget --timeout=1 was not working as desired, without the --tries=1
|
||||||
|
option too; so local boots of ubuntu ec2 images that don't have a
|
||||||
|
working metadata service might take several minutes for byobu to start
|
||||||
|
while that wget tries repeatedly to reach the metadata service;
|
||||||
|
big thanks to Ben Howard for helping triage and fix ;-)
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 26 Aug 2011 19:07:32 -0500
|
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 26 Aug 2011 19:07:32 -0500
|
||||||
|
|
||||||
|
|
|
@ -207,7 +207,7 @@ metadata_available() {
|
||||||
# if a metadata service is available, that does NOT slow down non-ec2
|
# if a metadata service is available, that does NOT slow down non-ec2
|
||||||
# machines.
|
# machines.
|
||||||
if [ -e /etc/ec2_version ] || [ -e /usr/sbin/update-grub-legacy-ec2 ]; then
|
if [ -e /etc/ec2_version ] || [ -e /usr/sbin/update-grub-legacy-ec2 ]; then
|
||||||
wget -q -O- --timeout=1 http://169.254.169.254 >/dev/null 2>&1
|
wget -q -O- --timeout=1 --tries=1 http://169.254.169.254 >/dev/null 2>&1
|
||||||
else
|
else
|
||||||
false
|
false
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue