summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDennis Eriksen <d@ennis.no>2020-04-30 11:38:58 +0200
committerDennis Eriksen <d@ennis.no>2020-04-30 11:38:58 +0200
commit7dc9edb8fb9f3c4591f1e97680a50f33c2b9a8d0 (patch)
tree8f2a31cbf62d6eef24b13279ab7a3c06071a7c2d
parentexchanging apt with apt-get for better script-compatability (diff)
downloadmkosi-cgit-7dc9edb8fb9f3c4591f1e97680a50f33c2b9a8d0.tar.gz
upgrading to Focal
-rw-r--r--mkosi.default2
-rwxr-xr-xmkosi.postinst2
2 files changed, 2 insertions, 2 deletions
diff --git a/mkosi.default b/mkosi.default
index d8df547..fdf8e75 100644
--- a/mkosi.default
+++ b/mkosi.default
@@ -1,6 +1,6 @@
[Distribution]
Distribution=ubuntu
-Release=bionic
+Release=focal
Repositories=main,universe
Mirror=http://no.archive.ubuntu.com/ubuntu
diff --git a/mkosi.postinst b/mkosi.postinst
index dc283d8..d025890 100755
--- a/mkosi.postinst
+++ b/mkosi.postinst
@@ -8,7 +8,7 @@ systemctl mask motd-news.service
systemctl mask motd-news.timer
# Add update- and security-repositories, and perform upgrade
-RELEASE=$(cat /etc/lsb-release | grep DISTRIB_CODENAME | awk -F'=' '{print $2}')
+RELEASE=$(grep DISTRIB_CODENAME /etc/lsb-release | awk -F'=' '{print $2}')
echo "deb http://no.archive.ubuntu.com/ubuntu ${RELEASE}-security main universe" >> /etc/apt/sources.list
echo "deb http://no.archive.ubuntu.com/ubuntu ${RELEASE}-updates main universe" >> /etc/apt/sources.list
apt-get update && apt-get --yes full-upgrade && apt-get --yes autoremove