summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbuild-arch-iso7
1 files changed, 7 insertions, 0 deletions
diff --git a/build-arch-iso b/build-arch-iso
index 3b54bd3..8dd50f5 100755
--- a/build-arch-iso
+++ b/build-arch-iso
@@ -7,6 +7,13 @@ if [ "$(whoami)" != "root" ]; then
exit $?
fi
+pacman -Syu
+
+if [ "$(pacman -Q 'linux' | cut -d' ' -f2)-ARCH" != "$(uname -r)" ]; then
+ >&2 echo 'installed and running kernel versions differ'
+ exit 1
+fi
+
destination="$(mktemp -d)"
systemctl stop boinc