diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-05-02 20:27:32 +0200 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-05-06 19:21:40 +0200 |
| commit | 7d3566403af0c70de5a6a389c4964779c2eda9ce (patch) | |
| tree | 73ae1f5d908a57388560e855e4bde8f153fa6a98 /scripts | |
| parent | ce83cb947e4e9c0b47b192676b36dc61986bd32a (diff) | |
| download | vyos-build-7d3566403af0c70de5a6a389c4964779c2eda9ce.tar.gz vyos-build-7d3566403af0c70de5a6a389c4964779c2eda9ce.zip | |
Testsuite: T8147: must run as root to start QEMU VMs
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/check-qemu-install | 3 |
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}:~\$' |
