mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Put chroot provision into its own preflight
This commit is contained in:
12
install/preflight/chroot.sh
Normal file
12
install/preflight/chroot.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
# Chroot installations have some differences
|
||||
if ! cmp -s /proc/1/root/ / 2>/dev/null; then
|
||||
export OMARCHY_CHROOT_INSTALL=1
|
||||
fi
|
||||
|
||||
chrootable_systemctl_enable() {
|
||||
if [ -n "${OMARCHY_CHROOT_INSTALL:-}" ]; then
|
||||
sudo systemctl enable $1
|
||||
else
|
||||
sudo systemctl enable --now $1
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user