This file is indexed.

/etc/init/friendly-recovery.conf is in friendly-recovery 0.2.31.

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

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
# Init script for friendly recovery

start on recovery

console owner
task

emits recovery
emits startup
emits mounted

pre-start script
    if plymouth --ping; then
        plymouth hide-splash || true
    fi

    # Try to set the hostname and initialize the console
    start hostname || true
    start console-setup || true
    start setvtrgb || true

    # Make sure /run contains the required directories for the
    # recovery menu options
    mkdir -p /run/lock /run/shm || true

    # Emit the mounted event to trigger resolvconf and mounted-run
    initctl emit mounted MOUNTPOINT=/run || true

    # Finally start udev
    start udev || true
    udevadm trigger --action=add || true
    udevadm settle || true

    # And turn off kernel messages (to avoid corrupting the menu)
    dmesg --console-off || true
end script

script
    # Only start friendly-recovery when booting in recovery mode
    if ! grep -q "recovery" /proc/cmdline; then
        exit 0
    fi

    if [ -x /lib/recovery-mode/recovery-menu ]; then
        exec /lib/recovery-mode/recovery-menu
    else
        exec /sbin/sulogin
    fi
end script

post-stop script
    if plymouth --ping; then
        plymouth show-splash
    fi
    initctl emit startup
end script