pass tar options to tar.

the options tag of the rfs:tar-node has not been evalueted during tar
generation.

Images may require the --xattrs option if linux capabilities are used (jessie).
set autoresize flag if volume size is "remain"

If no size for the UBI volume is specified, ubinize will set the size
to the current image size. By "remain" the user is expecting the size
to fill the remaining partition space. This only happens when the
autoresize flag is set.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Merge pull request #19 from ferdisdot/tar-options

pass tar options to tar.
updated: fix apt-get clean failure

 E: Could not get lock /var/cache/apt/archives/lock
  - open (11: Resource temporarily unavailable)

This is because the python-apt bindings don't close their file descriptors
on object deletion.

So we move the code to a position the process handling with the apt-cache
has terminated and so all apt fd's are closed

Signed-off-by: Manuel Traut <manut@linutronix.de>
hdimg: add missint ':'

Signed-off-by: Manuel Traut <manut@linutronix.de>
gen_update: add conf and cmd functionality

a conf_dir and cmd_dir can be specified as parameters. If given, the files
included in this directories are added to the update package. If given, a
XML file will be optional and no debian packages may be included in the update
file.

Signed-off-by: Manuel Traut <manut@linutronix.de>
genupdatepkg: always include a version of new.xml

updated uses it to determine the destination of update archive extraction

Signed-off-by: Manuel Traut <manut@linutronix.de>
updated: use cmd and conf diretories

if one of the above mentioned directory exist, cp the files to the rfs (conf)
  or try to execute all files in the directory (cmd).

For copying the conf files, the according filesystems are remounted
read-writeable (if mounted read-only).

The scripts in cmd need to bother about remounting by their own, because i
can't know what they like to touch.

Signed-off-by: Manuel Traut <manut@linutronix.de>
postbuild: add a hook for a postbuild script

this hook is called after a project build

this patch also changes the storage format of elbeproject.presh_file and
elbeproject.postsh_file from open filehandle to string pointing to the
file on the drive
updated: use os.system instead of execute for apt-get clean

Signed-off-by: Manuel Traut <manut@linutronix.de>
updated/cp conf files: catch IOError

thrown if sth. should be copied to a read-only media, eg. cdrom

Signed-off-by: Manuel Traut <manut@linutronix.de>
db: add timestamp to ProjectVersion

Signed-off-by: Manuel Traut <manut@linutronix.de>
init-vm: forward host hw random generator into vm

Signed-off-by: Manuel Traut <manut@linutronix.de>

Conflicts:
	elbepack/init/preseed.cfg.mako
hdimg/mountdepth: fix counter

+= 0 is non-sense use +=1 to increase mountdepth

Signed-off-by: Manuel Traut <manut@linutronix.de>
asyncworker: remove imgbuild functionality

it's not needed if we don't skip the packagelist on first build

Signed-off-by: Manuel Traut <manut@linutronix.de>

Conflicts:
	elbepack/asyncworker.py
fixed typo

Signed-off-by: Manuel Traut <manut@linutronix.de>
GUI: check version number input validity and limit it to 25 chars

Signed-off-by: Manuel Traut <manut@linutronix.de>
updated: downgrade to old versions, pre/post.sh handling

pre.sh and post.sh scripts are executed now on update start and end
the current and target version numbers are passed to these scripts
remount of readonly partitions when updating is working now

Signed-off-by: Manuel Traut <manut@linutronix.de>
finetuning: add an updated finetuning rule

it includes the base debian repository in the target rfs to enable
downgrades via elbe-updated

Signed-off-by: Manuel Traut <manut@linutronix.de>
version bump 0.9.1

Signed-off-by: Manuel Traut <manut@linutronix.de>