09f6f45a29d8691b67152d4e6f5bbb1453be778eEvgeny Vereshchagin# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
09f6f45a29d8691b67152d4e6f5bbb1453be778eEvgeny Vereshchagin# ex: ts=8 sw=4 sts=4 et filetype=sh
09f6f45a29d8691b67152d4e6f5bbb1453be778eEvgeny VereshchaginTEST_DESCRIPTION="https://github.com/systemd/systemd/issues/1981"
09f6f45a29d8691b67152d4e6f5bbb1453be778eEvgeny Vereshchagin timeout --foreground 30s systemd-nspawn --kill-signal=SIGKILL --boot --directory=$TESTDIR/nspawn-root $ROOTLIBDIR/systemd $KERNEL_APPEND
09f6f45a29d8691b67152d4e6f5bbb1453be778eEvgeny Vereshchagin dwarn "can't run systemd-nspawn, skipping"
09f6f45a29d8691b67152d4e6f5bbb1453be778eEvgeny Vereshchagin # Create what will eventually be our root filesystem onto an overlay
09f6f45a29d8691b67152d4e6f5bbb1453be778eEvgeny Vereshchagin eval $(udevadm info --export --query=env --name=${LOOPDEV}p2)
09f6f45a29d8691b67152d4e6f5bbb1453be778eEvgeny Vereshchagin cat >$initdir/etc/systemd/system/testsuite.service <<EOF
09f6f45a29d8691b67152d4e6f5bbb1453be778eEvgeny VereshchaginDescription=Testsuite service
09f6f45a29d8691b67152d4e6f5bbb1453be778eEvgeny VereshchaginAfter=multi-user.target
09f6f45a29d8691b67152d4e6f5bbb1453be778eEvgeny VereshchaginExecStart=/test-segfault.sh