This repository has been archived by the owner on May 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Debug: Provide a way to enable a debug console to the VM
Provide an additional unit file to enable a debug console. Also provide an additional agent service file variant that can be used to launch the VM in debug mode. The console can be attached using socat console.sock - Signed-off-by: Manohar Castelino <[email protected]>
- Loading branch information
1 parent
84761a1
commit c026a21
Showing
3 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[Unit] | ||
Description=Clear Container debug console | ||
|
||
[Service] | ||
Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | ||
StandardInput=tty | ||
StandardOutput=tty | ||
PrivateDevices=yes | ||
Type=simple | ||
ExecStart=/usr/bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[Unit] | ||
Description=Clear Containers Agent Target | ||
Requires=basic.target | ||
Requires=clear-containers.service | ||
Wants=clear-containers-debug-console.service | ||
Conflicts=rescue.service rescue.target | ||
After=basic.target rescue.service rescue.target | ||
AllowIsolate=yes |