summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2021-03-29 13:03:08 +0800
committerIru Cai <mytbk920423@gmail.com>2021-03-29 13:47:51 +0800
commit4a6ab0cec7c3d5acdd20c5dbe1466bd06388e63f (patch)
treea3f1b62c8ae023a075b9646e9ef78414f1902457
parentf48291dec27b4c95f8678c63a5e0ed55d5b29e4b (diff)
downloadliveusb-builder-4a6ab0cec7c3d5acdd20c5dbe1466bd06388e63f.tar.xz
add testusb.sh
-rwxr-xr-xtestusb.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/testusb.sh b/testusb.sh
new file mode 100755
index 0000000..bed799b
--- /dev/null
+++ b/testusb.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+# Copyright (C) 2021 Iru Cai <mytbk920423@gmail.com>
+# SPDX-License-Identifier: GPL-3.0-or-later
+
+# Test the live USB in QEMU, you need to run this script as root
+qemu-system-x86_64 -enable-kvm -cpu host -m 2G -drive "file=$1,format=raw"