summaryrefslogtreecommitdiff
path: root/update-initramfs.conf
blob: ce86f30e341735474938ed7ae7f4813c65d0a8a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#
# Configuration file for update-initramfs(8)
#

#
# update_initramfs [ yes | all | no ]
#
# Default is yes
# If set to all update-initramfs will update all initramfs
# If set to no disables any update to initramfs beside kernel upgrade

update_initramfs=yes

#
# backup_initramfs [ yes | no ]
#
# Default is no
# If set to no leaves no .bak backup files.

backup_initramfs=no

if [ "$SAMIZDAT_UPDATE_INITRAMFS_ROOT" ]; then
	STATEDIR="$SAMIZDAT_UPDATE_INITRAMFS_ROOT"/var/lib/initramfs-tools
	BOOTDIR="$SAMIZDAT_UPDATE_INITRAMFS_ROOT"/boot
	test -d "$SAMIZDAT_UPDATE_INITRAMFS_ROOT" || {
		echo "$0: Error: not a directory: ${SAMIZDAT_UPDATE_INITRAMFS_ROOT}" >&2
		exit 1
	}
	mkdir -p "$STATEDIR" "$BOOTDIR"
fi