added chromium installation (no snap), target filename fix (install_pkg)
This commit is contained in:
@@ -65,4 +65,4 @@ export FORCEBLANK=false
|
|||||||
|
|
||||||
# Liste des modules à executer (surchargeable en ligne de commande)
|
# Liste des modules à executer (surchargeable en ligne de commande)
|
||||||
export MODULE_LIST="upgrade_dist conf_disks conf_locale conf_ntp conf_ssh \
|
export MODULE_LIST="upgrade_dist conf_disks conf_locale conf_ntp conf_ssh \
|
||||||
install_desktop install_pkg"
|
install_desktop install_pkg install_chromium"
|
||||||
|
|||||||
33
modules/install_chromium.sh
Normal file
33
modules/install_chromium.sh
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# Since Ubuntu install snapd version of Chromium and we don't want that
|
||||||
|
# we need a special procedure to install Debian Buster version.
|
||||||
|
# Consequently that module is *Ubuntu centric.
|
||||||
|
|
||||||
|
export VER_install_chromium="0.0.1"
|
||||||
|
|
||||||
|
install_chromium()
|
||||||
|
{
|
||||||
|
# Add Debian Buster repo to sources.list.d directory
|
||||||
|
installfile debian_buster.dist /etc/apt/sources.list.d/
|
||||||
|
|
||||||
|
# Install Debian GPG keys
|
||||||
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DCC9EFBF77E11517
|
||||||
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 648ACFD622F3D138
|
||||||
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AA8E81B4331F7F50
|
||||||
|
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 112695A0E562B32A
|
||||||
|
|
||||||
|
# Install package manager conf file for Chromium
|
||||||
|
installfile apt_chromium.conf /etc/apt/preferences.d/
|
||||||
|
|
||||||
|
# Update package list and install
|
||||||
|
pkgupt
|
||||||
|
pkginst chromium
|
||||||
|
}
|
||||||
|
|
||||||
|
precheck_install_chromium()
|
||||||
|
{
|
||||||
|
# Nothing to check
|
||||||
|
:
|
||||||
|
}
|
||||||
|
|
||||||
|
export -f install_chromium
|
||||||
|
export -f precheck_install_chromium
|
||||||
@@ -11,7 +11,7 @@ install_pkg()
|
|||||||
if [[ -n PKGS_BLACKLIST ]]; then
|
if [[ -n PKGS_BLACKLIST ]]; then
|
||||||
for pkg in $PKGS_BLACKLIST; do
|
for pkg in $PKGS_BLACKLIST; do
|
||||||
prnt I "Mise du paquet $pkg en liste noire..."
|
prnt I "Mise du paquet $pkg en liste noire..."
|
||||||
local dest=/usr/apt/apt.conf.d/blacklist_$pkg.conf
|
local dest=/usr/apt/preferences.d/blacklist_$pkg.conf
|
||||||
installfile blacklist.conf $dest &&
|
installfile blacklist.conf $dest &&
|
||||||
sed -i -e "s/@pkg@/pkg/" $dest
|
sed -i -e "s/@pkg@/pkg/" $dest
|
||||||
done
|
done
|
||||||
|
|||||||
16
repo/common/apt_chromium.conf
Normal file
16
repo/common/apt_chromium.conf
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
# Note: 2 blank lines are required between entries
|
||||||
|
Package: *
|
||||||
|
Pin: release a=eoan
|
||||||
|
Pin-Priority: 500
|
||||||
|
|
||||||
|
|
||||||
|
Package: *
|
||||||
|
Pin: origin "ftp.debian.org"
|
||||||
|
Pin-Priority: 300
|
||||||
|
|
||||||
|
|
||||||
|
# Pattern includes 'chromium', 'chromium-browser' and similarly
|
||||||
|
# named dependencies:
|
||||||
|
Package: chromium*
|
||||||
|
Pin: origin "ftp.debian.org"
|
||||||
|
Pin-Priority: 700
|
||||||
5
repo/common/debian_buster.list
Normal file
5
repo/common/debian_buster.list
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# Basic Debian Buster repositories
|
||||||
|
|
||||||
|
deb http://deb.debian.org/debian buster main
|
||||||
|
deb http://deb.debian.org/debian buster-updates main
|
||||||
|
deb http://deb.debian.org/debian-security buster/updates main
|
||||||
Reference in New Issue
Block a user