]> err.no Git - systemd/commitdiff
units: split fsck.target from sysinit.target for suse compat
authorLennart Poettering <lennart@poettering.net>
Thu, 5 Aug 2010 23:30:20 +0000 (01:30 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 5 Aug 2010 23:30:20 +0000 (01:30 +0200)
Makefile.am
src/mount.c
src/special.h
units/sysinit.target.m4

index bebfd2f7370a9ef35be9218c02a1da9a04605edd..3c54043975133efb0eb1808be19043d54e0f0f61 100644 (file)
@@ -195,7 +195,8 @@ if TARGET_SUSE
 dist_systemunit_DATA += \
        units/suse/halt.service \
        units/suse/poweroff.service \
-       units/suse/reboot.service
+       units/suse/reboot.service \
+       units/suse/fsck.target
 endif
 
 if TARGET_GENTOO
@@ -787,6 +788,11 @@ if TARGET_GENTOO
                rm -f xdm.service && \
                $(LN_S) $(systemunitdir)/xdm.service xdm.service )
 endif
+if !TARGET_SUSE
+       ( cd $(DESTDIR)$(systemunitdir) && \
+               rm -f fsck.target && \
+               $(LN_S) sysinit.target fsck.target )
+endif
 
 DISTCHECK_CONFIGURE_FLAGS = \
        --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
index c1a1d511414d56b25fd61af0e0c77bd8158d34f1..76e4aa9bb2f783fb06bae8ae712f59fbeac4fa10 100644 (file)
@@ -281,7 +281,7 @@ static int mount_add_default_dependencies(Mount *m) {
 
         if (m->meta.manager->running_as == MANAGER_SYSTEM) {
 
-                if ((r = unit_add_dependency_by_name(UNIT(m), UNIT_AFTER, SPECIAL_SYSINIT_TARGET, NULL, true)) < 0)
+                if ((r = unit_add_dependency_by_name(UNIT(m), UNIT_AFTER, SPECIAL_FSCK_TARGET, NULL, true)) < 0)
                         return r;
 
                 if (!path_equal(m->where, "/"))
index 9ffd3d892273d33893013c23bdc39e0f3a47aa97..bbc64806bf4ce3a8100fab5aed15781e1c27c20b 100644 (file)
@@ -51,6 +51,7 @@
 #define SPECIAL_BASIC_TARGET "basic.target"
 #define SPECIAL_SOCKETS_TARGET "sockets.target"
 #define SPECIAL_SYSINIT_TARGET "sysinit.target"
+#define SPECIAL_FSCK_TARGET "fsck.target"
 #define SPECIAL_RESCUE_TARGET "rescue.target"
 #define SPECIAL_EXIT_SERVICE "exit.service"
 #define SPECIAL_EMERGENCY_TARGET "emergency.target"
index 30180c9749a7722ffda8cf019e433960ad678479..8ca37fff95696cef684a8843932c394dc0f1f39c 100644 (file)
@@ -23,3 +23,7 @@ m4_dnl Hook in Arch's /etc/rc.sysinit
 Requires=sysinit.service
 After=sysinit.service
 )m4_dnl
+m4_ifdef(`TARGET_SUSE',`',
+m4_dnl On Suse, fsck.target is seperate, everywhere else it is just an alias for sysinit.target
+Names=fsck.target
+)m4_dnl