From: Harald Hoyer Date: Thu, 21 Jun 2012 08:50:36 +0000 (+0200) Subject: systemd/dracut-pre-pivot.sh: copy service files to /run/systemd/system X-Git-Tag: 020~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc51bc6fdbe3962d5ca81808ed685ddc41770935;p=thirdparty%2Fdracut.git systemd/dracut-pre-pivot.sh: copy service files to /run/systemd/system and remove the last info, so that the journal is not restarted again. --- diff --git a/modules.d/98systemd/dracut-pre-pivot.sh b/modules.d/98systemd/dracut-pre-pivot.sh index 38e9c3c96..89d7e6dd9 100755 --- a/modules.d/98systemd/dracut-pre-pivot.sh +++ b/modules.d/98systemd/dracut-pre-pivot.sh @@ -45,6 +45,7 @@ udevadm info --cleanup-db [ -h /dev/root ] && rm -f /dev/root getarg rd.break rdbreak && emergency_shell -n switch_root "Break before switch_root" -info "Switching root" + +cp -avr /lib/systemd/system/dracut*.service /run/systemd/system/ export -p > /dracut-state.sh