Comment 4 for bug 1929539

Revision history for this message
Oliver Grawert (ogra) wrote :

so i did some tinkering, a simple

    "sudo systemctl mask ctrl-alt-del.target"

and

    "sudo systemctl unmask ctrl-alt-del.target"

work very well to dis/enable the ctrl-alt-del key combo ... adding "ctrl-alt-del.target" to the above code will additionally to sysd.Mask()/.Umask() also call sysd.Stop() and sysd.Start() when setting or unsetting the option ... and while .Stop() is a no-op, .Start() actually triggers a reboot.

So beyond just adding ctrl-alt-del.target to the list in line 41 in services.go, there needs to be some code to make it skip Stop()/Start() for units ending in .target, but that should be all that's needed here to have a gadget.yaml option for customers to disable it per-image.