Lines Matching refs:initdir

350     rm -f "$initdir"/{testok,failed,skipped}
404 _umount_dir "$initdir"
555 if [ -e "$initdir/usr/share/minimal.raw" ]; then
577 oldinitdir="$initdir"
579 export initdir="$TESTDIR/minimal"
581 …mkdir -p "$initdir/usr/lib/systemd/system" "$initdir/usr/lib/extension-release.d" "$initdir/etc" "…
596 touch "$initdir/systemd-lsan.supp"
598 cp "$os_release" "$initdir/usr/lib/os-release"
599 ln -s ../usr/lib/os-release "$initdir/etc/os-release"
600 touch "$initdir/etc/machine-id" "$initdir/etc/resolv.conf"
601 touch "$initdir/opt/some_file"
602 echo MARKER=1 >>"$initdir/usr/lib/os-release"
603 echo "PORTABLE_PREFIXES=app0 minimal minimal-app0" >>"$initdir/usr/lib/os-release"
604 cat >"$initdir/usr/lib/systemd/system/minimal-app0.service" <<EOF
609 …cp "$initdir/usr/lib/systemd/system/minimal-app0.service" "$initdir/usr/lib/systemd/system/minimal…
611 mksquashfs "$initdir" "$oldinitdir/usr/share/minimal_0.raw" -noappend
615 sed -i "s/MARKER=1/MARKER=2/g" "$initdir/usr/lib/os-release"
616 rm "$initdir/usr/lib/systemd/system/minimal-app0-foo.service"
617 …cp "$initdir/usr/lib/systemd/system/minimal-app0.service" "$initdir/usr/lib/systemd/system/minimal…
619 mksquashfs "$initdir" "$oldinitdir/usr/share/minimal_1.raw" -noappend
629 export initdir="$TESTDIR/app0"
630 … mkdir -p "$initdir/usr/lib/extension-release.d" "$initdir/usr/lib/systemd/system" "$initdir/opt"
631 grep "^ID=" "$os_release" >"$initdir/usr/lib/extension-release.d/extension-release.app0"
632 echo "${version_id}" >>"$initdir/usr/lib/extension-release.d/extension-release.app0"
633 cat >"$initdir/usr/lib/systemd/system/app0.service" <<EOF
642 cat >"$initdir/opt/script0.sh" <<EOF
649 chmod +x "$initdir/opt/script0.sh"
650 echo MARKER=1 >"$initdir/usr/lib/systemd/system/some_file"
651 mksquashfs "$initdir" "$oldinitdir/usr/share/app0.raw" -noappend
653 export initdir="$TESTDIR/app1"
654 … mkdir -p "$initdir/usr/lib/extension-release.d" "$initdir/usr/lib/systemd/system" "$initdir/opt"
655 grep "^ID=" "$os_release" >"$initdir/usr/lib/extension-release.d/extension-release.app2"
658 … echo "PORTABLE_PREFIXES=app1" ) >>"$initdir/usr/lib/extension-release.d/extension-release.app2"
659 …setfattr -n user.extension-release.strict -v false "$initdir/usr/lib/extension-release.d/extension…
660 cat >"$initdir/usr/lib/systemd/system/app1.service" <<EOF
668 cat >"$initdir/opt/script1.sh" <<EOF
675 chmod +x "$initdir/opt/script1.sh"
676 echo MARKER=1 >"$initdir/usr/lib/systemd/system/other_file"
677 mksquashfs "$initdir" "$oldinitdir/usr/share/app1.raw" -noappend
733 if ! cp -ar "$conf_dir" "$initdir/$conf_dir"; then
738 touch "$initdir/.autorelabel"
739 mkdir -p "$initdir/usr/lib/systemd/tests/testdata/units/basic.target.wants"
740 … ln -sf ../autorelabel.service "$initdir/usr/lib/systemd/tests/testdata/units/basic.target.wants/"
769 local valgrind_wrapper="$initdir/$ROOTLIBDIR/systemd-under-valgrind"
781 local asan_wrapper="$initdir/$ROOTLIBDIR/systemd-under-asan"
906 local strace_wrapper="$initdir/$ROOTLIBDIR/systemd-under-strace"
1090 (set -x; DESTDIR="$initdir" "$ninja_bin" -C "$BUILD_DIR" install)
1095 mkdir -p "${initdir}/${BUILD_DIR:?}/"
1096 …rsync -am --include='*/' --include='*.gcno' --exclude='*' "${BUILD_DIR:?}/" "${initdir}/${BUILD_DI…
1099 setfacl -R -m 'd:o:rwX' -m 'o:rwX' "${initdir}/${BUILD_DIR:?}/"
1150 mkdir -p "$initdir/$testsdir"
1151 cp "$testsdir"/test-* "$initdir/$testsdir/"
1152 cp -a "$testsdir/testdata" "$initdir/$testsdir/"
1155 mkdir -p "$initdir/var/log/journal/remote"
1183 echo LogLevel=debug >>"$initdir/etc/systemd/system.conf"
1185 …echo DefaultEnvironment=SYSTEMD_LOG_LEVEL="$TEST_SYSTEMD_LOG_LEVEL" >>"$initdir/etc/systemd/system…
1188 echo Storage=journal >>"$initdir/etc/systemd/coredump.conf"
1190 mkdir "$initdir/etc/systemd/system/user@.service.d/"
1191 …echo -e "[Service]\nPassEnvironment=SYSTEMD_UNIT_PATH\n" >"$initdir/etc/systemd/system/user@.servi…
1197 mkdir -p "$initdir/etc/systemd/system/service.d/"
1198 …echo -e "[Service]\nProtectSystem=no\nProtectHome=no\n" >"$initdir/etc/systemd/system/service.d/99…
1203 mkdir -p "$initdir/etc/systemd/system/test20-.service.d/"
1204 …echo -e "[Service]\nReadWritePaths=${BUILD_DIR:?}\n" >"$initdir/etc/systemd/system/test20-.service…
1221 …rpath="$(objdump -p "${1:?}" 2>/dev/null | awk "/R(UN)?PATH/ { print \"$initdir\" \$2 }" | paste -…
1233 …for i in "${initdir:?}"{,/usr}/{sbin,bin}/* "$initdir"{,/usr}/lib/systemd/{,tests/{,manual/,unsafe…
1328 if ! mountpoint -q "${initdir:?}"; then
1329 mkdir -p "$initdir"
1330 mount "${LOOPDEV}p1" "$initdir"
1337 get_bool "$TEST_SETUP_CLEANUP_ROOTDIR" && _umount_dir "${initdir:?}"
1548 _umount_dir "${initdir:?}"
1558 check_result_common "${initdir:?}"
1561 _umount_dir "${initdir:?}"
1602 _umount_dir "${initdir:?}"
1611 [[ -e "${initdir:?}/testok" ]] && ret=0
1613 if [[ -s "$initdir/failed" ]]; then
1616 cat "$initdir/failed"
1618 if [[ -s "$initdir/skipped" ]]; then
1620 cat "$initdir/skipped"
1624 if [[ -s "$initdir/testok" ]]; then
1626 cat "$initdir/testok"
1631 check_coverage_reports "$initdir" || ret=5
1633 save_journal "$initdir/var/log/journal" $ret
1635 _umount_dir "$initdir"
1648 done < <(find "${initdir:?}" -executable -not -path '*/lib/modules/*.ko' -type f)
1653 mkdir -p "${initdir:?}/etc/rc.d"
1654 cat >"$initdir/etc/rc.d/rc.local" <<EOF
1658 chmod 0755 "$initdir/etc/rc.d/rc.local"
1680 ! depmod -a -b "$initdir" "$KERNEL_VER"; then
1700 …rm -f "${initdir:?}"/{usr/lib,lib,etc}/systemd/system/plymouth* "$initdir"/{usr/lib,lib,etc}/syste…
1719 ldconfig -r "$initdir"
1726 cat >"$initdir/etc/sysusers.d/testuser.conf" <<EOF
1730 mkdir -p "$initdir/home/testuser"
1731 chmod 0700 "$initdir/home/testuser"
1732 chown 4711:4711 "$initdir/home/testuser"
1749 : >"$initdir/etc/machine-id"
1750 : >"$initdir/etc/resolv.conf"
1753 echo 'H' >"$initdir/etc/hostname"
1757 mkdir -p "$initdir/etc/systemd/system.conf.d"
1758 echo -e '[Manager]\nStatusUnitFormat=name' >"$initdir/etc/systemd/system.conf.d/status.conf"
1780 cat >"$initdir/etc/motd" <<EOF
1823 cat >"$initdir/etc/dbus-1/system.d/systemd.test.ExecStopPost.conf" <<EOF
1848 cat >"$initdir/etc/systemd/system/user@.service.d/dbus.conf" <<EOF
1895 [ -d "$initdir/$d" ] || continue
1896 sed -i '/^auth.*pam_unix.so/s/$/ nullok/' "$initdir/$d"/*
1972 if [ -z "${initdir}" ]; then
1980 ddebug "cp -ar $initdir $TESTDIR/unprivileged-nspawn-root"
1981 cp -ar "$initdir" "$TESTDIR/unprivileged-nspawn-root"
1989 mkdir -p "$initdir/etc/systemd/system"
1990 mkdir -p "$initdir/var/log/journal"
2001 ln -sfn /run "$initdir/var/run"
2002 ln -sfn /run/lock "$initdir/var/lock"
2008 ln -fsv /dev/null "$initdir/etc/systemd/system/systemd-journal-catalog-update.service"
2009 ln -fsv /dev/null "$initdir/etc/systemd/system/systemd-networkd.service"
2010 ln -fsv /dev/null "$initdir/etc/systemd/system/systemd-networkd.socket"
2011 ln -fsv /dev/null "$initdir/etc/systemd/system/systemd-resolved.service"
2067 initdir="${TESTDIR:?}/root"
2068 mkdir -p "$initdir"
2069 export initdir
2290 while [[ "$part" != "${part%/*}" ]] && ! [[ -e "${initdir}/${part}" ]]; do
2297 [[ -e "${initdir}/$file" ]] && continue
2302 mkdir -m 0755 "${initdir}/$file" || return 1
2303 [[ -e "$file" ]] && chmod --reference="$file" "${initdir}/$file"
2304 chmod u+w "${initdir}/$file"
2319 if ! [[ -d ${initdir:?}/$target ]]; then
2320 [[ -e ${initdir}/$target ]] && return 0
2321 [[ -L ${initdir}/$target ]] && return 0
2322 [[ -d "${initdir}/${target%/*}" ]] || inst_dir "${target%/*}"
2329 cp --sparse=always -pfL "$src" "${initdir}/$target"
2367 [[ -e ${initdir:?}/$dest ]] && return 0
2377 ln -sfn -- "$(convert_abs_rel "${dest}" "${reallib}")" "${initdir}/${dest}"
2384 if [[ ! -e "$initdir/$symlink" ]]; then
2439 [[ -e "${initdir}/$file" ]] && continue
2480 if ! [[ -e "$initdir/$realsrc" ]]; then
2487 [[ ! -e "$initdir/${target%/*}" ]] && inst_dir "${target%/*}"
2489 ln -sfn -- "$(convert_abs_rel "${target}" "${realsrc}")" "$initdir/$target"
2548 [[ ! "$initdir" && -d "$2" ]] && export initdir="$2"
2549 [[ "$initdir" = "$2" ]] && set "$1"
2552 [[ -z "$initdir" ]] && export initdir="$2"
2629 [[ -e "$initdir/.kernelmodseen/${module##*/}" ]] && return 0
2631 [ -d "$initdir/.kernelmodseen" ] && : >"$initdir/.kernelmodseen/${module##*/}"
2783 [[ -n "$initdir" ]] && _umount_dir "$initdir"
2802 [[ -n "$initdir" ]] && _umount_dir "$initdir"
2889 check_result_nspawn "$initdir" || { echo "nspawn-root test failed"; return 1; }