From bcbb49f4ab9fbf0f1d959919ef851cadb7076835 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 16 Jul 2019 12:56:29 +0200 Subject: [slx-uuid] get uuid in pre-udev already --- builder/modules.d/slx-uuid/module-setup.sh | 6 +++--- builder/modules.d/slx-uuid/scripts/get-system-uuid.sh | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/builder/modules.d/slx-uuid/module-setup.sh b/builder/modules.d/slx-uuid/module-setup.sh index 875c9f77..569b5155 100755 --- a/builder/modules.d/slx-uuid/module-setup.sh +++ b/builder/modules.d/slx-uuid/module-setup.sh @@ -9,12 +9,12 @@ check() { return 255 } depends() { - echo dnbd3-rootfs + echo busybox } install() { mkdir -p "$initdir/etc/bad-uuid.d" inst_simple "$moddir/bad-uuid-defaults.conf" "/etc/bad-uuid.d/bad-uuid-defaults.conf" - inst_multiple dmidecode head - inst_hook pre-mount 05 "$moddir/scripts/get-system-uuid.sh" + inst_multiple dmidecode + inst_hook pre-udev 05 "$moddir/scripts/get-system-uuid.sh" inst_hook pre-pivot 10 "$moddir/scripts/copy-system-uuid-to-newroot.sh" } diff --git a/builder/modules.d/slx-uuid/scripts/get-system-uuid.sh b/builder/modules.d/slx-uuid/scripts/get-system-uuid.sh index 4f170e23..fd6bb125 100644 --- a/builder/modules.d/slx-uuid/scripts/get-system-uuid.sh +++ b/builder/modules.d/slx-uuid/scripts/get-system-uuid.sh @@ -6,8 +6,8 @@ . /lib/dracut-lib.sh get_system_uuid() { - if [ -e /run/openslx/pxe-network.conf ]; then - . /run/openslx/pxe-network.conf + if [ -e /run/openslx/network.conf ]; then + . /run/openslx/network.conf fi if [ -z "$SLX_PXE_MAC" ]; then -- cgit v1.2.3-55-g7522