summaryrefslogtreecommitdiff
path: root/modules.d/98systemd
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-03-22 09:13:14 +0100
committerHarald Hoyer <harald@redhat.com>2013-03-25 07:56:12 +0100
commitcbd69dc6ff323f269493489bc061ae0400cb63be (patch)
tree9c75f5c3cf58182a545270d5e49a99b4350581ec /modules.d/98systemd
parentcb8def95c42c90b07d737f303458731840e2da1f (diff)
downloaddracut-cbd69dc6ff323f269493489bc061ae0400cb63be.tar.gz
dracut-cbd69dc6ff323f269493489bc061ae0400cb63be.tar.bz2
dracut-cbd69dc6ff323f269493489bc061ae0400cb63be.zip
install dracut-*.service units
Diffstat (limited to 'modules.d/98systemd')
-rwxr-xr-xmodules.d/98systemd/dracut-cmdline.sh2
-rwxr-xr-xmodules.d/98systemd/dracut-initqueue.sh2
-rwxr-xr-xmodules.d/98systemd/dracut-mount.sh2
-rwxr-xr-xmodules.d/98systemd/dracut-pre-mount.sh2
-rwxr-xr-xmodules.d/98systemd/dracut-pre-pivot.sh2
-rwxr-xr-xmodules.d/98systemd/dracut-pre-trigger.sh2
-rwxr-xr-xmodules.d/98systemd/dracut-pre-udev.sh2
-rwxr-xr-xmodules.d/98systemd/module-setup.sh47
-rw-r--r--modules.d/98systemd/udevadm-cleanup-db.service.8.asc25
9 files changed, 19 insertions, 67 deletions
diff --git a/modules.d/98systemd/dracut-cmdline.sh b/modules.d/98systemd/dracut-cmdline.sh
index fb306b23..ad51142d 100755
--- a/modules.d/98systemd/dracut-cmdline.sh
+++ b/modules.d/98systemd/dracut-cmdline.sh
@@ -73,6 +73,4 @@ export root rflags fstype netroot NEWROOT
export -p > /dracut-state.sh
-service="${0##*/}"
-cp "/etc/systemd/system/${service%.sh}.service" /run/systemd/system/
exit 0
diff --git a/modules.d/98systemd/dracut-initqueue.sh b/modules.d/98systemd/dracut-initqueue.sh
index 326e2030..c6fab307 100755
--- a/modules.d/98systemd/dracut-initqueue.sh
+++ b/modules.d/98systemd/dracut-initqueue.sh
@@ -72,6 +72,4 @@ unset RDRETRY
export -p > /dracut-state.sh
-service="${0##*/}"
-cp "/etc/systemd/system/${service%.sh}.service" /run/systemd/system/
exit 0
diff --git a/modules.d/98systemd/dracut-mount.sh b/modules.d/98systemd/dracut-mount.sh
index 6cb4519f..5f3d9f0b 100755
--- a/modules.d/98systemd/dracut-mount.sh
+++ b/modules.d/98systemd/dracut-mount.sh
@@ -36,6 +36,4 @@ done
export -p > /dracut-state.sh
-service="${0##*/}"
-cp "/etc/systemd/system/${service%.sh}.service" /run/systemd/system/
exit 0
diff --git a/modules.d/98systemd/dracut-pre-mount.sh b/modules.d/98systemd/dracut-pre-mount.sh
index cc2aa43a..55b051ab 100755
--- a/modules.d/98systemd/dracut-pre-mount.sh
+++ b/modules.d/98systemd/dracut-pre-mount.sh
@@ -17,6 +17,4 @@ source_hook pre-mount
export -p > /dracut-state.sh
-service="${0##*/}"
-cp "/etc/systemd/system/${service%.sh}.service" /run/systemd/system/
exit 0
diff --git a/modules.d/98systemd/dracut-pre-pivot.sh b/modules.d/98systemd/dracut-pre-pivot.sh
index 5d47ce21..63cc9b34 100755
--- a/modules.d/98systemd/dracut-pre-pivot.sh
+++ b/modules.d/98systemd/dracut-pre-pivot.sh
@@ -25,6 +25,4 @@ getarg rd.break -d rdbreak && emergency_shell -n switch_root "Break before switc
# remove helper symlink
[ -h /dev/root ] && rm -f /dev/root
-service="${0##*/}"
-cp "/etc/systemd/system/${service%.sh}.service" /run/systemd/system/
exit 0
diff --git a/modules.d/98systemd/dracut-pre-trigger.sh b/modules.d/98systemd/dracut-pre-trigger.sh
index 4e8e8440..0dbf32a5 100755
--- a/modules.d/98systemd/dracut-pre-trigger.sh
+++ b/modules.d/98systemd/dracut-pre-trigger.sh
@@ -20,6 +20,4 @@ udevadm control --reload >/dev/null 2>&1 || :
export -p > /dracut-state.sh
-service="${0##*/}"
-cp "/etc/systemd/system/${service%.sh}.service" /run/systemd/system/
exit 0
diff --git a/modules.d/98systemd/dracut-pre-udev.sh b/modules.d/98systemd/dracut-pre-udev.sh
index afbd61f0..638da40f 100755
--- a/modules.d/98systemd/dracut-pre-udev.sh
+++ b/modules.d/98systemd/dracut-pre-udev.sh
@@ -55,6 +55,4 @@ unset _do_insmodpost _modprobe_d
unset i
export -p > /dracut-state.sh
-service="${0##*/}"
-cp "/etc/systemd/system/${service%.sh}.service" /run/systemd/system/
exit 0
diff --git a/modules.d/98systemd/module-setup.sh b/modules.d/98systemd/module-setup.sh
index 252074fb..fc8f09aa 100755
--- a/modules.d/98systemd/module-setup.sh
+++ b/modules.d/98systemd/module-setup.sh
@@ -91,7 +91,22 @@ install() {
$systemdsystemunitdir/sockets.target.wants/systemd-journald.socket \
$systemdsystemunitdir/sysinit.target.wants/systemd-udevd.service \
$systemdsystemunitdir/sysinit.target.wants/systemd-udev-trigger.service \
-\
+ \
+ $systemdsystemunitdir/dracut-cmdline.service \
+ $systemdsystemunitdir/dracut-initqueue.service \
+ $systemdsystemunitdir/dracut-mount.service \
+ $systemdsystemunitdir/dracut-pre-mount.service \
+ $systemdsystemunitdir/dracut-pre-pivot.service \
+ $systemdsystemunitdir/dracut-pre-trigger.service \
+ $systemdsystemunitdir/dracut-pre-udev.service \
+ $systemdsystemunitdir/initrd.target.wants/dracut-cmdline.service \
+ $systemdsystemunitdir/initrd.target.wants/dracut-initqueue.service \
+ $systemdsystemunitdir/initrd.target.wants/dracut-mount.service \
+ $systemdsystemunitdir/initrd.target.wants/dracut-pre-mount.service \
+ $systemdsystemunitdir/initrd.target.wants/dracut-pre-pivot.service \
+ $systemdsystemunitdir/initrd.target.wants/dracut-pre-trigger.service \
+ $systemdsystemunitdir/initrd.target.wants/dracut-pre-udev.service \
+ \
$systemdsystemunitdir/ctrl-alt-del.target \
$systemdsystemunitdir/syslog.socket \
$systemdsystemunitdir/initrd-switch-root.target \
@@ -99,7 +114,7 @@ install() {
$systemdsystemunitdir/initrd-cleanup.service \
$systemdsystemunitdir/initrd-udevadm-cleanup-db.service \
$systemdsystemunitdir/initrd-parse-etc.service \
-\
+ \
$systemdsystemunitdir/umount.target \
journalctl systemctl echo swapoff systemd-cgls
@@ -160,39 +175,15 @@ install() {
inst_simple "$moddir/dracut-emergency.service" ${systemdsystemunitdir}/dracut-emergency.service
inst_simple "$moddir/emergency.service" ${systemdsystemunitdir}/rescue.service
- dracutsystemunitdir="/etc/systemd/system"
-
- mkdir -p "${initdir}${dracutsystemunitdir}/initrd.target.wants"
-
ln -fs initrd.target "${initdir}${systemdsystemunitdir}/default.target"
inst_script "$moddir/dracut-cmdline.sh" /bin/dracut-cmdline
- inst_simple "$moddir/dracut-cmdline.service" ${dracutsystemunitdir}/dracut-cmdline.service
- ln -fs ../dracut-cmdline.service "${initdir}${dracutsystemunitdir}/initrd.target.wants/dracut-cmdline.service"
-
inst_script "$moddir/dracut-pre-udev.sh" /bin/dracut-pre-udev
- inst_simple "$moddir/dracut-pre-udev.service" ${dracutsystemunitdir}/dracut-pre-udev.service
- ln -fs ../dracut-pre-udev.service "${initdir}${dracutsystemunitdir}/initrd.target.wants/dracut-pre-udev.service"
-
inst_script "$moddir/dracut-pre-trigger.sh" /bin/dracut-pre-trigger
- inst_simple "$moddir/dracut-pre-trigger.service" ${dracutsystemunitdir}/dracut-pre-trigger.service
- ln -fs ../dracut-pre-trigger.service "${initdir}${dracutsystemunitdir}/initrd.target.wants/dracut-pre-trigger.service"
-
inst_script "$moddir/dracut-initqueue.sh" /bin/dracut-initqueue
- inst_simple "$moddir/dracut-initqueue.service" ${dracutsystemunitdir}/dracut-initqueue.service
- ln -fs ../dracut-initqueue.service "${initdir}${dracutsystemunitdir}/initrd.target.wants/dracut-initqueue.service"
-
inst_script "$moddir/dracut-pre-mount.sh" /bin/dracut-pre-mount
- inst_simple "$moddir/dracut-pre-mount.service" ${dracutsystemunitdir}/dracut-pre-mount.service
- ln -fs ../dracut-pre-mount.service "${initdir}${dracutsystemunitdir}/initrd.target.wants/dracut-pre-mount.service"
-
inst_script "$moddir/dracut-mount.sh" /bin/dracut-mount
- inst_simple "$moddir/dracut-mount.service" ${dracutsystemunitdir}/dracut-mount.service
- ln -fs ../dracut-mount.service "${initdir}${dracutsystemunitdir}/initrd.target.wants/dracut-mount.service"
-
inst_script "$moddir/dracut-pre-pivot.sh" /bin/dracut-pre-pivot
- inst_simple "$moddir/dracut-pre-pivot.service" ${dracutsystemunitdir}/dracut-pre-pivot.service
- ln -fs ../dracut-pre-pivot.service "${initdir}${dracutsystemunitdir}/initrd.target.wants/dracut-pre-pivot.service"
inst_rules 99-systemd.rules
@@ -203,9 +194,9 @@ install() {
systemd-ask-password-console.service \
systemd-ask-password-plymouth.service \
; do
- mkdir -p "${initdir}${dracutsystemunitdir}/${i}.wants"
+ mkdir -p "${initdir}${systemdsystemconfdir}/${i}.wants"
ln_r "${systemdsystemunitdir}/systemd-vconsole-setup.service" \
- "${dracutsystemunitdir}/${i}.wants/systemd-vconsole-setup.service"
+ "${systemdsystemconfdir}/${i}.wants/systemd-vconsole-setup.service"
done
# turn off RateLimit for journal
diff --git a/modules.d/98systemd/udevadm-cleanup-db.service.8.asc b/modules.d/98systemd/udevadm-cleanup-db.service.8.asc
deleted file mode 100644
index 78371276..00000000
--- a/modules.d/98systemd/udevadm-cleanup-db.service.8.asc
+++ /dev/null
@@ -1,25 +0,0 @@
-UDEVADM-CLEANUP-DB.SERVICE(8)
-=============================
-:doctype: manpage
-:man source: dracut
-:man manual: dracut
-
-NAME
-----
-udevadm-cleanup-db.service - clean up the udev database
-
-SYNOPSIS
---------
-udevadm-cleanup-db.service
-
-DESCRIPTION
------------
-Cleans up the udev database for later import in the real root by calling "udevadm info --cleanup-db".
-
-AUTHORS
--------
-Harald Hoyer
-
-SEE ALSO
---------
-*dracut*(8)