boxgrinder-build 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/bin/boxgrinder-build CHANGED
@@ -40,7 +40,7 @@ gem 'commander', '>= 4.0.3'
40
40
  #$stderr.reopen('/dev/null')
41
41
 
42
42
  program :name, 'BoxGrinder Build'
43
- program :version, '0.4.0'
43
+ program :version, '0.4.1'
44
44
  program :description, 'A tool for building VM images from simple definition files.'
45
45
  default_command :build
46
46
 
@@ -104,6 +104,8 @@ module BoxGrinder
104
104
  @guestfs.umount( partition )
105
105
  end
106
106
 
107
+ raise "No root partition found for '#{File.basename( @raw_disk )}' disk!" if root_partition.nil?
108
+
107
109
  @guestfs.list_partitions.each do |partition|
108
110
  next if partition == root_partition
109
111
  mount_partition( partition, @guestfs.sh( "/sbin/e2label #{partition}" ).chomp.strip )
@@ -52,6 +52,8 @@ module BoxGrinder
52
52
  guestfs.upload( "/etc/resolv.conf", "/etc/resolv.conf" )
53
53
  @log.debug "'/etc/resolv.conf' uploaded."
54
54
 
55
+ change_configuration( guestfs )
56
+
55
57
  @log.info "Executing post operations after build..."
56
58
 
57
59
  unless @appliance_config.post['base'].nil?
@@ -82,6 +84,8 @@ module BoxGrinder
82
84
  guestfs.aug_init( "/", 0 )
83
85
  # don't use DNS for SSH
84
86
  guestfs.aug_set( "/files/etc/ssh/sshd_config/UseDNS", "no" ) if guestfs.exists( '/etc/ssh/sshd_config' ) != 0
87
+ # setting SELinux into permissive mode
88
+ guestfs.aug_set("/files/etc/sysconfig/selinux/SELINUX", "permissive")
85
89
  guestfs.aug_save
86
90
  @log.debug "Augeas changes saved."
87
91
  end
@@ -16,7 +16,9 @@ Required steps:
16
16
  ---------------
17
17
 
18
18
  1. Extract required files into one directory.
19
- 2. Add #APPLIANCE_NAME#-personal.vmx to inventory.
19
+ 2. Rename #APPLIANCE_NAME#-personal.vmx to #APPLIANCE_NAME#.vmx
20
+ 3. Rename #APPLIANCE_NAME#-personal.vmdk to #APPLIANCE_NAME#.vmdk
21
+ 4. Add #APPLIANCE_NAME#.vmx to inventory.
20
22
  3. Run appliance.
21
23
 
22
24
  VMware Enterprise (VMware ESX/ESXi/, VMware vSphere)
@@ -33,6 +35,8 @@ Required steps:
33
35
  ---------------
34
36
 
35
37
  1. Extract required files into one directory.
36
- 2. Upload all files to ESX server using vSpehere/VI client.
37
- 3. Add #APPLIANCE_NAME#-enterprise.vmx to inventory.
38
- 4. Run appliance.
38
+ 2. Rename #APPLIANCE_NAME#-personal.vmx to #APPLIANCE_NAME#.vmx
39
+ 3. Rename #APPLIANCE_NAME#-personal.vmdk to #APPLIANCE_NAME#.vmdk
40
+ 4. Upload all files to ESX server using vSpehere/VI client.
41
+ 5. Add #APPLIANCE_NAME#.vmx to inventory.
42
+ 6. Run appliance.
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 0
9
- version: 0.4.0
8
+ - 1
9
+ version: 0.4.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - BoxGrinder Project
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-09 00:00:00 +02:00
17
+ date: 2010-06-18 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency