From a07e01dc2f6ff50730c1bc5534e0c7f649a23fd8 Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Sat, 29 May 2021 19:30:30 -0500 Subject: systemd-248.3-2.parabola1: updating version --- libre/systemd/udev-hook | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libre/systemd/udev-hook') diff --git a/libre/systemd/udev-hook b/libre/systemd/udev-hook index 61d853293..659463af7 100644 --- a/libre/systemd/udev-hook +++ b/libre/systemd/udev-hook @@ -1,6 +1,14 @@ #!/bin/sh -e +is_chrooted() { + if systemd-detect-virt --chroot; then + echo >&2 " Skipped: Running in chroot." + exit 0 + fi +} + udevd_live() { + is_chrooted if [ ! -d /run/udev ]; then echo >&2 " Skipped: Device manager is not running." exit 0 -- cgit v1.2.3