Browse Source

Check for systemd before installing systemd specific files

https://bugzilla.redhat.com/show_bug.cgi?id=1282010
master
Harald Hoyer 9 years ago
parent
commit
2da041d672
  1. 2
      dracut.sh
  2. 3
      modules.d/90crypt/module-setup.sh
  3. 2
      modules.d/95udev-rules/module-setup.sh

2
dracut.sh

@ -1481,6 +1481,7 @@ if [[ $kernel_only != yes ]]; then @@ -1481,6 +1481,7 @@ if [[ $kernel_only != yes ]]; then
cat "$f" >> "${initdir}/etc/fstab"
done

if dracut_module_included "systemd"; then
if [ -d ${initdir}/$systemdutildir ]; then
mkdir -p ${initdir}/etc/conf.d
{
@ -1489,6 +1490,7 @@ if [[ $kernel_only != yes ]]; then @@ -1489,6 +1490,7 @@ if [[ $kernel_only != yes ]]; then
printf "%s\n" "systemdsystemconfdir=\"$systemdsystemconfdir\""
} > ${initdir}/etc/conf.d/systemd.conf
fi
fi

if [[ $DRACUT_RESOLVE_LAZY ]] && [[ $DRACUT_INSTALL ]]; then
dinfo "*** Resolving executable dependencies ***"

3
modules.d/90crypt/module-setup.sh

@ -86,6 +86,7 @@ install() { @@ -86,6 +86,7 @@ install() {

inst_simple "$moddir/crypt-lib.sh" "/lib/dracut-crypt-lib.sh"

if dracut_module_included "systemd"; then
inst_multiple -o \
$systemdutildir/system-generators/systemd-cryptsetup-generator \
$systemdutildir/systemd-cryptsetup \
@ -95,5 +96,7 @@ install() { @@ -95,5 +96,7 @@ install() {
$systemdsystemunitdir/sysinit.target.wants/cryptsetup.target \
systemd-ask-password systemd-tty-ask-password-agent
inst_script "$moddir"/crypt-run-generator.sh /sbin/crypt-run-generator
fi

dracut_need_initqueue
}

2
modules.d/95udev-rules/module-setup.sh

@ -56,8 +56,10 @@ install() { @@ -56,8 +56,10 @@ install() {
# eudev rules
inst_rules 80-drivers-modprobe.rules

if dracut_module_included "systemd"; then
inst_multiple -o ${systemdutildir}/network/*.link
[[ $hostonly ]] && inst_multiple -H -o /etc/systemd/network/*.link
fi

{
for i in cdrom tape dialout floppy; do

Loading…
Cancel
Save