mirror of
https://github.com/systemd/systemd
synced 2024-07-09 04:26:06 +00:00
test: install the overlayfs/loop modules unconditionally
This commit is contained in:
parent
9f596939e4
commit
807626d1ce
|
@ -12,19 +12,14 @@ TEST_INSTALL_VERITY_MINIMAL=1
|
|||
# shellcheck source=test/test-functions
|
||||
. "${TEST_BASE_DIR:?}/test-functions"
|
||||
|
||||
# Need loop devices for mounting images
|
||||
test_append_files() {
|
||||
(
|
||||
instmods loop =block
|
||||
instmods squashfs =squashfs
|
||||
instmods dm_verity =md
|
||||
instmods overlay =overlayfs
|
||||
install_dmevent
|
||||
generate_module_dependencies
|
||||
inst_binary mksquashfs
|
||||
inst_binary unsquashfs
|
||||
install_verity_minimal
|
||||
)
|
||||
instmods squashfs =squashfs
|
||||
instmods dm_verity =md
|
||||
install_dmevent
|
||||
generate_module_dependencies
|
||||
inst_binary mksquashfs
|
||||
inst_binary unsquashfs
|
||||
install_verity_minimal
|
||||
}
|
||||
|
||||
do_test "$@"
|
||||
|
|
|
@ -12,12 +12,8 @@ has_user_dbus_socket || exit 0
|
|||
command -v mksquashfs >/dev/null 2>&1 || exit 0
|
||||
|
||||
test_append_files() {
|
||||
(
|
||||
instmods overlay =overlayfs
|
||||
generate_module_dependencies
|
||||
inst_binary unsquashfs
|
||||
install_verity_minimal
|
||||
)
|
||||
inst_binary unsquashfs
|
||||
install_verity_minimal
|
||||
}
|
||||
|
||||
do_test "$@"
|
||||
|
|
|
@ -16,22 +16,17 @@ command -v mksquashfs >/dev/null 2>&1 || exit 0
|
|||
command -v veritysetup >/dev/null 2>&1 || exit 0
|
||||
command -v sfdisk >/dev/null 2>&1 || exit 0
|
||||
|
||||
# Need loop devices for systemd-dissect
|
||||
test_append_files() {
|
||||
(
|
||||
instmods loop =block
|
||||
instmods squashfs =squashfs
|
||||
instmods dm_verity =md
|
||||
instmods overlay =overlayfs
|
||||
install_dmevent
|
||||
generate_module_dependencies
|
||||
inst_binary wc
|
||||
inst_binary sha256sum
|
||||
if command -v openssl >/dev/null 2>&1; then
|
||||
inst_binary openssl
|
||||
fi
|
||||
install_verity_minimal
|
||||
)
|
||||
instmods squashfs =squashfs
|
||||
instmods dm_verity =md
|
||||
install_dmevent
|
||||
generate_module_dependencies
|
||||
inst_binary wc
|
||||
inst_binary sha256sum
|
||||
if command -v openssl >/dev/null 2>&1; then
|
||||
inst_binary openssl
|
||||
fi
|
||||
install_verity_minimal
|
||||
}
|
||||
|
||||
do_test "$@"
|
||||
|
|
|
@ -775,7 +775,6 @@ setup_basic_environment() {
|
|||
install_testuser
|
||||
has_user_dbus_socket && install_user_dbus
|
||||
setup_selinux
|
||||
instmods veth
|
||||
install_depmod_files
|
||||
generate_module_dependencies
|
||||
if get_bool "$IS_BUILT_WITH_ASAN"; then
|
||||
|
@ -959,10 +958,10 @@ install_fs_tools() {
|
|||
install_modules() {
|
||||
dinfo "Install modules"
|
||||
|
||||
instmods loop
|
||||
instmods vfat
|
||||
instmods dummy vfat veth
|
||||
instmods loop =block
|
||||
instmods nls_ascii =nls
|
||||
instmods dummy
|
||||
instmods overlay =overlayfs
|
||||
# for TEST-35-LOGIN
|
||||
instmods scsi_debug uinput
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user