From 8bab5609a06d7f12c3fd5e3c30af074994e3d50b Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 2 Feb 2024 15:18:00 +0100 Subject: [dnbd3-rootfs] Make sure to copy dnbd3-client binary again Somehow this got MIA in the big refactor. --- .../hooks/copy-dracut-systemd-files-into-newroot.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/modules.d/dnbd3-rootfs/hooks/copy-dracut-systemd-files-into-newroot.sh b/modules.d/dnbd3-rootfs/hooks/copy-dracut-systemd-files-into-newroot.sh index 58f23207..007b950d 100755 --- a/modules.d/dnbd3-rootfs/hooks/copy-dracut-systemd-files-into-newroot.sh +++ b/modules.d/dnbd3-rootfs/hooks/copy-dracut-systemd-files-into-newroot.sh @@ -1,8 +1,12 @@ -#!/usr/bin/env bash -# -*- coding: utf-8 -*- -type emergency_shell >/dev/null 2>&1 || source /lib/dracut-lib.sh +#!/bin/bash -# Copy out services over to stage 4, so they still appear in +type emergency_shell &>/dev/null || source /lib/dracut-lib.sh + +# Copy dnbd3-client too, needed for controlling dnbd0 +mkdir -p "${NEWROOT}/opt/openslx/sbin" +cp "$(which dnbd3-client)" "${NEWROOT}/opt/openslx/sbin/dnbd3-client" + +# Copy our services over to stage 4, so they still appear in # systemd-analyze plot etc. new_systemd_system_unit_path="${NEWROOT}/lib/systemd/system" -- cgit v1.2.3-55-g7522