summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check-qemu-install3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install
index 0cbb3674..b0a93dc5 100755
--- a/scripts/check-qemu-install
+++ b/scripts/check-qemu-install
@@ -142,6 +142,9 @@ parser.add_argument('--isolate-cpus', help='CPU cores to isolate (e.g., 1,3-4',
args = parser.parse_args()
+if os.geteuid() != 0:
+ exit('You need to have root privileges to run this script.')
+
if args.cloud_init:
hostname = CI_CONFIG_ARGS['hostname']
op_mode_prompt = rf'vyos@{hostname}:~\$'