mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2024-12-25 23:39:37 -05:00
DevelopmentWorkflow changed
add copy script
This commit is contained in:
parent
46c25c231b
commit
e591998f4a
@ -76,3 +76,18 @@ mkdir -p $BAK
|
|||||||
cp -a /usr/bin/qvm-* /usr/bin/qubes-* $BAK/
|
cp -a /usr/bin/qvm-* /usr/bin/qubes-* $BAK/
|
||||||
sudo cp qvm-tools/qvm-* qvm-tools/qubes-* /usr/bin/
|
sudo cp qvm-tools/qvm-* qvm-tools/qubes-* /usr/bin/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Copy from dom0 to an appvm
|
||||||
|
|
||||||
|
``` {.wiki}
|
||||||
|
#/bin/sh
|
||||||
|
#
|
||||||
|
# usage ./cp-domain <vm_name> <file_to_copy>
|
||||||
|
#
|
||||||
|
domain=$1
|
||||||
|
file=$2
|
||||||
|
fname=`basename $file`
|
||||||
|
|
||||||
|
qvm-run $domain 'mkdir /home/user/incoming/dom0 -p'
|
||||||
|
cat $file| qvm-run --pass-io $domain "cat > /home/user/incoming/dom0/$fname"
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user