Skip to content

Commit

Permalink
fsck: remove fsckd again, but keep the door open for external replace…
Browse files Browse the repository at this point in the history
…ment

For a longer discussion see this:

http://lists.freedesktop.org/archives/systemd-devel/2015-April/030175.html

This introduces /run/systemd/fsck.progress as a simply
AF_UNIX/SOCK_STREAM socket. If it exists and is connectable we'll
connect fsck's -c switch with it. If external programs want to get
progress data they should hence listen on this socket and will get
all they need via that socket. To get information about the connecting
fsck client they should use SO_PEERCRED.

Unless /run/systemd/fsck.progress is around and connectable this change
reverts back to v219 behaviour where we'd forward fsck output to
/dev/console on our own.
  • Loading branch information
poettering committed Apr 28, 2015
1 parent e7a3aa3 commit 96d9117
Show file tree
Hide file tree
Showing 14 changed files with 167 additions and 1,002 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
/systemd-export
/systemd-firstboot
/systemd-fsck
/systemd-fsckd
/systemd-fstab-generator
/systemd-getty-generator
/systemd-gnome-ask-password-agent
Expand Down
12 changes: 0 additions & 12 deletions Makefile-man.am
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ MANPAGES += \
man/systemd-efi-boot-generator.8 \
man/systemd-escape.1 \
man/systemd-fsck@.service.8 \
man/systemd-fsckd.service.8 \
man/systemd-fstab-generator.8 \
man/systemd-getty-generator.8 \
man/systemd-gpt-auto-generator.8 \
Expand Down Expand Up @@ -209,8 +208,6 @@ MANPAGES_ALIAS += \
man/systemd-ask-password-wall.service.8 \
man/systemd-fsck-root.service.8 \
man/systemd-fsck.8 \
man/systemd-fsckd.8 \
man/systemd-fsckd.socket.8 \
man/systemd-hibernate-resume.8 \
man/systemd-hibernate.service.8 \
man/systemd-hybrid-sleep.service.8 \
Expand Down Expand Up @@ -321,8 +318,6 @@ man/systemd-ask-password-wall.path.8: man/systemd-ask-password-console.service.8
man/systemd-ask-password-wall.service.8: man/systemd-ask-password-console.service.8
man/systemd-fsck-root.service.8: man/systemd-fsck@.service.8
man/systemd-fsck.8: man/systemd-fsck@.service.8
man/systemd-fsckd.8: man/systemd-fsckd.service.8
man/systemd-fsckd.socket.8: man/systemd-fsckd.service.8
man/systemd-hibernate-resume.8: man/systemd-hibernate-resume@.service.8
man/systemd-hibernate.service.8: man/systemd-suspend.service.8
man/systemd-hybrid-sleep.service.8: man/systemd-suspend.service.8
Expand Down Expand Up @@ -601,12 +596,6 @@ man/systemd-fsck-root.service.html: man/systemd-fsck@.service.html
man/systemd-fsck.html: man/systemd-fsck@.service.html
$(html-alias)

man/systemd-fsckd.html: man/systemd-fsckd.service.html
$(html-alias)

man/systemd-fsckd.socket.html: man/systemd-fsckd.service.html
$(html-alias)

man/systemd-hibernate-resume.html: man/systemd-hibernate-resume@.service.html
$(html-alias)

Expand Down Expand Up @@ -1764,7 +1753,6 @@ EXTRA_DIST += \
man/systemd-escape.xml \
man/systemd-firstboot.xml \
man/systemd-fsck@.service.xml \
man/systemd-fsckd.service.xml \
man/systemd-fstab-generator.xml \
man/systemd-getty-generator.xml \
man/systemd-gpt-auto-generator.xml \
Expand Down
17 changes: 0 additions & 17 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,6 @@ rootlibexec_PROGRAMS = \
systemd-remount-fs \
systemd-reply-password \
systemd-fsck \
systemd-fsckd \
systemd-machine-id-commit \
systemd-ac-power \
systemd-sysctl \
Expand Down Expand Up @@ -501,7 +500,6 @@ dist_systemunit_DATA = \
units/slices.target \
units/system.slice \
units/x-.slice \
units/systemd-fsckd.socket \
units/systemd-initctl.socket \
units/syslog.socket \
units/dev-hugepages.mount \
Expand Down Expand Up @@ -552,7 +550,6 @@ nodist_systemunit_DATA = \
units/systemd-kexec.service \
units/systemd-fsck@.service \
units/systemd-fsck-root.service \
units/systemd-fsckd.service \
units/systemd-machine-id-commit.service \
units/systemd-udevd.service \
units/systemd-udev-trigger.service \
Expand Down Expand Up @@ -605,7 +602,6 @@ EXTRA_DIST += \
units/user/systemd-exit.service.in \
units/systemd-fsck@.service.in \
units/systemd-fsck-root.service.in \
units/systemd-fsckd.service.in \
units/systemd-machine-id-commit.service.in \
units/user@.service.m4.in \
units/debug-shell.service.in \
Expand Down Expand Up @@ -2377,19 +2373,6 @@ systemd_fsck_LDADD = \
libsystemd-internal.la \
libsystemd-shared.la

# ------------------------------------------------------------------------------
systemd_fsckd_SOURCES = \
src/fsckd/fsckd.c \
src/fsckd/fsckd.h \
$(NULL)

systemd_fsckd_LDADD = \
libsystemd-internal.la \
libsystemd-label.la \
libsystemd-shared.la \
libudev-internal.la \
$(NULL)

# ------------------------------------------------------------------------------
systemd_machine_id_commit_SOURCES = \
src/machine-id-commit/machine-id-commit.c \
Expand Down
4 changes: 1 addition & 3 deletions man/systemd-fsck@.service.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,7 @@
the filesystem should actually be checked based on the time since
last check, number of mounts, unclean unmount, etc.</para>

<para><filename>systemd-fsck</filename> will forward file system
checking progress to <filename>systemd-fsckd.service</filename>
socket. If a file system check fails for a service without
<para>If a file system check fails for a service without
<option>nofail</option>, emergency mode is activated, by isolating
to <filename>emergency.target</filename>.</para>
</refsect1>
Expand Down
162 changes: 0 additions & 162 deletions man/systemd-fsckd.service.xml

This file was deleted.

Loading

0 comments on commit 96d9117

Please sign in to comment.