[email protected]: > I want to copy network connection profiles from sys-net to sys-net-profiles > as my computer shuts down. > > I'm creating a bash script in dom0 to help with this. > > I could use > > qvm-run -ap sys-net "sudo qvm-copy-to-vm sys-net-profiles > /etc/NetworkManager/system-connections/*" > > ...but that will spawn a dom0 confirmation dialogue that I'd rather avoid > (after all, dom0 is initiating the copy). > > I could "allow" qubes.Filecopy from sys-net -> sys-net-profiles, but I don't > want to trust sys-net to initiate this copy on its own. > > Is there any way to directly copy files from one VM to another, executed > directly from dom0? >
Not sure if it's the best solution, but this should work for avoiding prompt (briefly tested): for i in $(qvm-run -a -p -u root sys-net "ls /etc/NetworkManager/system-connections/"); do qvm-run -a -p -u root "cat /etc/NetworkManager/system-connections/$i" > $i; qvm-move-to-vm sys-net-profiles $i; done -- qubenix GPG: B536812904D455B491DCDCDD04BE1E61A3C2E500 -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/624a9c33-920e-412b-9b95-62351ce4825b%40riseup.net. For more options, visit https://groups.google.com/d/optout.
