You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: boot-qemu.py
+35-33Lines changed: 35 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
#!/usr/bin/env python3
2
+
# pylint: disable=invalid-name
2
3
3
4
importargparse
4
5
importos
@@ -7,6 +8,7 @@
7
8
importre
8
9
importshutil
9
10
importsubprocess
11
+
importsys
10
12
11
13
importutils
12
14
@@ -54,28 +56,28 @@ def parse_arguments():
54
56
"--interactive",
55
57
"--shell",
56
58
action="store_true",
57
-
help=
59
+
help=# noqa: E251
58
60
"Instead of immediately shutting down the machine upon successful boot, pass 'rdinit=/bin/sh' on the kernel command line to allow interacting with the machine via a shell."
59
61
)
60
62
parser.add_argument(
61
63
"-k",
62
64
"--kernel-location",
63
65
required=True,
64
66
type=str,
65
-
help=
67
+
help=# noqa: E251
66
68
"Path to kernel image or kernel build folder to search for image in. Can be an absolute or relative path."
67
69
)
68
70
parser.add_argument(
69
71
"--no-kvm",
70
72
action="store_true",
71
-
help=
73
+
help=# noqa: E251
72
74
"Do not use KVM for acceleration even when supported (only recommended for debugging)."
73
75
)
74
76
parser.add_argument(
75
77
"-s",
76
78
"--smp",
77
79
type=int,
78
-
help=
80
+
help=# noqa: E251
79
81
"Number of processors for virtual machine. By default, only machines spawned with KVM will use multiple vCPUS."
0 commit comments