summaryrefslogtreecommitdiff
path: root/dracut.sh
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-03-26 16:19:00 +0100
committerHarald Hoyer <harald@redhat.com>2013-03-26 16:19:00 +0100
commit6c6d80576562f1b02eddc66ceb60f74b300e36b1 (patch)
treed93a59b01e5920cd93585b7c7069d78b4d9f13eb /dracut.sh
parent44f870be42fc687f0e48a822a2cad109962d93a6 (diff)
downloaddracut-6c6d80576562f1b02eddc66ceb60f74b300e36b1.tar.gz
dracut-6c6d80576562f1b02eddc66ceb60f74b300e36b1.tar.bz2
dracut-6c6d80576562f1b02eddc66ceb60f74b300e36b1.zip
use systemd*dir variables everywhere
Diffstat (limited to 'dracut.sh')
-rwxr-xr-xdracut.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/dracut.sh b/dracut.sh
index ecd32374..5e9ea3ee 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -1067,6 +1067,15 @@ if [[ $kernel_only != yes ]]; then
cat $f >> "${initdir}/etc/fstab"
done
+ if [ -d ${initdir}/$systemdutildir ]; then
+ mkdir -p ${initdir}/etc/conf.d
+ {
+ echo "systemdutildir=\"$systemdutildir\""
+ echo "systemdsystemunitdir=\"$systemdsystemunitdir\""
+ echo "systemdsystemconfdir=\"$systemdsystemconfdir\""
+ } > ${initdir}/etc/conf.d/systemd.conf
+ fi
+
if [[ $DRACUT_RESOLVE_LAZY ]] && [[ $DRACUT_INSTALL ]]; then
dinfo "*** Resolving executable dependencies ***"
find "$initdir" -type f \