/usr/share/ltsp/plugins/ltsp-build-client/ALTLinux/015-gen-ltsp-base is in ltsp-server 5.5.7-1.
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 62 63 | case "$MODE" in
install)
scratch_build()
{
EtcAptDir=$(mktemp -d -t apt.XXXXXXXX)
echo "Dir::Etc::main \"/dev/null\";" > "$EtcAptDir/apt.conf"
echo "Dir::Etc::parts \"/var/empty\";" >> "$EtcAptDir/apt.conf"
echo "Dir::Etc::SourceParts \"/var/empty\";" >> "$EtcAptDir/apt.conf"
echo "Dir::Etc::sourcelist \"$sources_list\";" >> "$EtcAptDir/apt.conf"
mkdir -p "$ROOT"/{etc,var/lib}/rpm
rpm --initdb --root "$ROOT" >&2
$SETARCH apt-get $APT_VERBOSE update --config-file="$EtcAptDir/apt.conf" -o RPM::RootDir="$ROOT" >&2
$SETARCH apt-get -y $APT_VERBOSE install --config-file="$EtcAptDir/apt.conf" -o RPM::RootDir="$ROOT" apt chrooted-resolv >&2
rm -rf "$EtcAptDir"
if echo "$MIRROR $EXTRA_MIRROR" | egrep -q '(ftp|http|ssh|rsh)://'; then
if cp --preserve=mode,ownership /etc/resolv.conf "$ROOT"/etc/; then
$SETARCH chroot "$ROOT" update_chrooted -f conf
fi
fi
}
tar_build()
{
tar -C "$ROOT" -x${1}f "$CHROOT_IMAGE"
}
cpio_build()
{
pushd "$ROOT"
${1}cat "$CHROOT_IMAGE" | cpio -i -m --no-absolute-filenames -d
popd
}
if [ -n "$CHROOT_IMAGE" -a -r "$CHROOT_IMAGE" ]; then
case "$CHROOT_IMAGE" in
*.tar.gz|*.tgz|*.tar.Z|*.tZ)
tar_build z
;;
*.tar.bz2|*.tbz2|*.tbz)
tar_build j
;;
*.tar)
tar_build
;;
*.cpio)
build_cpio
;;
*.cpio.gz|*.cpio.Z)
cpio_build z
;;
*.cpio.bz2)
cpio_build bz
;;
*)
echo "Usupported image file format. Trying buld chroot from scratch."
scratch_build
;;
esac
else
scratch_build
fi
;;
esac
|