Harald Hoyer
34a42f9f49
fs-lib: f2fs needs crc32 not crc32c
...
*sigh*
9 years ago
Harald Hoyer
f8ff380bd5
fs-lib: add crc32c kernel module for f2fs
9 years ago
tpg
9f521f76a0
add support to F2FS filesystem (fsck)
9 years ago
dyoung@redhat.com
d6dfde7830
Revert "99fs-lib/fs-lib.sh: Let user specify the action after fail for fsck"
...
This reverts commit 679fa7ed3c
.
action_on_fail is useless thus remove the commits for it one by one.
Signed-off-by: Dave Young <dyoung@redhat.com>
9 years ago
Harald Hoyer
6d58fa27a4
change "while read x" to cope with EOF without newline
...
while read x || [ -n "$x" ]
should do the trick
10 years ago
Harald Hoyer
967cc19ab1
remove all vim and emacs code format comments
11 years ago
Harald Hoyer
100d575ec9
fs-lib: always install fsck.$fs, if present
11 years ago
Harald Hoyer
8bcfd683bd
*/module-setup.sh: add comments for dracut called functions
12 years ago
Harald Hoyer
8d3d72a68c
no more global $CMDLINE
...
Do not use the global variable CMDLINE anymore. Use
CMDLINE=$(getcmdline)
12 years ago
Harald Hoyer
1f4f8fb9e3
fs-lib/module-setup.sh: install fsck and fsck.ext*
12 years ago
Harald Hoyer
af11946054
dracut-functions.sh: inst_multiple == dracut_install
12 years ago
Harald Hoyer
b093aa2dc7
beautified shell code
...
checked with shellcheck http://www.shellcheck.net/about.html
12 years ago
Baoquan He
679fa7ed3c
99fs-lib/fs-lib.sh: Let user specify the action after fail for fsck
...
The fsck is ignored when replace emergency_shell with action_on_fail,
now add it.
Signed-off-by: Baoquan He <bhe@redhat.com>
12 years ago
Harald Hoyer
4f084f3ab5
fs-lib/module-setup.sh: add xfs_metadump
12 years ago
Harald Hoyer
b37398dc1c
x-initrd-rootfs.mount -> x-initrd.mount
12 years ago
Harald Hoyer
db43f56d94
fs-lib/fs-lib.sh:write_fs_tab() start initrd-root-fs.target
12 years ago
Harald Hoyer
85c85f07e2
systemd: switch to new initrd.target
...
(normal startup)
:
:
v
basic.target
|
______________________/|
/ |
| sysroot.mount
| |
| v
| initrd-root-fs.target
| |
| v
| initrd-parse-etc.service
(custom initrd services) |
| v
| (sysroot-usr.mount and
| various mounts marked
| with fstab option
| x-initrd.mount)
| |
| v
| initrd-fs.target
| |
\______________________ |
\|
v
initrd.target
|
v
initrd-cleanup.service
isolates to
initrd-switch-root.target
|
v
______________________/|
/ |
| initrd-udevadm-cleanup-db.service
| |
(custom initrd services) |
| |
\______________________ |
\|
v
initrd-switch-root.target
|
v
initrd-switch-root.service
|
v
switch-root
12 years ago
Harald Hoyer
a1084c02fd
fs-lib/fs-lib.sh: add write_fs_tab()
12 years ago
Colin Guthrie
3de6001e1e
Include crc32c module for xfs.
...
Just like btrfs, xfs now requires CRC module that cannot be resolved via
normal module resolving.
Move this hack into fs-lib and remove it from btrfs module.
https://bugs.mageia.org/show_bug.cgi?id=8676
12 years ago
Harald Hoyer
1594d0bf9c
fs-lib/fs-lib.sh: skip fsck for xfs and btrfs. remount is enough
13 years ago
Harald Hoyer
b65bde04e7
fs-lib/fs-lib.sh: removed test mounting of btrfs and xfs
...
mount/umount check only costs time and we fail later anyway.
mount can take very long on large filesystems. Better fail on the real
mount.
13 years ago
Harald Hoyer
840d8e4733
add filesystem options to fsck_single()
...
if we have e.g. special btrfs options for "/" and "/usr", we want to use
those for the test mount to determine if the filesystem is corrupted.
13 years ago
Harald Hoyer
25b36ef124
99fs-lib/module-setup.sh: removed "touch"
13 years ago
Colin Guthrie
d06580986b
fs-lib: No need to pass in _dev and _fop as they are inherited, not used as arguments.
13 years ago
Harald Hoyer
480d772f22
*/module-setup.sh: use host_fs_types host_devs
...
For the $hostonly case, use $host_fs_types and $host_devs to determine,
if a module has to be included in the initramfs.
13 years ago
Harald Hoyer
f74775ba1c
99fs-lib/fs-lib.sh: handle nfs as nop
...
handle fstype=nfs for fsck and let it be a nop
13 years ago
Harald Hoyer
1939a4f96e
99fs-lib/fs-lib.sh: accept "UUID=" and "LABEL=" for fsck_single
...
with the reuse of crypt-lib.sh devnames() and putting it in
dracut-lib.sh, fsck_single() can use more generic names from /etc/fstab
13 years ago
Harald Hoyer
1133b5e07a
99fs-lib/module-setup.sh: only include fsck helper needed for hostonly
...
for the host-only initramfs, check all relevant disks for the
filesystem type and only include those fsck tools, which are needed.
13 years ago
Harald Hoyer
9549014694
fs-lib: install /etc/e2fsck.conf, if e2fsck is installed
13 years ago
Michal Soltys
25b45979f2
fs-lib: add ability to choose fsck tools
...
in dracut.conf:
fscks="<tools>"
nofscks="yes"
and similary on command line:
--fscks [LIST] (in addition to conf's, if defined there)
--nofscks
Signed-off-by: Michal Soltys <soltys@ziu.info>
14 years ago
Michal Soltys
f07aaccd06
99fs-lib: export FSTAB_FILE before fsck call
...
Signed-off-by: Michal Soltys <soltys@ziu.info>
14 years ago
Harald Hoyer
662ed0a13f
99fs-lib/fs-lib.sh: fsck btrfs via mounting like xfs
...
btrfsck is only for manual repairing your filesystem
14 years ago
Harald Hoyer
1afa0cb674
99fs-lib: add btrfsck
14 years ago
Michal Soltys
fefab84fff
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
14 years ago