T5498: fsck during boot doesnt work, part 1 #435
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Change Summary
Included proper fsck versions and added initramfs.conf to modify level of compression of initrd.img.
This alone wont fix the issue of fsck not running during boot but will be a step in the direction of resolving this issue.
Types of changes
Related Task(s)
Component(s) name
build, initrd
Proposed changes
As a first fix for the issue of fsck not running on boot this commit includes all proper versions of fsck along with the logsave binary which was missing:
File
data/live-build-config/includes.chroot/etc/initramfs-tools/hooks/10-vyos-addons
:Also added file
data/live-build-config/includes.chroot/etc/initramfs-tools/initramfs.conf
to modify level of compression:Note! Current kernel config doesnt allow for other compressions than gzip (fallback) or zstd.
That have been filed as a separate task: https://vyos.dev/T5640
Turns out that the failure is NOT related to this commit:
How to test
Make sure that the image boots.
Once properly fixed (probably after step 2) adding "fsck.mode=force fsck.repair=yes" to the "/boot/grub/grub.cfg" file should make fsck to run and fix any issues with the storage that VyOS is installed at.
Checklist: