diff options
author | Harald Hoyer <harald@redhat.com> | 2013-03-22 09:09:10 +0100 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2013-03-22 09:09:10 +0100 |
commit | cb8def95c42c90b07d737f303458731840e2da1f (patch) | |
tree | 5966a3a84ca88fe4ab5d06d74144729790d59e9e | |
parent | 78d1d4f86d8c8ad01cfa21be41852ee52db78bed (diff) | |
download | dracut-cb8def95c42c90b07d737f303458731840e2da1f.tar.gz dracut-cb8def95c42c90b07d737f303458731840e2da1f.tar.bz2 dracut-cb8def95c42c90b07d737f303458731840e2da1f.zip |
dracut.sh: export systemdsystemconfdir
-rwxr-xr-x | dracut.sh | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -892,23 +892,30 @@ fi [[ -d $systemdutildir ]] \ || systemdutildir=$(pkg-config systemd --variable=systemdutildir 2>/dev/null) -[[ -d $systemdsystemunitdir ]] \ - || systemdsystemunitdir=$(pkg-config systemd --variable=systemdsystemunitdir 2>/dev/null) if ! [[ -d "$systemdutildir" ]]; then [[ -d /lib/systemd ]] && systemdutildir=/lib/systemd [[ -d /usr/lib/systemd ]] && systemdutildir=/usr/lib/systemd fi + +[[ -d $systemdsystemunitdir ]] \ + || systemdsystemunitdir=$(pkg-config systemd --variable=systemdsystemunitdir 2>/dev/null) + [[ -d "$systemdsystemunitdir" ]] || systemdsystemunitdir=${systemdutildir}/system +[[ -d $systemdsystemconfdir ]] \ + || systemdsystemconfdir=$(pkg-config systemd --variable=systemdsystemconfdir 2>/dev/null) + +[[ -d "$systemdsystemconfdir" ]] || systemdsystemconfdir=/etc/systemd/system + export initdir dracutbasedir dracutmodules \ fw_dir drivers_dir debug no_kernel kernel_only \ omit_drivers mdadmconf lvmconf \ use_fstab fstab_lines libdirs fscks nofscks ro_mnt \ stdloglvl sysloglvl fileloglvl kmsgloglvl logfile \ debug host_fs_types host_devs sshkey add_fstab \ - DRACUT_VERSION udevdir systemdutildir systemdsystemunitdir \ - prefix filesystems drivers + DRACUT_VERSION udevdir prefix filesystems drivers \ + systemdutildir systemdsystemunitdir systemdsystemconfdir # Create some directory structure first [[ $prefix ]] && mkdir -m 0755 -p "${initdir}${prefix}" |