dracut-lib.sh: Add det_fs() and wrap_fsck()
authorMichal Soltys <soltys@ziu.info>
Fri, 20 May 2011 15:09:24 +0000 (17:09 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 20 May 2011 15:16:50 +0000 (17:16 +0200)
commite2c5015713580f389986aee4f7e5e19c140ac3e5
treeafc222f7779f91898c66a4045ec4fd51f37c397e
parente639630da41e9d99082506b05fa0dcc2714c0730
dracut-lib.sh: Add det_fs() and wrap_fsck()

Both functions will be used by rootfs-block and fstab-sys modules.

Both are based on code present in mount-root.sh, though few changes are
present.

det_fs:

will try to determine filesystem type for supplied device, even if it's
not auto. If fs cannot be detected, or if the detected one differs from
the supplied one - a warning is issued (so user can fix its stuff later)

wrap_fsck:

will call fsck for specific device with optionally additional
fsckoptions. The function returns fsck return value.

Signed-off-by: Michal Soltys <soltys@ziu.info>
modules.d/99base/dracut-lib.sh