#!/usr/bin/expect -f set timeout 10 spawn $env(SHELL) match_max 100000 send -- "firejail --chroot=/tmp/chroot --overlay\r" expect { timeout {puts "TESTING ERROR 0\n";exit} "mutually exclusive" {puts "normal system\n"} "Error: --chroot option is not available on Grsecurity systems" { puts "\nall done\n"; exit} } sleep 1 send -- "firejail --overlay --chroot=/tmp/chroot\r" expect { timeout {puts "TESTING ERROR 0\n";exit} "mutually exclusive" } sleep 1 puts "\n"