This file is indexed.

/usr/share/ubiquity/mythbuntu-setup is in mythbuntu-live-autostart 0.69.

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
#!/bin/sh
# Used to Launch MythTV-Setup & MySQL as needed
# Copyright © 2007-2009  Mario Limonciello

ROOT="/target"
chroot=chroot
log='log-output -t mythbuntu'

#to run X apps as a different hostname
NEW_HOSTNAME=$(cat $ROOT/etc/hostname)
xhost + local:""
sed -i s/ubuntu$/ubuntu\ $NEW_HOSTNAME/ /etc/hosts

#Start mysql if necessary
if $chroot $ROOT dpkg -l | grep mysql-server >/dev/null; then
    $log $chroot $ROOT mysqld&
    mkdir -p /var/run/mysqld
    $log mount --bind $ROOT/var/run/mysqld /var/run/mysqld
fi

#Prepare login info
mkdir -p $HOME/.mythtv
rm -f $HOME/.mythtv/config.xml
ln -s /target/etc/mythtv/config.xml $HOME/.mythtv/config.xml

#Set our new hostname
hostname $NEW_HOSTNAME

#Run Mythtv-setup
xterm -e mythtv-setup.real

#Fill Database
zenity --title "Fill Database?" --question --text "Would you like to run mythfilldatabase?"
DATABASE_NOT=\$?
if [ "\$DATABASE_NOT" = "0" ]; then
    xterm -title "Running mythfilldatabase" -e "unset DISPLAY && unset SESSION_MANAGER && mythfilldatabase; sleep 3"
fi

#Stop MySQL if we started it
if [ -f $ROOT/etc/mysql/debian.cnf ]; then
    $log umount $ROOT/var/run/mysqld
    $log $chroot $ROOT mysqladmin --defaults-file=/etc/mysql/debian.cnf shutdown
fi