diff --git a/layers/install/stacker.yaml b/layers/install/stacker.yaml index a0eeb14..a9f68e4 100644 --- a/layers/install/stacker.yaml +++ b/layers/install/stacker.yaml @@ -72,8 +72,8 @@ demo-target-rootfs: cp mosctl console-helper /usr/bin ( cd /usr/bin && chmod 755 mosctl console-helper ) - systemctl enable debug-shell.service # Danger - don't leave this - systemctl mask serial-getty@ttyS0 + echo root:passw0rd | chpasswd + systemctl enable serial-getty@ttyS0 annotations: org.opencontainers.image.title: demo-target-rootfs org.opencontainers.image.description: Unsafe demo rootfs to install diff --git a/tests/launch.bats b/tests/launch.bats index bb5280d..1537b6c 100644 --- a/tests/launch.bats +++ b/tests/launch.bats @@ -21,7 +21,7 @@ product: default update_type: complete targets: - service_name: hostfs - source: "docker://zothub.io/machine/bootkit/demo-target-rootfs:0.0.1-squashfs" + source: "docker://zothub.io/machine/bootkit/demo-target-rootfs:0.0.3-squashfs" version: 1.0.0 service_type: hostfs nsgroup: "none" @@ -41,4 +41,42 @@ EOF --repo 127.0.0.1:${ZOT_PORT} --name machine/install:1.0.0 \ "${TMPD}/manifest.yaml" trust launch --project=snakeoil:default vm1 10.0.2.2:$ZOT_PORT/machine/install:1.0.0 + machine start vm1 + expect <