summaryrefslogtreecommitdiff
path: root/debian/initramfs-tools.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/initramfs-tools.postinst')
-rw-r--r--debian/initramfs-tools.postinst7
1 files changed, 6 insertions, 1 deletions
diff --git a/debian/initramfs-tools.postinst b/debian/initramfs-tools.postinst
index 94c5c1b..f1cfcfa 100644
--- a/debian/initramfs-tools.postinst
+++ b/debian/initramfs-tools.postinst
@@ -36,7 +36,12 @@ if [ "$1" = configure ]; then
fi
if [ ! -e /etc/initramfs-tools/modules ]; then
- cp /usr/share/doc/initramfs-tools/examples/modules /etc/initramfs-tools/
+ if [ -e /usr/share/doc/initramfs-tools/examples/modules ]; then
+ cp /usr/share/doc/initramfs-tools/examples/modules \
+ /etc/initramfs-tools/
+ else
+ touch /etc/initramfs-tools/modules
+ fi
fi
# Regenerate initramfs on upgrade