This file is indexed.

/var/lib/fai/config/hooks/extrbase.DEFAULT is in goto-fai 3.1-1.

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

sendmon "TASKBEGIN extrbase"

fs=$FAI_ROOT/etc/fstab

# What's our mirror?
mirror="$(sed '1s/^[^ ]* \([^ ]*\).*$/\1/' $FAI/files/etc/apt/sources.list/LAST)"
options="$(sed -n 's/^FAI_DEBOOTSTRAP_OPTS=.\(.*\).$/\1/p' /etc/fai/make-fai-nfsroot.conf)"
scriptsdir=$([ -d /usr/lib/debootstrap/scripts/ ] && echo '/usr/lib/debootstrap/scripts/' || echo '/usr/share/debootstrap/scripts/')

if [ "x" = "x${FAIdistributionBase}" ]; then
  FAIdistributionBase="$FAIclientRelease"
fi

echo "Bootstrapping Debian base system"
echo "+ mirror : $mirror"
echo "+ release: $FAIclientRelease"
echo "+ base: $FAIdistributionBase"
echo "- exec (debootstrap $options $FAIclientRelease $FAI_ROOT $mirror ${scriptsdir}${FAIdistributionBase})"

# Run debootstrap - needs to run in a subshell, since env seems to
# be broken?! debootstrap otherwise cancels after extracting
debootstrap --verbose $options $FAIclientRelease $FAI_ROOT $mirror "${scriptsdir}${FAIdistributionBase}"

cp /etc/resolv.conf $FAI_ROOT/etc/resolv.conf

# Now we can copy fstab
[ -f $fs ] && mv $fs $fs.old
cp -p $LOGDIR/fstab $fs

sendmon "TASKEND extrbase"

skiptask extrbase