File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed
src/secex-genprotimgvm-scripts Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -74,14 +74,16 @@ storage:
7474 ln -sf "../genprotimg.service" "${UNIT_DIR}/default.target.wants/"
7575systemd:
7676 units:
77- 78- dropins:
79- - name: autologin-core.conf
80- contents: |
81- [Service]
82- TTYVTDisallocate=no
83- ExecStart=
84- ExecStart=-/usr/sbin/agetty --autologin core -o '-p -f core' --noclear %I $TERM
85- mask: false
86- 87- mask: false
77+ - name: autohalt.service
78+ enabled: true
79+ contents: |
80+ [Unit]
81+ Description=Halts system on firstboot
82+ ConditionKernelCommandLine=ignition.firstboot
83+ After=multi-user.target
84+ [Service]
85+ Type=oneshot
86+ ExecStartPre=/bin/echo "Shutting down"
87+ ExecStart=/usr/bin/systemctl --no-block poweroff
88+ [Install]
89+ WantedBy=multi-user.target
You can’t perform that action at this time.
0 commit comments