This file is indexed.

/usr/share/initramfs-tools/scripts/casper-bottom/26serialtty is in casper 1.394.

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
#! /bin/sh

PREREQ=""
DESCRIPTION="Setting up a serial tty..."

prereqs()
{
       echo "$PREREQ"
}

case $1 in
# get pre-requisites
prereqs)
       prereqs
       exit 0
       ;;
esac

. /scripts/casper-functions

for x in $(cat /proc/cmdline); do
    case $x in
        serialtty=*)
            tty=${x#serialtty=}
            log_begin_msg "$DESCRIPTION"
            cat > /root/etc/init/${tty}.conf <<EOF
start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]

respawn
exec /sbin/getty -L 115200 ${tty} vt100
EOF
            log_end_msg
            ;;
    esac
done