From 6de4591a28c35fd0ae30bcda0c2c61159651dc2b Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 19 Aug 2025 14:17:04 +0200 Subject: [PATCH] Offer install scripts a way to know if they're in chroot --- install.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install.sh b/install.sh index 107df08a..92176459 100755 --- a/install.sh +++ b/install.sh @@ -6,6 +6,9 @@ set -e export PATH="$HOME/.local/share/omarchy/bin:$PATH" OMARCHY_INSTALL=~/.local/share/omarchy/install +# Chroot installations have some differences +export OMARCHY_CHROOT_INSTALL=$(! cmp -s /proc/1/root/ / && echo 1 || echo 0) + # Give people a chance to retry running the installation catch_errors() { echo -e "\n\e[31mOmarchy installation failed!\e[0m"