/usr/share/ltsp/plugins/ltsp-build-client/Ubuntu/001-set-mint-dist 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 | case "$MODE" in
commandline)
add_option "mint-dist" "`eval_gettext "set the linuxmint distribution to be used for install, defaults to running distribution"`" "regular" "true"
;;
configure)
LSB_RELEASE_CODENAME="$(lsb_release --short --codename)"
LSB_RELEASE_ID="$(lsb_release --short --id)"
if [ -n "$option_mint_dist_value" ]; then
MINT_DIST="$option_mint_dist_value"
elif [ -z "$MINT_DIST" ] && [ "$LSB_RELEASE_ID" = "LinuxMint" ]; then
MINT_DIST="$LSB_RELEASE_CODENAME"
fi
if [ "$MINT_DIST" = "none" ]; then
MINT_DIST=""
fi
if [ -n "$MINT_DIST" ] && [ -z "$option_dist_value" ]; then
DIST=$(sed -n 's/base_codename=//p' "/usr/share/mintsources/$MINT_DIST/mintsources.conf")
fi
if [ -n "$MINT_DIST" ]; then
APT_KEYS=${APT_KEYS:-"/usr/share/keyrings/linuxmint-keyring.gpg"}
MINT_MIRROR=${MINT_MIRROR:-"http://packages.linuxmint.com"}
MINT_COMPONENTS=${MINT_COMPONENTS:-"main upstream import"}
LATE_PACKAGES="linuxmint-keyring mint-meta-core mint-artwork-common ldm-mint-theme $LATE_PACKAGES"
fi
;;
after-install)
if [ -n "$MINT_DIST" ]; then
cat << EOF > $ROOT/etc/apt/apt.conf.d/00recommends || true
APT::Install-Recommends "false";
Aptitude::Recommends-Important "false";
EOF
cat << EOF > $ROOT/etc/apt/preferences.d/official-package-repositories.pref || true
Package: *
Pin: release o=linuxmint
Pin-Priority: 700
Package: *
Pin: origin packages.linuxmint.com
Pin-Priority: 700
Package: *
Pin: release o=Ubuntu
Pin-Priority: 500
EOF
fi
;;
esac
|