]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
systemd/dracut-pre-pivot.sh: copy service files to /run/systemd/system
authorHarald Hoyer <harald@redhat.com>
Thu, 21 Jun 2012 08:50:36 +0000 (10:50 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 21 Jun 2012 08:52:40 +0000 (10:52 +0200)
and remove the last info, so that the journal is not restarted again.

modules.d/98systemd/dracut-pre-pivot.sh

index 38e9c3c960120a067d44746928a8758bf44cf8c2..89d7e6dd95c27c683355d85b50adc4128e7c5000 100755 (executable)
@@ -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