]> git.proxmox.com Git - mirror_lxc.git/commit
lxc_create: prepend pretty header to config file (v2)
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Fri, 12 Jul 2013 19:07:23 +0000 (14:07 -0500)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 15 Jul 2013 21:34:00 +0000 (16:34 -0500)
commit3ce746862b2a2b33f3de65aeecda0bad1a5dd27c
tree6f7785160dc6f4effbdf2c135b8abc66d2fd57e0
parent868a70afead6cc48a4c883126ea3ef01b6ec57e0
lxc_create: prepend pretty header to config file (v2)

Define a sha1sum_file() function in utils.c.  Use that in lxcapi_create
to write out the sha1sum of the template being used.  If libgnutls is
not found, then the template sha1sum simply won't be printed into the
container config.

This patch also trivially fixes some cases where SYSERROR is used after
a fclose (masking errno) and missing consts in mkdir_p.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
configure.ac
src/lxc/lxccontainer.c
src/lxc/utils.c
src/lxc/utils.h