From e55ae923fb9d6718ab6db2f7566b9ef4b99ffbd1 Mon Sep 17 00:00:00 2001
From: Stefan Saraev <stefan@saraev.ca>
Date: Wed, 20 Aug 2014 20:17:03 +0300
Subject: [PATCH] stop unit_file_preset_all doing stupid things

populating shitload of useless symlinks into /storage/.config/system.d
is not so-nice fuckery. and systemctl preset-all is useless on an
embedded distro like openelec anyway.
---
 src/shared/install.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/shared/install.c b/src/shared/install.c
index 03c7a9d..2044042 100644
--- a/src/shared/install.c
+++ b/src/shared/install.c
@@ -1927,6 +1927,12 @@ int unit_file_preset_all(
                 UnitFileChange **changes,
                 unsigned *n_changes) {
 
+
+        // meh systemctl preset-all.
+        // I DONT WANT shitload of symlink populated
+        // just because systemd "thinks" (o_O) /etc is empty
+        return 0;
+
         _cleanup_install_context_done_ InstallContext plus = {}, minus = {};
         _cleanup_lookup_paths_free_ LookupPaths paths = {};
         _cleanup_free_ char *config_path = NULL;
-- 
1.7.2.5

