/usr/share/autopkgtest/xenlvm/fixups-inside is in autopkgtest-xenlvm 2.0.1ubuntu4.
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 | #!/bin/bash
set -e${ADT_SHELLX}
adt_host_hostname=$1
adt_guest_hostname=$2
adt_host_ipaddr=$3
adt_guest_ipaddr=$4
adt_fs_type=$5
adt_normaluser=$6
adt_provideswap=$7
echo '(---'
cd /root
if test -f /etc/lsb-release; then
. /etc/lsb-release
if [ "x$DISTRIB_ID" = xUbuntu ]; then
perl -i~ -pe 's/ main$/ main universe/ if m/^deb http/' \
/etc/apt/sources.list
fi
fi
ldconfig
cat >/etc/fstab <<END
proc /proc proc defaults 0 0
/dev/hda1 / $adt_fs_type defaults,errors=remount-ro 0 1
END
if $adt_provideswap; then
cat >>/etc/fstab <<END
/dev/hda2 none swap sw 0 0
END
fi
mkdir -p /etc/network
cat >/etc/network/interfaces <<END
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address $adt_guest_ipaddr
broadcast $adt_guest_ipaddr
netmask 255.255.255.255
pointopoint $adt_host_ipaddr
gateway $adt_host_ipaddr
END
echo $adt_guest_hostname >/etc/hostname
essc=/etc/ssh/sshd_config
perl -wne '
BEGIN {
$pep= PermitEmptyPasswords;
$want= "$pep no\n";
$done= 0;
}
if (m/^\s*$pep/oi) {
$_= $want;
$done= 1;
}
$o .= $_;
END {
print $want or die $! unless $done;
print $o or die $!;
}
' $essc >$essc.new
mv $essc.new $essc
if [ x"$adt_normaluser" != x ]; then
adduser --gecos 'adtxenlvm testing normal user account' \
--disabled-password ${adt_normaluser}
fi
apt-get update
apt-get install libc6-xen ||:
echo '---)'
|