]> git.ipfire.org Git - thirdparty/systemd.git/blame - test/TEST-14-MACHINE-ID/test.sh
detect-virt: also detect "microsoft" as WSL
[thirdparty/systemd.git] / test / TEST-14-MACHINE-ID / test.sh
CommitLineData
ff12a795 1#!/usr/bin/env bash
818567fc 2set -e
7ae8162f 3TEST_DESCRIPTION="/etc/machine-id testing"
8c3534b5 4IMAGE_NAME=badid
054ee249 5TEST_NO_NSPAWN=1
c2d4da00 6
fcb24270
EV
7. $TEST_BASE_DIR/test-functions
8
8c3534b5 9test_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 21do_test "$@" 14