mirror of
https://github.com/Qubes-Community/Contents.git
synced 2024-12-23 06:09:29 -05:00
Update code/OS-administration/mount_lvm_image.sh
Co-Authored-By: neowutran <me@neowutran.ovh>
This commit is contained in:
parent
aa32e81467
commit
5e4c1cf3b7
@ -8,7 +8,7 @@
|
|||||||
# Remove the LVM image from the qvm-block list
|
# Remove the LVM image from the qvm-block list
|
||||||
######################################################
|
######################################################
|
||||||
|
|
||||||
image=${1?Image file is required, exemple "/dev/qubes_dom0/vm-debian-9-tmp-root"}
|
image=${1?Image file is required, example "/dev/qubes_dom0/vm-debian-9-tmp-root"}
|
||||||
dvm=${2?DVM template name is required, example: "fedora-29-dvm"}
|
dvm=${2?DVM template name is required, example: "fedora-29-dvm"}
|
||||||
dev=$(basename $(readlink "$image"))
|
dev=$(basename $(readlink "$image"))
|
||||||
qubesdb-write /qubes-block-devices/$dev/desc "$image"
|
qubesdb-write /qubes-block-devices/$dev/desc "$image"
|
||||||
|
Loading…
Reference in New Issue
Block a user