diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-04-21 09:58:26 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-04-23 15:11:38 +0200 |
commit | 0dd77c159a7acf76e84ba903b7bec7ea34d90b8c (patch) | |
tree | 51022e33596c64e792dc76825ba3bd543cff814d | |
parent | 30f56248f56f1738512f2f14e273678bcff8da4b (diff) | |
download | systemd-0dd77c159a7acf76e84ba903b7bec7ea34d90b8c.tar.gz |
tests: install mkfs.ext4, mkfs.vfat and modules into the test image
This allows TEST-58-REPART to at least start. It fails later with with loopback
device errors.
-rw-r--r-- | test/test-functions | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/test/test-functions b/test/test-functions index 8f2ffb1323..6f11b2f1b2 100644 --- a/test/test-functions +++ b/test/test-functions @@ -632,7 +632,8 @@ setup_basic_environment() { install_keymaps install_terminfo install_execs - install_fsck + install_fs_tools + install_modules install_plymouth install_debug_tools install_ld_so_conf @@ -833,13 +834,28 @@ EOF chmod 0755 "$strace_wrapper" } -install_fsck() { +install_fs_tools() { dinfo "Install fsck" dracut_install /sbin/fsck* dracut_install -o /bin/fsck* # fskc.reiserfs calls reiserfsck. so, install it dracut_install -o reiserfsck + + # we use mkfs in system-repart tests + dracut_install /sbin/mkfs.ext4 + dracut_install /sbin/mkfs.vfat +} + +install_modules() { + dinfo "Install modules" + + instmods loop + instmods vfat + + if [[ "$LOOKS_LIKE_SUSE" ]]; then + instmods ext4 + fi } install_dmevent() { @@ -2220,7 +2236,6 @@ setup_suse() { ln -fs ../usr/bin/systemctl "${initdir:?}/bin/" ln -fs ../usr/lib/systemd "$initdir/lib/" inst_simple "/usr/lib/systemd/system/haveged.service" - instmods ext4 } _umount_dir() { |