Format filesystems earlier, before syslog

So that we can write to /var early, move filesystem formatting as early as possible.

Adds a dummy fsck service, as we already do fsck in format script.

Replaces #535

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2016-11-08 15:20:46 +00:00
parent 5fc08179e5
commit 4dd5dca106
3 changed files with 14 additions and 4 deletions

View File

@ -35,14 +35,13 @@ RUN \
rc-update add sysfs && \
rc-update add sysfsconf && \
rc-update add fsck && \
rc-update add root && \
rc-update add crond && \
rc-update add local && \
rc-update add localmount && \
rc-update add docker default && \
rc-update add proxy default && \
rc-update add transfused default && \
rc-update add automount boot && \
rc-update add automount sysinit && \
rc-update add diagnostics default && \
rc-update add binfmt_misc default && \
rc-update add hostsettings default && \

12
alpine/etc/init.d/fsck Executable file
View File

@ -0,0 +1,12 @@
#!/sbin/openrc-run
# do nothing as we do this in automount script
start()
{
return 0
}
stop()
{
return 0
}

View File

@ -2,8 +2,7 @@
depend()
{
after dev
before docker
need dev
}
start()