]> git.proxmox.com Git - pve-container.git/log
pve-container.git
8 years agobump version to 1.0-15
Dietmar Maurer [Wed, 28 Oct 2015 10:27:59 +0000 (11:27 +0100)]
bump version to 1.0-15

8 years agoimprove inline comment
Dietmar Maurer [Wed, 28 Oct 2015 10:26:10 +0000 (11:26 +0100)]
improve inline comment

8 years agoStart a worker in lxc resize.
Wolfgang Link [Wed, 28 Oct 2015 08:40:41 +0000 (09:40 +0100)]
Start a worker in lxc resize.

It is necessary because if we resize a disk it can take longer. so to prevent long waiting time fork a worker process.

8 years agomove resize to have it available in the pveshell and at the rest api
Wolfgang Link [Wed, 28 Oct 2015 08:40:40 +0000 (09:40 +0100)]
move resize to have it available in the pveshell and at the rest api

8 years agoallow to mount iso images
Dietmar Maurer [Mon, 26 Oct 2015 11:22:32 +0000 (12:22 +0100)]
allow to mount iso images

8 years agobump version to 1.0-14
Dietmar Maurer [Thu, 22 Oct 2015 10:11:28 +0000 (12:11 +0200)]
bump version to 1.0-14

8 years agoredhat: fix unused values
Wolfgang Bumiller [Thu, 22 Oct 2015 09:02:01 +0000 (11:02 +0200)]
redhat: fix unused values

Move ip_is_in_cidr checks on $d->{gw} into the
defined($d->{gw}) guarded if block to avoid warnings and
useless route files being created when using dhcp.

8 years agobump version to 1.0-13
Dietmar Maurer [Wed, 21 Oct 2015 06:31:41 +0000 (08:31 +0200)]
bump version to 1.0-13

8 years agorestore: delete config from container after restore
Wolfgang Bumiller [Tue, 20 Oct 2015 08:31:25 +0000 (10:31 +0200)]
restore: delete config from container after restore

We don't need to leave /etc/vzdump/pct.conf or vps.conf in
the container's directory structure after using it, it only
causes the next backup to have the file twice in the
archive.

8 years agorestore: make sure only the first pct.conf is extracted
Wolfgang Bumiller [Tue, 20 Oct 2015 08:31:24 +0000 (10:31 +0200)]
restore: make sure only the first pct.conf is extracted

When making a stop/snapshot mode backup of a container that
was already restored from a backup, its /etc/vzdump/pct.conf
file was replacing our newly created one in the archive. We
need to prevent the duplicate file from overwriting our new
one.

8 years agoredhat: don't use aliases for dual stack networking
Wolfgang Bumiller [Tue, 20 Oct 2015 14:50:33 +0000 (16:50 +0200)]
redhat: don't use aliases for dual stack networking

A static IPv6 as alias interface for ipv4 doesn't work (RH
has "secondaries" for that), DHCP on aliases doesn't work
either.
The only drawback of putting both in the same file is that
static addresses take longer to be configured if the DHCP
server is slow.

8 years agoredhat: use the fully qualified hostname
Wolfgang Bumiller [Mon, 19 Oct 2015 08:02:02 +0000 (10:02 +0200)]
redhat: use the fully qualified hostname

8 years agobump version to 1.0-12
Dietmar Maurer [Mon, 19 Oct 2015 06:53:10 +0000 (08:53 +0200)]
bump version to 1.0-12

8 years agohotplug: deal with gateways outside the subnet
Wolfgang Bumiller [Fri, 16 Oct 2015 13:57:13 +0000 (15:57 +0200)]
hotplug: deal with gateways outside the subnet

8 years agosystemd: deal with gateways outside the subnet
Wolfgang Bumiller [Fri, 16 Oct 2015 13:57:12 +0000 (15:57 +0200)]
systemd: deal with gateways outside the subnet

8 years agocentos: deal with gateways outside the subnet
Wolfgang Bumiller [Fri, 16 Oct 2015 13:57:11 +0000 (15:57 +0200)]
centos: deal with gateways outside the subnet

8 years agodebian: deal with gateways in external subnets
Wolfgang Bumiller [Fri, 16 Oct 2015 13:57:10 +0000 (15:57 +0200)]
debian: deal with gateways in external subnets

8 years agoallow /32 CIDRs and remove duplicated mask array
Wolfgang Bumiller [Fri, 16 Oct 2015 07:29:48 +0000 (09:29 +0200)]
allow /32 CIDRs and remove duplicated mask array

8 years agobump version to 1.0-11
Dietmar Maurer [Fri, 16 Oct 2015 07:50:44 +0000 (09:50 +0200)]
bump version to 1.0-11

8 years agosetup/debian: remove superfluous parameter
Wolfgang Bumiller [Fri, 16 Oct 2015 07:44:22 +0000 (09:44 +0200)]
setup/debian: remove superfluous parameter

The $new parameter only guards the output of the 'auto' line
which is now being tracked in $done_auto, so it's not
needed anymore.

8 years agocleanup: reduce hash access
Wolfgang Bumiller [Fri, 16 Oct 2015 06:32:02 +0000 (08:32 +0200)]
cleanup: reduce hash access

8 years agowhitespace cleanup
Wolfgang Bumiller [Fri, 16 Oct 2015 06:32:01 +0000 (08:32 +0200)]
whitespace cleanup

8 years agosetup/debian: guard ipv4 output
Wolfgang Bumiller [Fri, 16 Oct 2015 06:32:00 +0000 (08:32 +0200)]
setup/debian: guard ipv4 output

When only an ipv6 address was specified we still tried to
print an ipv4 address which warned and caused additional
newlines to be appended to the file on each start.

8 years agosetup/debian: avoid extra newlines
Wolfgang Bumiller [Fri, 16 Oct 2015 06:31:59 +0000 (08:31 +0200)]
setup/debian: avoid extra newlines

At the beginning of a file or between sections, if there
have been two newlines already we don't need to add another.

8 years agosetup/debian: avoid writing multiple auto lines
Wolfgang Bumiller [Fri, 16 Oct 2015 06:31:58 +0000 (08:31 +0200)]
setup/debian: avoid writing multiple auto lines

8 years agobump version to 1.0-10
Dietmar Maurer [Fri, 16 Oct 2015 06:27:30 +0000 (08:27 +0200)]
bump version to 1.0-10

8 years agoimprove regex to match redhat/centos OS version
Dietmar Maurer [Fri, 16 Oct 2015 05:49:49 +0000 (07:49 +0200)]
improve regex to match redhat/centos OS version

8 years agodisk-size is a format, not a type
Wolfgang Bumiller [Thu, 15 Oct 2015 10:18:04 +0000 (12:18 +0200)]
disk-size is a format, not a type

8 years agocode cleanup - remove dead code
Dietmar Maurer [Thu, 15 Oct 2015 10:10:54 +0000 (12:10 +0200)]
code cleanup - remove dead code

volume property is not optional, so this is already verified
by PVE::JSONSchema::parse_property_string()

8 years agoparsing: throw by default unless $noerr is passed
Wolfgang Bumiller [Thu, 15 Oct 2015 09:09:49 +0000 (11:09 +0200)]
parsing: throw by default unless $noerr is passed

parse_ct_mountpoint and parse_lxc_mountpoint are now not usd
in schema verification anymore, so instead of returning
undef on error it can now die.

parse_ct_mountpoint now also gets a $noerr parameter as it
is used in foreach_mountpoint, and to be safe we'll just
skip invalid mountpoints there to avoid unexpected
inconsistent states.

8 years agoupdate changelog
Dietmar Maurer [Thu, 15 Oct 2015 09:49:46 +0000 (11:49 +0200)]
update changelog

8 years agorevert coding style changes, skip ID 7 (reserved for X11)
Dietmar Maurer [Thu, 15 Oct 2015 09:47:55 +0000 (11:47 +0200)]
revert coding style changes, skip ID 7 (reserved for X11)

8 years agoupdate inittab instead of replacing it
Wolfgang Bumiller [Thu, 15 Oct 2015 08:46:45 +0000 (10:46 +0200)]
update inittab instead of replacing it

8 years agoadd note about fsck to changelog
Dietmar Maurer [Thu, 15 Oct 2015 09:22:30 +0000 (11:22 +0200)]
add note about fsck to changelog

8 years agofsck: simplify code
Dietmar Maurer [Thu, 15 Oct 2015 09:19:21 +0000 (11:19 +0200)]
fsck: simplify code

8 years agominor cleanups
Dietmar Maurer [Thu, 15 Oct 2015 08:44:15 +0000 (10:44 +0200)]
minor cleanups

8 years agoAdd new pct fsck command to check the mountpoints of a container
Emmanuel Kasper [Wed, 14 Oct 2015 12:47:23 +0000 (14:47 +0200)]
Add new pct fsck command to check the mountpoints of a container

* the filesystem specific command will be called automatically by fsck
* the -a flag ensures that the filesystem can be fixed without any questions
* the -f flag forces a filesystem check even if the fs seems clean
(flags similar to what the fsck systemd unit uses)

8 years agobump version to 1.0-9
Dietmar Maurer [Thu, 15 Oct 2015 08:26:19 +0000 (10:26 +0200)]
bump version to 1.0-9

8 years agoremove unused functions
Wolfgang Link [Thu, 15 Oct 2015 07:55:56 +0000 (09:55 +0200)]
remove unused functions

8 years agochange function parse_size to PVE::JSONSchema::parse_size
Wolfgang Link [Thu, 15 Oct 2015 07:55:55 +0000 (09:55 +0200)]
change function parse_size to PVE::JSONSchema::parse_size

8 years agofix bug #750: deactivate volumes to be sure there are no volumes active on the source...
Wolfgang Link [Fri, 9 Oct 2015 12:13:53 +0000 (14:13 +0200)]
fix bug #750: deactivate volumes to be sure there are no volumes active on the source node

8 years agofix bug #752: correct size of mount point after resize
Wolfgang Link [Mon, 12 Oct 2015 09:55:25 +0000 (11:55 +0200)]
fix bug #752: correct size of mount point after resize

8 years agofix test if storage allows containers
Dietmar Maurer [Mon, 12 Oct 2015 05:49:03 +0000 (07:49 +0200)]
fix test if storage allows containers

8 years agobump version to 1.0-8
Dietmar Maurer [Sat, 10 Oct 2015 15:24:42 +0000 (17:24 +0200)]
bump version to 1.0-8

8 years agomake bridge parameter option - required for hotplug code
Dietmar Maurer [Sat, 10 Oct 2015 15:23:28 +0000 (17:23 +0200)]
make bridge parameter option - required for hotplug code

8 years agobump version to 1.0-7
Dietmar Maurer [Thu, 8 Oct 2015 09:48:04 +0000 (11:48 +0200)]
bump version to 1.0-7

8 years agoalways create /fastboot to skip run fsck
Dietmar Maurer [Thu, 8 Oct 2015 09:46:59 +0000 (11:46 +0200)]
always create /fastboot to skip run fsck

8 years agoavoid warning about uninitialized value
Dietmar Maurer [Wed, 7 Oct 2015 04:40:17 +0000 (06:40 +0200)]
avoid warning about uninitialized value

8 years agoTypo in resize_vm subroutine
Emmanuel Kasper [Tue, 6 Oct 2015 09:32:14 +0000 (11:32 +0200)]
Typo in resize_vm subroutine

8 years agobump version to 1.0-6
Dietmar Maurer [Tue, 6 Oct 2015 07:37:58 +0000 (09:37 +0200)]
bump version to 1.0-6

8 years agoreplace disk-size calculation in pct resize
Wolfgang Bumiller [Tue, 6 Oct 2015 06:12:07 +0000 (08:12 +0200)]
replace disk-size calculation in pct resize

fixes a fixme

8 years agoremove old comment about looopdevices_list
Wolfgang Bumiller [Tue, 6 Oct 2015 06:12:06 +0000 (08:12 +0200)]
remove old comment about looopdevices_list

8 years agobump version to 1.0-5
Dietmar Maurer [Fri, 2 Oct 2015 11:47:41 +0000 (13:47 +0200)]
bump version to 1.0-5

8 years agolxc hooks: use run_cli_handler(), remove stale docs
Dietmar Maurer [Fri, 2 Oct 2015 11:46:02 +0000 (13:46 +0200)]
lxc hooks: use run_cli_handler(), remove stale docs

8 years agobump version to 1.0-4
Dietmar Maurer [Thu, 1 Oct 2015 14:28:25 +0000 (16:28 +0200)]
bump version to 1.0-4

8 years agoremove 'noload' option from zfspool mounts
Wolfgang Bumiller [Thu, 1 Oct 2015 11:12:57 +0000 (13:12 +0200)]
remove 'noload' option from zfspool mounts

This should have only been added to raw files in the first
place.

Fixes #742.

8 years agopct create: add bash completion for storage parameter
Dietmar Maurer [Thu, 1 Oct 2015 09:52:17 +0000 (11:52 +0200)]
pct create: add bash completion for storage parameter

8 years agodon't add binds and block devices as unused volume
Wolfgang Bumiller [Thu, 1 Oct 2015 09:37:53 +0000 (11:37 +0200)]
don't add binds and block devices as unused volume

8 years agobump version to 1.0-3
Dietmar Maurer [Thu, 1 Oct 2015 09:42:48 +0000 (11:42 +0200)]
bump version to 1.0-3

8 years agocode cleanup
Dietmar Maurer [Thu, 1 Oct 2015 09:41:02 +0000 (11:41 +0200)]
code cleanup

8 years agofix hotplug error in update_pct_config
Wolfgang Bumiller [Thu, 1 Oct 2015 08:58:33 +0000 (10:58 +0200)]
fix hotplug error in update_pct_config

Non-hotpluggable values still updated the $conf hash and
so providing a hotpluggable value after a non-hotpluggable
one updated them both in the file.

8 years agoadded lxc.hook.stop to valid_lxc_conf_keys
Wolfgang Bumiller [Thu, 1 Oct 2015 08:58:32 +0000 (10:58 +0200)]
added lxc.hook.stop to valid_lxc_conf_keys

8 years agomove nohotplug error to after disk-creation
Wolfgang Bumiller [Thu, 1 Oct 2015 08:58:31 +0000 (10:58 +0200)]
move nohotplug error to after disk-creation

Added a reminder comment...

8 years agoadd mountpoint deletion support and unused volumes
Wolfgang Bumiller [Thu, 1 Oct 2015 08:58:30 +0000 (10:58 +0200)]
add mountpoint deletion support and unused volumes

Like with qemu, deleting a mountpoint now adds an unused
disk, which when deleted will now also delete the underlying
volume.

8 years agofactor out a delete_mountpoint function for reuse
Wolfgang Bumiller [Thu, 1 Oct 2015 08:58:29 +0000 (10:58 +0200)]
factor out a delete_mountpoint function for reuse

8 years agoUse the new JSONSchema::print_property_string
Wolfgang Bumiller [Thu, 1 Oct 2015 08:58:28 +0000 (10:58 +0200)]
Use the new JSONSchema::print_property_string

8 years agouse the disk-size property type
Wolfgang Bumiller [Thu, 1 Oct 2015 08:58:27 +0000 (10:58 +0200)]
use the disk-size property type

8 years agoset minimum mtu to 64
Wolfgang Bumiller [Thu, 1 Oct 2015 08:58:26 +0000 (10:58 +0200)]
set minimum mtu to 64

8 years agoOnly get PID info in fin_lxc_pid sub
Thomas Lamprecht [Wed, 30 Sep 2015 12:40:14 +0000 (14:40 +0200)]
Only get PID info in fin_lxc_pid sub

with the -p switch lxc-info only ouputs the PID line,
this makes the call quite a bit faster.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 years agofix hardcoded CT uptime in vmstatus
Thomas Lamprecht [Wed, 30 Sep 2015 12:20:16 +0000 (14:20 +0200)]
fix hardcoded CT uptime in vmstatus

Implement the container uptime by susbtracting the ctime from the
container pid file from the actual time.
This mirrors the behaviour of lxcfs, see get_pid1_time() in lxcfs.c.
This hass some limitations, like frozen or live migrated containers
falsify the real uptime. But as it shows everytime the uptime like
a uptime command in the container would this is forgivable, for now.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
8 years agobump version to 1.0-2
Dietmar Maurer [Wed, 30 Sep 2015 07:29:28 +0000 (09:29 +0200)]
bump version to 1.0-2

8 years agoset TERM=linux for containers
Dietmar Maurer [Wed, 30 Sep 2015 05:38:02 +0000 (07:38 +0200)]
set TERM=linux for containers

some init scripts expects a linux terminals (turnkey).

9 years agobump version to 1.0-1
Dietmar Maurer [Fri, 25 Sep 2015 15:56:06 +0000 (17:56 +0200)]
bump version to 1.0-1

9 years agomount snapshots with the noload option
Wolfgang Bumiller [Fri, 25 Sep 2015 12:08:02 +0000 (14:08 +0200)]
mount snapshots with the noload option

When using block device based snapshots we cannot mount the
filesystem as it's not clean, and we also can't replay the
journal without write access (as even `-o ro` writes to
devices when replaying a journal (see the linux docs under
Documentation/filesystems/ext4.txt section 3 option 'ro')).
So we need to use the "noload" option to avoid replaying the
journal.

9 years agovzdump:lxc: sync and skip journal in snapshot mode
Wolfgang Bumiller [Fri, 25 Sep 2015 12:08:01 +0000 (14:08 +0200)]
vzdump:lxc: sync and skip journal in snapshot mode

We now perform a 'sync' after 'lxc-freeze' and before
creating the snapshot, since we now mount snapshots with
'-o noload' which skips the journal entirely.

9 years agovzdump:lxc: activate the right volumes
Wolfgang Bumiller [Fri, 25 Sep 2015 12:08:00 +0000 (14:08 +0200)]
vzdump:lxc: activate the right volumes

9 years agobump version to 0.9-23
Dietmar Maurer [Wed, 23 Sep 2015 08:11:45 +0000 (10:11 +0200)]
bump version to 0.9-23

9 years agouse json schema format for network config
Dietmar Maurer [Wed, 23 Sep 2015 07:51:19 +0000 (09:51 +0200)]
use json schema format for network config

To correctly generate docs for -net[n].

9 years agoReplace parsing code for -net* and -mp*
Wolfgang Bumiller [Tue, 22 Sep 2015 11:48:52 +0000 (13:48 +0200)]
Replace parsing code for -net* and -mp*

Use the new JSONSchema provided parser which also verifies
the parameters with their schemas.

9 years agoUse format hashes in schemas
Wolfgang Bumiller [Tue, 22 Sep 2015 11:48:51 +0000 (13:48 +0200)]
Use format hashes in schemas

Use full schemas and generate_typetext for -net* and -mp*
properties.

9 years agoWhen destroying a container, remove bind mounts and block devices from the list of...
Emmanuel Kasper [Tue, 22 Sep 2015 09:32:37 +0000 (11:32 +0200)]
When destroying a container, remove bind mounts and block devices from the list of volumes to delete.

9 years agoCT protection mode
Alen Grizonic [Tue, 22 Sep 2015 09:24:01 +0000 (11:24 +0200)]
CT protection mode

[PATCH 2] changes:

- added common check_protection subroutine
- disk removal or update operation
- restore over protected CT prevention
- changed man page message

9 years agovzdump: tar: disable warnings about ignored files
Wolfgang Bumiller [Tue, 22 Sep 2015 07:45:45 +0000 (09:45 +0200)]
vzdump: tar: disable warnings about ignored files

9 years agobump version to 0.9-22
Dietmar Maurer [Mon, 21 Sep 2015 10:14:47 +0000 (12:14 +0200)]
bump version to 0.9-22

9 years agoallow to parse configuration value with spaces
Dietmar Maurer [Fri, 18 Sep 2015 09:12:58 +0000 (11:12 +0200)]
allow to parse configuration value with spaces

Required for namenerser and searchdomain lists.

9 years agospecify data format for hostname, searchdomain and nameserver
Dietmar Maurer [Fri, 18 Sep 2015 09:07:03 +0000 (11:07 +0200)]
specify data format for hostname, searchdomain and nameserver

9 years agoadd check for newlines before writing configuration
Dietmar Maurer [Fri, 18 Sep 2015 09:01:42 +0000 (11:01 +0200)]
add check for newlines before writing configuration

9 years agovzdump:lxc: unshare mount namespace
Wolfgang Bumiller [Thu, 17 Sep 2015 11:07:00 +0000 (13:07 +0200)]
vzdump:lxc: unshare mount namespace

Enter a new mount namespace for stop and snapshot backups
where we need to mount the container to a temporary
location.

9 years agomountpoint_mount: disallow symlinks in bind mounts
Wolfgang Bumiller [Thu, 17 Sep 2015 11:06:59 +0000 (13:06 +0200)]
mountpoint_mount: disallow symlinks in bind mounts

symlinks in mount paths can cause security issues
assume the following setup:
mp1: local:X,mp=/disk2
mp2: /mnt/shared,mp=/shared
Now the container boots and executes this sequence:
ct:# ln -s /var/lib/lxc/$VMID/etc /disk2/shared
ct:# umount /disk2
ct:# ln -s /mnt /disk2
ct:# umount /shared
ct:# rmdir /shared
ct:# ln -s /etc /shared
ct:# poweroff
Now the owner waits for a stop-mode backup of the container
to be created:
mp1 will be mounted to the host's /mnt because the
container's /disk2 is a symlink to /mnt.
mp2 will now access the replaced /mnt/shared, which is a
symlink to the container's /etc, and mount that over the
container's /shared, which is a symlink to the host's /etc.
Now until the backup is finished the container's owner could
log into the host via ssh using his container's user
credentials.

We'll also unshare the mount namespace when performing such
backups, but it's still a bad idea to allow symlinks
modifying mount container paths.

9 years agouse sanitize_mountpoint in foreach_mountpoint
Wolfgang Bumiller [Thu, 17 Sep 2015 11:06:58 +0000 (13:06 +0200)]
use sanitize_mountpoint in foreach_mountpoint

This is for consistency as well as it's a minor security
improvement.

If the source is a path we also want to sanitize it in order
to not get broken behavior when using paths like
/dev/../something etc.

9 years agolxc: use new disk option names in permission check
Wolfgang Bumiller [Thu, 17 Sep 2015 11:06:57 +0000 (13:06 +0200)]
lxc: use new disk option names in permission check

made check_ct_modify_config_perm check VM.Config.Disk for
'rootfs' and 'mp\d+' instead of the old 'disk' option.

9 years agofix previous commit (s/snapshot/suspend/)
Dietmar Maurer [Thu, 17 Sep 2015 09:59:06 +0000 (11:59 +0200)]
fix previous commit (s/snapshot/suspend/)

9 years agorsync cleanup
Wolfgang Bumiller [Wed, 16 Sep 2015 14:42:04 +0000 (16:42 +0200)]
rsync cleanup

It's only one command now, renamed $base to $rsync.

9 years agovzdump: suspend mode fixes
Wolfgang Bumiller [Wed, 16 Sep 2015 14:42:03 +0000 (16:42 +0200)]
vzdump: suspend mode fixes

-) '-x' is '--one-file-system' (the longer version is easier
to spot.)
-) Use --relative's special handling of `/./` in paths in
order to make --one-file-system and --exclude options work
together the way they should.

Here's the issue:
Say you have thse files in your container:
  /the-file
  /mp0/the-file
And assume /mp0 is a mountpoint.
Naturally you want `-exclude-path /the-file` to only exclude
the first of the two files. This is hard when rsyncing each
mountpoint separately, as the rsync command for mp0 would
see files relative to /mp0, and thus both files would be
excluded unless we modify exclude paths accordingly - which
we can't as they can be arbitrary glob patterns.
Now with rsync's --relative option - assume the container is
mounted at /temp (iow: /temp/ and /temp/mp0). Passing
/temp/mp0/ to rsync would copy the contents of the mp0
mountpoint into the root directory of the destination
(essentially doing the equivalent of `mv mp0/* /` in the
container's backup.). However, rsync's special treatment of
/./ with the --relative option allows us to pass
/temp/./mp0/ which tells rsync that `/mp0` is supposed to be
included in the path, iow. we're actually copying from
/temp/, but we want only its mp0/ directory.
See rsync(1)'s section about --relative for a detailed
description.

9 years agocleanup
Wolfgang Bumiller [Wed, 16 Sep 2015 14:42:02 +0000 (16:42 +0200)]
cleanup

9 years agovzdump: don't unmount filesystems with -mode suspend
Dietmar Maurer [Thu, 17 Sep 2015 06:10:43 +0000 (08:10 +0200)]
vzdump: don't unmount filesystems with -mode suspend

9 years agodrop mkdirs flag on mount_all
Wolfgang Bumiller [Wed, 16 Sep 2015 09:12:52 +0000 (11:12 +0200)]
drop mkdirs flag on mount_all

It was only used in update_pct_config and isn't required
as mountpoint_mount already creates the directory anyway.

9 years agobump version to 0.9-21
Dietmar Maurer [Wed, 16 Sep 2015 09:42:55 +0000 (11:42 +0200)]
bump version to 0.9-21

9 years agovzdump: use the new run_command variant
Wolfgang Bumiller [Tue, 15 Sep 2015 08:07:22 +0000 (10:07 +0200)]
vzdump: use the new run_command variant

Use the array-of-array version of run_command to build the
pipe, this should deal with most quoting issues.
Note that tar handles glob patterns in --exclude itself, so
quoting patterns instead of letting the shell resolve them
is also actually more correct.

9 years agovzdump: lxc find/mp update 2: archive
Wolfgang Bumiller [Tue, 15 Sep 2015 08:07:21 +0000 (10:07 +0200)]
vzdump: lxc find/mp update 2: archive

To void at least some weird quoting issues, and since tar
has a --one-file-system option, always skips sockets and
also supports exclusion by pattern we now simply use tar
directly instead of passing files listed by 'find'.