mirror of
https://github.com/systemd/systemd.git
synced 2024-10-29 21:55:36 +03:00
So, i think "erofs" is probably the better, more modern alternative to "squashfs". Many of the benefits don't matter too much to us I guess, but there's one thing that stands out: erofs has a UUID in the superblock, squashfs has not. Having an UUID in the superblock matters if the file systems are used in an overlayfs stack, as overlayfs uses the UUIDs to robustly and persistently reference inodes on layers in case of metadata copy-up. Since we probably want to allow such uses in overlayfs as emplyoed by sysext (and the future syscfg) we probably should ramp up our erofs game early on. Hence let's natively support erofs, test it, and in fact mention it in the docs before squashfs even.
29 lines
623 B
Bash
Executable File
29 lines
623 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
set -e
|
|
|
|
TEST_DESCRIPTION="test systemd-repart"
|
|
IMAGE_NAME="repart"
|
|
TEST_FORCE_NEWIMAGE=1
|
|
|
|
# shellcheck source=test/test-functions
|
|
. "$TEST_BASE_DIR/test-functions"
|
|
|
|
test_append_files() {
|
|
if ! get_bool "${TEST_NO_QEMU:=}"; then
|
|
install_dmevent
|
|
instmods dm_verity =md
|
|
instmods erofs
|
|
generate_module_dependencies
|
|
image_install -o /sbin/mksquashfs
|
|
image_install -o /bin/mkfs.erofs
|
|
fi
|
|
|
|
inst_binary mcopy
|
|
if command -v openssl >/dev/null 2>&1; then
|
|
inst_binary openssl
|
|
fi
|
|
}
|
|
|
|
do_test "$@"
|