summaryrefslogtreecommitdiff
path: root/debian/postinst
diff options
context:
space:
mode:
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#