Skip to content
Snippets Groups Projects
Commit 3f188f67 authored by Denis Pynkin's avatar Denis Pynkin
Browse files

Check if fsck has been started for rootfs


In case if fsck has been started it savees 2 files in directory
'/run/initramfs':
- stamp file 'fsck-root' in case if fsck run was successful
- log file 'fsck.log' with filesystem check log

Since fsck is started on every boot it is enough to make sure we have
root file system check on initramfs stage.

Signed-off-by: default avatarDenis Pynkin <denis.pynkin@collabora.com>
parent 24b76432
No related branches found
No related tags found
No related merge requests found
metadata:
name: disk-rootfs-fsck
format: "Apertis Test Definition 1.0"
image-types:
minimal: [ armhf, arm64, amd64 ]
target: [ armhf, arm64, amd64 ]
image-deployment:
- APT
- OSTree
type: functional
exec-type: automated
priority: high
maintainer: "Apertis Project"
description: "Ensure that the root file system check is enabled on boot"
expected:
- "Test command should report \"pass\"."
install:
git-repos:
- url: https://gitlab.apertis.org/infrastructure/apertis-tests.git
branch: 'apertis/v2019dev0'
run:
steps:
- "# Enter test directory:"
- cd apertis-tests
- "# Execute the following command:"
- common/run-test-in-systemd --name=as-root common/fsck-boot-rootfs.sh
parse:
pattern: "(?P<test_case_id>.*-*):\\s+(?P<result>(pass|fail))"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment