summaryrefslogtreecommitdiff
path: root/update-initramfs.conf
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-04-18 23:47:06 -0400
committerAndrew Cady <d@jerkface.net>2016-04-18 23:47:06 -0400
commitd71f14f8128477c0ae533612896fbe2990d73eae (patch)
tree12d86cc751e4d39d1b0a173d3f1c3920903b164a /update-initramfs.conf
init
Diffstat (limited to 'update-initramfs.conf')
-rw-r--r--update-initramfs.conf30
1 files changed, 30 insertions, 0 deletions
diff --git a/update-initramfs.conf b/update-initramfs.conf
new file mode 100644
index 0000000..ce86f30
--- /dev/null
+++ b/update-initramfs.conf
@@ -0,0 +1,30 @@
1#
2# Configuration file for update-initramfs(8)
3#
4
5#
6# update_initramfs [ yes | all | no ]
7#
8# Default is yes
9# If set to all update-initramfs will update all initramfs
10# If set to no disables any update to initramfs beside kernel upgrade
11
12update_initramfs=yes
13
14#
15# backup_initramfs [ yes | no ]
16#
17# Default is no
18# If set to no leaves no .bak backup files.
19
20backup_initramfs=no
21
22if [ "$SAMIZDAT_UPDATE_INITRAMFS_ROOT" ]; then
23 STATEDIR="$SAMIZDAT_UPDATE_INITRAMFS_ROOT"/var/lib/initramfs-tools
24 BOOTDIR="$SAMIZDAT_UPDATE_INITRAMFS_ROOT"/boot
25 test -d "$SAMIZDAT_UPDATE_INITRAMFS_ROOT" || {
26 echo "$0: Error: not a directory: ${SAMIZDAT_UPDATE_INITRAMFS_ROOT}" >&2
27 exit 1
28 }
29 mkdir -p "$STATEDIR" "$BOOTDIR"
30fi