Trap ctrl+c in wdvn-chroot

This commit is contained in:
Fierelier 2022-08-17 07:13:04 +02:00
parent 25c337fb91
commit 2ace4e62a0

View File

@ -1,4 +1,12 @@
#!/bin/bash
trap ctrl_c INT
function ctrl_c() {
wdvn-chroot-end "$1"
exit 1
}
(
set -e
mount -o bind "/dev" "$1/dev"