summaryrefslogtreecommitdiff
path: root/modules.d/99base
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-03-13 08:04:25 +0100
committerHarald Hoyer <harald@redhat.com>2013-03-13 09:34:47 +0100
commitc85cda9e2f72c655c01452956bda629bbecb9e55 (patch)
tree109b575d9b6440879be22181b4f8cf3ef0740f8c /modules.d/99base
parentc0c6c74d99a06a4ccdc2ddc8849bbe073e5bcbce (diff)
downloaddracut-c85cda9e2f72c655c01452956bda629bbecb9e55.tar.gz
dracut-c85cda9e2f72c655c01452956bda629bbecb9e55.tar.bz2
dracut-c85cda9e2f72c655c01452956bda629bbecb9e55.zip
systemd: local-fs.target is now root-fs.target and initrd-fs.target
Also rename dracut.target to initrd.target see also systemd commit 700e07f http://cgit.freedesktop.org/systemd/systemd/commit/?id=700e07f
Diffstat (limited to 'modules.d/99base')
-rwxr-xr-xmodules.d/99base/dracut-lib.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh
index d2c803a5..d4d1e776 100755
--- a/modules.d/99base/dracut-lib.sh
+++ b/modules.d/99base/dracut-lib.sh
@@ -839,9 +839,9 @@ wait_for_dev()
_name="${_name##/}"
_name="$(str_replace "$_name" '-' '\x2d')"
_name="$(str_replace "$_name" '/' '-')"
- if ! [ -L ${PREFIX}/etc/systemd/system/dracut.target.requires/${_name}.device ]; then
- [ -d ${PREFIX}/etc/systemd/system/dracut.target.requires ] || mkdir -p ${PREFIX}/etc/systemd/system/dracut.target.requires
- ln -s ../${_name}.device ${PREFIX}/etc/systemd/system/dracut.target.requires/${_name}.device
+ if ! [ -L ${PREFIX}/etc/systemd/system/initrd.target.requires/${_name}.device ]; then
+ [ -d ${PREFIX}/etc/systemd/system/initrd.target.requires ] || mkdir -p ${PREFIX}/etc/systemd/system/initrd.target.requires
+ ln -s ../${_name}.device ${PREFIX}/etc/systemd/system/initrd.target.requires/${_name}.device
fi
fi
}