mirror of
https://salsa.debian.org/kernel-team/initramfs-tools.git
synced 2026-01-26 15:39:08 +00:00
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:
parent
1bd461efc0
commit
64d39d07c4
@ -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.
|
||||
#
|
||||
|
||||
3
debian/initramfs-tools.postinst
vendored
3
debian/initramfs-tools.postinst
vendored
@ -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'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user