37 Commits
Author SHA1 Message Date
Julio Montes cb0e4985ba update version from 20 to 21 2016-04-21 16:12:37 -05:00
Julio Montes 7835df54d2 update version from 19 to 20 2016-04-15 16:50:13 -05:00
Julio Montes a4dee6b7f4 update version from 18 to 19 2016-04-14 14:47:02 -05:00
Julio Montes 1638cb551a update version from 17 to 18 2016-04-14 12:30:54 -05:00
Julio Montes 1c97e18f07 Split cloud-init service
cloud-init-pre-network:
runs before network service.
this service gets metadata from local datasources
in order to configure network stuff before network service
and configures the instance on its first booot

cloud-init:
runs after network service and will get userdata/metadata
from datasources(local/network). This service fixes disk
and filesystem

add first-boot-setup and no-network options
update documentation
2016-04-13 15:53:25 -05:00
Julio Montes 35c25ae9cd update version from 16 to 17 2016-02-11 15:13:59 -06:00
Julio Montes f569128eb3 update version from 15 to 16 2016-02-04 14:58:17 -06:00
Julio Montes 5e04ad5f65 update version from 14 to 15 2016-01-28 16:58:41 -06:00
Julio Montes a8197405b0 remove cloud-init-firstboot service
cloud-init-firstboot service is not more needed because
cloud-init service can use --user-data-once option to
process only on first boot user data
2016-01-28 16:56:13 -06:00
Julio Montes d2edfd09e6 update version from 13 to 14 2016-01-28 14:05:19 -06:00
Julio Montes ae49597b4a add --with-datadir option to configure script 2016-01-28 11:09:17 -06:00
Julio Montes 0191ab5b24 update version from 12 to 13 2016-01-15 15:05:05 -06:00
Julio Montes e078ec4f47 update version from 11 to 12 2016-01-09 14:13:08 -06:00
Julio Montes 37db27ebff update version from 10 to 11 2015-12-18 13:24:56 -06:00
Julio Montes 79485cb2b2 update version from 9 to 10 2015-12-15 15:36:56 -06:00
Julio Montes c91c00874f update version from 8 to 9 2015-12-10 16:26:45 -06:00
Julio Montes 53324512b7 update version from 7 to 8 2015-12-10 10:34:27 -06:00
Julio Montes 03ab1a2f2c update version from 6 to 7 2015-12-08 15:15:59 -06:00
Julio Montes df2541a4fd fix spawn commands 2015-12-08 15:14:47 -06:00
Julio Montes 4661ac8cc9 Ensure we use the explicit path to binaries 2015-12-08 11:28:55 -06:00
Julio Montes 74470eda09 update version from 5 to 6 2015-12-02 09:12:33 -06:00
Julio Montes b4ba31b3d0 remove write_envar function
remove write_envar function because is a specialized
version of write_file

add config define SYSCONFDIR
2015-12-01 10:08:53 -06:00
Julio Montes 703b7cdcd2 update version from 4 to 5 2015-11-27 14:36:22 -06:00
Julio Montes 7e64fbd558 add unit tests for lib
add exec_test unit test
add option --disable-tests do not build unit tests
2015-11-26 12:26:56 -06:00
Ikey Doherty c8c6482c42 disk: Ensure we use the explicit path to resize2fs
On some configurations, /sbin and /usr/sbin may not even be in the $PATH,
meaning that the configure routine would fail if this is where resize2fs
lives. Secondly, we must ensure that disks now uses this explicit path.

This ensures correct functionality during non privileged testing, and
consistency with installed behaviour.

Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-11-25 16:21:49 +00:00
Ikey Doherty 880e0bc84e Drop libparted requirement to 3.1, 3.2 isn't explicitly needed
Signed-off-by: Ikey Doherty <michael.i.doherty@intel.com>
2015-11-25 16:21:44 +00:00
Julio Montes 8a655b0b5c update version from 3 to 4 2015-11-24 13:56:08 -06:00
Julio Montes a67cbc9a85 update version from v2 to v3 2015-11-20 15:42:58 -06:00
Julio Montes 89cbfb4313 add cloud-init-firstboot service
cloud-init-firstboot service will do initial tasks
  * create and set up default user
  * get and process metadata/userdata from datasources
  * disable root login
this service will run once (firstboot)

cloud-init service won't run at the first boot
but it will do at next boot times
	* verify/fix/resize/grow up partitions and filesystems
	* get and process userdata from datasources (TODO: optional)
2015-11-20 11:06:40 -06:00
Julio Montes 31b04b7a89 update version from v1 to v2 2015-11-19 16:10:44 -06:00
Julio Montes 9a34076e96 add functions to manipulate disks
add blkid library

functions:
* disk_for_path: is a useful function to get
  the disk path where a specific is mounted
  for instance: / -> /dev/sda
* disk_resize_grow: resizes/grows partitions and filesystems
  this function uses the last disk partition/filesystem
  for resize it
2015-11-19 15:41:15 -06:00
Auke Kok baaf9c6546 write_files: assure path to file exists with mkdir -p.
We call `mkdir -p` for easy code here, but we still have to
split the path into dirname first and check if we actually
have to create it or not, and try and catch any errors in that
path.
2015-11-17 21:17:41 +00:00
Auke Kok f2185adb69 Accidentally listed stdlib.h twice here. 2015-11-16 22:43:14 +00:00
Auke Kok 4dc25a468a Catch mkstemp error, just in case. 2015-11-16 22:42:43 +00:00
Julio Montes ab5f9b360d add support to verify disk partitions
add libparted dependency
update help menu
resize filesystem
2015-11-13 13:10:41 -06:00
Julio Montes 4b19805315 update version from v0 to v1 2015-11-11 13:20:46 -06:00
Auke Kok c7d1d9dda7 Initial commit 2015-11-05 18:38:10 +00:00