This file is indexed.

/usr/share/ltsp/plugins/ltsp-build-client/Debian/020-kernel-selection is in ltsp-server 5.4.2-6+deb7u1.

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
57
58
59
60
61
case "$MODE" in
    commandline)
        add_option "kernel-packages" "`eval_gettext "set the list of kernel packages to install"`" "advanced" "true"
        add_option "kernel-variant" "`eval_gettext "set the kernel variant to install"`" "advanced" "true"
        add_option "kernel-version" "`eval_gettext "set the kernel version to install"`" "advanced" "true"
        ;;
    configure)
        if [ -n "$option_kernel_packages_value" ]; then
            KERNEL_PACKAGES="$(echo $option_kernel_packages_value | tr ',' ' ')"
        fi
        if [ -n "$option_kernel_variant_value" ]; then
            KERNEL_VARIANT="$(echo $option_kernel_variant_value | tr ',' ' ')"
        fi
        if [ -n "$option_kernel_version_value" ]; then
            KERNEL_VERSION="$(echo $option_kernel_version_value | tr ',' ' ')"
        fi
        ;;
    before-install)
        if [ -z "$KERNEL_PACKAGES" ]; then
            # select a kernel
            KERNEL_BASE="linux-image"
            case $ARCH in
                kfreebsd-*)
                    KERNEL_BASE="kfreebsd-image"
                    ;;
            esac
            case $ARCH in
                i386|kfreebsd-i386)
                    KERNEL_VARIANT="486"
                    ;;
                kfreebsd-amd64)
                    KERNEL_VARIANT="amd64"
                    ;;
                sparc) # only 64 bit kernel is supported in Debian Lenny+
                    KERNEL_VARIANT="sparc64"
                    ;;
                alpha)
                    KERNEL_VARIANT="alpha-generic"
                    ;;
                powerpc|amd64) 
                    KERNEL_VARIANT="$ARCH"
                    ;;
                *)
                    # generic kernel unknown, select the running kernel
                    KERNEL_VERSION="$(uname -r)"
                    KERNEL_PACKAGES="$KERNEL_BASE-$KERNEL_VERSION"
                    if [ "$HOST_ARCH" != "$ARCH" ]; then
                        echo "ERROR: unable to determine cross-architecture kernel"
                        echo "please select kernel with with --kernel-packages"
                        exit 1
                    fi
                    ;;
            esac
            if [ -z "$KERNEL_PACKAGES" ]; then
                test -n "$KERNEL_VERSION" && KERNEL_BASE="$KERNEL_BASE-$KERNEL_VERSION"
                test -n "$KERNEL_VARIANT" && KERNEL_PACKAGES="$KERNEL_BASE-$KERNEL_VARIANT"
            fi
        fi
        test -n "$KERNEL_PACKAGES" && LATE_PACKAGES="$LATE_PACKAGES $KERNEL_PACKAGES"
        ;;
esac