2 # SPDX-License-Identifier: LGPL-2.1-or-later
3 # -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
4 # ex: ts=8 sw=4 sts=4 et filetype=sh
7 TEST_DESCRIPTION
="test systemd-dissect"
10 TEST_INSTALL_VERITY_MINIMAL
=1
12 # shellcheck source=test/test-functions
13 .
"${TEST_BASE_DIR:?}/test-functions"
15 # On Ubuntu the BPF LSM is not enabled by default, so we need to do it via the
16 # kernel command line on boot
17 if [ "$LOOKS_LIKE_UBUNTU" = "yes" ]; then
19 "lsm=lockdown,capability,landlock,yama,apparmor,bpf"
21 KERNEL_APPEND
+=" ${KERNEL_OPTIONS[*]}"
24 test_require_bin mksquashfs veritysetup sfdisk
27 instmods squashfs
=squashfs
28 instmods dm_verity
=md
30 generate_module_dependencies
34 if command -v openssl
>/dev
/null
2>&1; then
37 inst_binary mksquashfs
38 inst_binary unsquashfs
39 install_verity_minimal