mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Use append to a truncated file to retain owner (#1677)
Change the default behaviour when logging output from the console to a file to ensure the file is pre-created and unless append is explicitly set to true in the source config, truncate the file. Combined with having the domain template default to enabling append, this causes libvirt/qemu to not attempt to create the file and thus retains the owner/group and permissions of the original file. Relates-to: #1385
This commit is contained in:
@@ -105,7 +105,7 @@
|
||||
<target dev='fda' bus='fdc'/>
|
||||
</disk>
|
||||
<serial type='file'>
|
||||
<source path='/var/log/vm_consoles/machine.log'/>
|
||||
<source path='/var/log/vm_consoles/machine.log' append='on'/>
|
||||
<target port='0'/>
|
||||
</serial>
|
||||
<console type='file'>
|
||||
|
||||
Reference in New Issue
Block a user