2020-03-04 10:35:06 +01:00
|
|
|
#!/usr/bin/env bash
|
2017-08-07 21:09:21 +02:00
|
|
|
set -e
|
2016-10-14 20:42:46 +02:00
|
|
|
TEST_DESCRIPTION="systemd-nspawn smoke test"
|
2019-12-12 09:37:19 +01:00
|
|
|
IMAGE_NAME=nspawn
|
2017-08-04 14:34:14 +02:00
|
|
|
TEST_NO_NSPAWN=1
|
2018-07-16 11:27:44 +02:00
|
|
|
|
2016-10-14 20:42:46 +02:00
|
|
|
. $TEST_BASE_DIR/test-functions
|
|
|
|
|
2019-12-12 09:37:19 +01:00
|
|
|
test_create_image() {
|
2019-07-12 17:47:26 +02:00
|
|
|
create_empty_image_rootdir
|
2016-10-14 20:42:46 +02:00
|
|
|
|
|
|
|
# Create what will eventually be our root filesystem onto an overlay
|
|
|
|
(
|
|
|
|
LOG_LEVEL=5
|
|
|
|
setup_basic_environment
|
2019-10-08 09:10:12 +02:00
|
|
|
mask_supporting_services
|
2016-10-14 20:42:46 +02:00
|
|
|
|
2020-03-31 11:23:21 +02:00
|
|
|
../create-busybox-container $initdir/testsuite-13.nc-container
|
|
|
|
initdir="$initdir/testsuite-13.nc-container" dracut_install nc ip
|
2019-07-08 21:11:32 +02:00
|
|
|
)
|
2016-10-14 20:42:46 +02:00
|
|
|
}
|
|
|
|
|
2019-12-09 21:45:46 +01:00
|
|
|
do_test "$@" 13
|