Add comment to /usr/share/initramfs-tools/modules that it is not a config file

/usr/share/initramfs-tools/modules looks like it could be a live
configuration file, but it is not.  Add a short comment to the file,
then strip it when copying to /etc/initramfs-tools.

Closes: #752789
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
Ben Hutchings 2014-10-16 15:25:53 +02:00
parent 1bd461efc0
commit 64d39d07c4
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,6 @@
### This file is the template for /etc/initramfs-tools/modules.
### It is not a configuration file itself.
###
# List of modules that you want to include in your initramfs.
# They will be loaded at boot time in the order below.
#

View File

@ -3,7 +3,8 @@
set -e
if [ ! -e /etc/initramfs-tools/modules ]; then
cp /usr/share/initramfs-tools/modules /etc/initramfs-tools/
sed '/^###/d' /usr/share/initramfs-tools/modules \
> /etc/initramfs-tools/modules
fi
# Regenerate initramfs whenever we go to dpkg state `installed'