summaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
authorBen Howard <ben.howard@ubuntu.com>2015-11-09 08:38:28 -0700
committerusd-importer <ubuntu-server@lists.ubuntu.com>2015-11-09 16:53:49 +0000
commit325a43b8bf4b1d8e9f02848423c3b19c3ad8071d (patch)
tree5481a5200b3e7a1fed08ab9d838c6023cbf753ae /debian/postinst
parent33844ef406f0c499eb703dfa9d1e44554be0375e (diff)
downloadvyos-walinuxagent-325a43b8bf4b1d8e9f02848423c3b19c3ad8071d.tar.gz
vyos-walinuxagent-325a43b8bf4b1d8e9f02848423c3b19c3ad8071d.zip
Import patches-unapplied version 2.1.1-0ubuntu4 to ubuntu/xenial-proposed
Imported using git-ubuntu import. Changelog parent: 33844ef406f0c499eb703dfa9d1e44554be0375e New changelog entries: * Added d/azure-resource as initramfs hook (LP: #1514485).
Diffstat (limited to 'debian/postinst')
-rw-r--r--debian/postinst5
1 files changed, 5 insertions, 0 deletions
diff --git a/debian/postinst b/debian/postinst
index fd2aa15..759c856 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -4,6 +4,11 @@ set -e
if [ "$1" = "configure" ]; then
# fix for LP: 1268050
sed -i 's|^send host-name "<hostname>";|send host-name = gethostname();|g' /etc/dhcp/dhclient.conf
+
+ # Trigger update for initramfs (LP: #1514485).
+ [ -x /usr/sbin/update-initramfs ] && update-initramfs -u
+ [ -x /etc/kernel/postinst.d/dracut ] && /etc/kernel/postinst.d/dracut $(uname -r)
+
fi
#DEBHELPER#