Tested using a minimal alpine container.
# shellcheck disable=SC2034
TEST_DESCRIPTION="root filesystem on an encrypted LVM PV on a RAID-5"
+test_check() {
+ if ! type -p cryptsetup &> /dev/null; then
+ echo "Test needs cryptsetup for crypt module... Skipping"
+ return 1
+ fi
+}
+
# Uncomment this to debug failures
#DEBUGFAIL="rd.shell rd.udev.log-priority=debug loglevel=70 systemd.log_target=kmsg"
#DEBUGFAIL="rd.break rd.shell rd.debug debug"
# Uncomment this to debug failures
#DEBUGFAIL="rd.break rd.shell"
+test_check() {
+ if ! type -p lvm &> /dev/null; then
+ echo "Test needs lvm for lvm module... Skipping"
+ return 1
+ fi
+}
+
test_run() {
declare -a disk_args=()
declare -i disk_index=0
#DEBUGFAIL="rd.shell rd.udev.log-priority=debug loglevel=70 systemd.log_target=kmsg"
#DEBUGFAIL="rd.shell loglevel=70 systemd.log_target=kmsg"
+test_check() {
+ if ! type -p cryptsetup &> /dev/null; then
+ echo "Test needs cryptsetup for crypt module... Skipping"
+ return 1
+ fi
+}
+
client_run() {
echo "CLIENT TEST START: $*"
declare -a disk_args=()
# Uncomment this to debug failures
#DEBUGFAIL="rd.break rd.shell"
+test_check() {
+ if ! type -p lvm &> /dev/null; then
+ echo "Test needs lvm for lvm module... Skipping"
+ return 1
+ fi
+}
+
test_run() {
declare -a disk_args=()
declare -i disk_index=0
#DEBUGFAIL="rd.shell rd.udev.log-priority=debug loglevel=70 systemd.log_target=kmsg systemd.log_target=debug"
#DEBUGFAIL="rd.shell loglevel=70 systemd.log_target=kmsg systemd.log_target=debug"
+test_check() {
+ if ! type -p cryptsetup &> /dev/null; then
+ echo "Test needs cryptsetup for crypt module... Skipping"
+ return 1
+ fi
+}
+
test_run() {
LUKSARGS=$(cat "$TESTDIR"/luks.txt)
# Uncomment these to debug failures
#DEBUGFAIL="rd.shell rd.debug rd.live.debug loglevel=7"
+test_check() {
+ if ! type -p mksquashfs &> /dev/null; then
+ echo "Test needs mksquashfs for crypt module... Skipping"
+ return 1
+ fi
+}
+
test_run() {
declare -a disk_args=()
declare -i disk_index=0
echo "first archive file $i" >> ./"$i"
done
find . -print0 | sort -z \
- | cpio -o --null -H newc --file "$CPIO_TESTDIR/skipcpio_simple.cpio"
+ | cpio -o --null -H newc > "$CPIO_TESTDIR/skipcpio_simple.cpio"
popd
mkdir -p "$CPIO_TESTDIR/skipcpio_simple/second_archive"