Ubuntu 19.04 support (#1351)

* ubuntu 19.04 support

* ubuntu 19.04 support 2

* ubuntu 19.04 support 3

* add netplan config
This commit is contained in:
m][sko
2019-04-19 08:14:57 -07:00
committed by Igor Pečovnik
parent 680731ceb2
commit 24c81d1b05
9 changed files with 77 additions and 10 deletions

View File

@@ -146,7 +146,7 @@ create_sources_list()
EOF
;;
xenial|bionic)
xenial|bionic|disco)
cat <<-EOF > $basedir/etc/apt/sources.list
deb http://${UBUNTU_MIRROR} $release main restricted universe multiverse
#deb-src http://${UBUNTU_MIRROR} $release main restricted universe multiverse
@@ -357,7 +357,7 @@ addtorepo()
# parameter "delete" remove incoming directory if publishing is succesful
# function: cycle trough distributions
local distributions=("jessie" "xenial" "stretch" "bionic" "buster")
local distributions=("jessie" "xenial" "stretch" "bionic" "buster" "disco")
local errors=0
for release in "${distributions[@]}"; do
@@ -555,7 +555,7 @@ prepare_host()
#
# NO_HOST_RELEASE_CHECK overrides the check for a supported host system
# Disable host OS check at your own risk, any issues reported with unsupported releases will be closed without a discussion
if [[ -z $codename || "xenial bionic" != *"$codename"* ]]; then
if [[ -z $codename || "xenial bionic disco" != *"$codename"* ]]; then
if [[ $NO_HOST_RELEASE_CHECK == yes ]]; then
display_alert "You are running on an unsupported system" "${codename:-(unknown)}" "wrn"
display_alert "Do not report any errors, warnings or other issues encountered beyond this point" "" "wrn"
@@ -568,6 +568,10 @@ prepare_host()
exit_with_error "Windows subsystem for Linux is not a supported build environment"
fi
if [[ -z $codename || "disco" == "$codename" ]]; then
hostdeps="${hostdeps/lib32ncurses5 lib32tinfo5/lib32ncurses6 lib32tinfo6}"
fi
grep -q i386 <(dpkg --print-foreign-architectures) || dpkg --add-architecture i386
if systemd-detect-virt -q -c; then
display_alert "Running in container" "$(systemd-detect-virt)" "info"