]>
Commit | Line | Data |
---|---|---|
ff12a795 | 1 | #!/usr/bin/env bash |
818567fc | 2 | set -e |
7ae8162f | 3 | TEST_DESCRIPTION="/etc/machine-id testing" |
8c3534b5 | 4 | IMAGE_NAME=badid |
054ee249 | 5 | TEST_NO_NSPAWN=1 |
c2d4da00 | 6 | |
fcb24270 EV |
7 | . $TEST_BASE_DIR/test-functions |
8 | ||
8c3534b5 | 9 | test_create_image() { |
ec4cab49 | 10 | create_empty_image_rootdir |
fcb24270 EV |
11 | |
12 | # Create what will eventually be our root filesystem onto an overlay | |
13 | ( | |
14 | LOG_LEVEL=5 | |
fcb24270 | 15 | setup_basic_environment |
51fa8591 | 16 | mask_supporting_services |
069a254f | 17 | printf "556f48e837bc4424a710fa2e2c9d3e3c\ne3d\n" >$initdir/etc/machine-id |
cc469c3d | 18 | ) |
fcb24270 EV |
19 | } |
20 | ||
afd9c55d | 21 | do_test "$@" 14 |