diff options
author | Sven Gothel <[email protected]> | 2021-07-06 20:48:17 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-07-06 20:48:17 +0200 |
commit | 06cfa422690280e3cb3d7c40bc2a38c0a621f051 (patch) | |
tree | 17eb421b825654065424d3babc2da40b2bac083f | |
parent | 363e0091cc48694fd9712bd772578dce080c84ce (diff) |
initrd loop_rootfs: perform fsck on rootfs-file w/o intend to modify '-n'
Since no console is available, fsck would fail anyways.
Tested w/ ext4 rootfs file
-rwxr-xr-x | stage2/01-sys-tweaks/files/initramfs/loop_rootfs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stage2/01-sys-tweaks/files/initramfs/loop_rootfs b/stage2/01-sys-tweaks/files/initramfs/loop_rootfs index 62adb10..f52ad7d 100755 --- a/stage2/01-sys-tweaks/files/initramfs/loop_rootfs +++ b/stage2/01-sys-tweaks/files/initramfs/loop_rootfs @@ -70,7 +70,7 @@ check_fsfile() { fi log_success_msg "loop_rootfs image file ${fsfile} of type ${FILE_FSTYPE}." - if ! fsck -V -t "${FILE_FSTYPE}" "${fsfile}"; then + if ! fsck -n -V -t "${FILE_FSTYPE}" "${fsfile}"; then log_failure_msg "loop_rootfs image file ${fsfile} fsck failed." return 1 fi |