Okay, so another quick workaround, now keeping the fsck enabled for the volumes:
Create a file called "/lib/systemd/upstart/systemd-fsck@.service" with:
----
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit]
Description=File System Check on %f
Documentation=man:systemd-fsck@.service(8)
DefaultDependencies=no
BindsTo=%i.device
After=systemd-readahead-collect.service systemd-readahead-replay.service %i.device
Before=shutdown.target
Okay, so another quick workaround, now keeping the fsck enabled for the volumes:
Create a file called "/lib/systemd/ upstart/ systemd- fsck@.service" with:
----
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
[Unit] man:systemd- fsck@.service( 8) cies=no readahead- collect. service systemd- readahead- replay. service %i.device shutdown. target
Description=File System Check on %f
Documentation=
DefaultDependen
BindsTo=%i.device
After=systemd-
Before=
[Service] /lib/systemd/ systemd- fsck %f journal+ console
Type=oneshot
RemainAfterExit=no
ExecStart=
StandardOutput=
TimeoutSec=0
----
and then do:
$ sudo ln -s /lib/systemd/ upstart/ systemd- fsck@.service /lib/systemd/ upstart/ multi-user. target. wants/systemd- fsck@.service
$ sudo systemctl daemon-reload
This will allow the mount units to work using systemd in Trusty:
inaddy@ trustylivepatch :~$ sudo systemctl start teste.mount trustylivepatch :~$ df -kh | grep teste trustylivepatch :~$ sudo systemctl stop teste.mount trustylivepatch :~$ cat /etc/fstab| grep teste
inaddy@
/dev/sdb2 976M 1.3M 908M 1% /teste
inaddy@
inaddy@
LABEL=TESTE /teste ext4 defaults 0 1
While still having fsck enabled in /etc/fstab.
I'll provide a SRU patch for systemd in Trusty and it shall solve this issue.