Allow calling installdeps.sh from anywhere

It's nice for the desktop installer contributors to be able to run
"./path/to/subiquity/scripts/installdeps.sh" without changing dir.
This commit is contained in:
J-P Nurmi 2022-03-04 16:12:41 +01:00
parent d1d3f82be5
commit cbde0a4762
1 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,7 @@
#!/bin/bash
set -eux
cd "$(dirname ${BASH_SOURCE:0})/.."
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get -o APT::Get::Always-Include-Phased-Updates=true -y dist-upgrade
mkdir -p /etc/systemd/system/zfs-mount.service.d/