This file is indexed.

/lib/live/config/105-initramfs-tools is in live-config 3.0~a22-1ubuntu1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/bin/sh

## live-config(7) - System Configuration Scripts
## Copyright (C) 2006-2011 Daniel Baumann <daniel@debian.org>
##
## live-config comes with ABSOLUTELY NO WARRANTY; for details see COPYING.
## This is free software, and you are welcome to redistribute it
## under certain conditions; see COPYING for details.


Initramfs_tools ()
{
	# Checking if package is installed or already configured
	if [ ! -e /var/lib/dpkg/info/initramfs-tools.list ] || \
	   [ -e /var/lib/live/config/initramfs-tools ]
	then
		return
	fi

	echo -n " initramfs-tools"

	Configure_update_initramfs
}

Configure_update_initramfs ()
{
	# Checking if apckage is already configured differently
	if [ -e /usr/sbin/update-initramfs.debian ]
	then
		return
	fi

	# Possibly disabling update-initramfs (useless on a live CD)

	# Diverting /usr/sbin/update-initramfs
	dpkg-divert --quiet --package live-config --add --rename --divert /usr/sbin/update-initramfs.debian /usr/sbin/update-initramfs

	# rw is guaranteed to be first.
	if [ -w /cdrom ] && grep -q ' /cdrom rw[, ]' /proc/self/mountinfo
	then
		# live-media is writable

cat > /usr/sbin/update-initramfs << 'EOF'
#!/bin/sh

# Updating initramfs
update-initramfs.debian "${@}"

if [ -e /initrd.img ]
then
	_DIRECTORY=""
else
	_DIRECTORY="/boot"
fi

# Copying kernel and initrd to live media
if [ -e /cdrom/live/initrd.lz ]
then
	zcat "${_DIRECTORY}/initrd.img" | lzma -9c > /cdrom/live/initrd.lz.new
	mv /cdrom/live/initrd.lz.new /cdrom/live/initrd.lz
else
	cp "${_DIRECTORY}/initrd.img" /cdrom/live/initrd.gz.new
	mv /cdrom/live/initrd.gz.new /cdrom/live/initrd.gz
fi

cp "${_DIRECTORY}/vmlinuz" /cdrom/live/vmlinuz.new
mv /cdrom/live/vmlinuz.new /cdrom/live/vmlinuz
EOF

	else
		# live-media is read-only

cat > /usr/sbin/update-initramfs << EOF
#!/bin/sh

echo "I: update-initramfs is disabled (live system is running on read-only media)."
EOF

fi

	chmod 0755 /usr/sbin/update-initramfs

	# Creating state file
	touch /var/lib/live/config/initramfs-tools
}

Initramfs_tools