]> git.ipfire.org Git - thirdparty/dracut.git/commit
fstab: do not mount and fsck from fstab if using systemd
authorWANG Chao <chaowang@redhat.com>
Tue, 1 Apr 2014 07:20:49 +0000 (15:20 +0800)
committerHarald Hoyer <harald@redhat.com>
Wed, 2 Apr 2014 07:58:52 +0000 (09:58 +0200)
commite920bfb1e8a5917e7b0f360d1c51d200db3acbfd
treeae0f111503fec99ef00bd88b09122ab6da3ad7ad
parent3c530fc528d61ea2701dfb46ccd90e218a6d8aef
fstab: do not mount and fsck from fstab if using systemd

If using systemd in initramfs, we could run into a race condition when
dracut and systemd both are trying to mount and run fsck for the same
filesystem, and mount or fsck could be a failure.

To fix such failure, we should use systemd to mount/fsck from /etc/fstab
only.

v2: check $DRACUT_SYSTEMD suggested by Alexander Tsoy

Signed-off-by: WANG Chao <chaowang@redhat.com>
modules.d/95fstab-sys/mount-sys.sh