]> git.ipfire.org Git - thirdparty/dracut.git/commit
implement fs-lib, squash a few bugs that were part of det_fs/wrap_fsck
authorMichal Soltys <soltys@ziu.info>
Thu, 2 Jun 2011 21:22:12 +0000 (23:22 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 11 Aug 2011 12:27:24 +0000 (14:27 +0200)
commitfefab84fffc4bfbe8ee1ed9727e619c5b2f74601
tree51ac97c388b07b219a79584767d360c8c789b436
parent1ddaffda88e111c8608279ecff947ee98a724699
implement fs-lib, squash a few bugs that were part of det_fs/wrap_fsck

To not pollute dracut-lib.sh, all the fsck related functions were moved
to fs-lib.sh. The functions available are as follows:

- fsck_single

this will detect/verify filesystem, check if it has necessary tools and
check the filesystem respecting additional flags (if any), using
specific "driver" (or falling back to generic one). Currently
available: fsck_drv_{com,xfs,std}. 'com' is used for tools following
typical subset of options/return codes (e.g. ext, jfs), 'std' is used
for "unknown" fs and doesn't assume it can be run non-interactively.

Please see comments around the code for more info.

- fsck_batch

this will check provided list of the devices;

Both of the above functions will fake empty fstab, to make generic fsck
not complain too much (excact devices are always provided on the command
line).

"Known" filesystems currently: ext234, reiser, jfs, xfs

- det_fs

Small bug fixed - as this function is meant to be called in $(), it may
not be verbose.
Current behaviour is:
 - if detection is successful, use its result
 - if detection is not successful, and filesystem is provided, return
   the provided one; otherwise use auto
modules.d/95fstab-sys/module-setup.sh
modules.d/95fstab-sys/mount-sys.sh
modules.d/95rootfs-block/module-setup.sh
modules.d/95rootfs-block/mount-root.sh
modules.d/99base/dracut-lib.sh
modules.d/99fs-lib/fs-lib.sh [new file with mode: 0755]
modules.d/99fs-lib/module-setup.sh [new file with mode: 0755]