Skip to content

Commit

Permalink
* Increases disk size to the usual 40GB
Browse files Browse the repository at this point in the history
* Uses a newer gentoo minimal ISO images
* Correctly initializes network interfaces and sshd to allow logging
* Fixes shutdown
  • Loading branch information
ngiger committed Mar 29, 2013
1 parent 01d4afa commit 8e75ff0
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions templates/funtoo-latest-x86_64/definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
:hostiocache => 'off',
:cpu_count => '1',
:memory_size=> '384',
:disk_size => '10140',
:disk_size => '40560', # 40 GB
:disk_format => 'VDI',
:os_type_id => 'Gentoo_64', # for 32bit, change to 'Gentoo'
:iso_file => "systemrescuecd-x86-3.0.0.iso",
:iso_src => "http://freefr.dl.sourceforge.net/project/systemrescuecd/sysresccd-x86/3.0.0/systemrescuecd-x86-3.0.0.iso",
:iso_md5 => "6bb6241af752b1d6dab6ae9e6e3e770e",
:iso_file => "install-amd64-minimal-20130110.iso",
:iso_src => "http://mirror.switch.ch/ftp/mirror/gentoo/releases/amd64/autobuilds/20130110/install-amd64-minimal-20130110.iso",
:iso_md5 => "67cfb094d159d7b359ea9797d636b6c7",
:iso_download_timeout => "1000",
:boot_wait => "4",
:boot_cmd_sequence => [
Expand All @@ -20,9 +20,11 @@
'<Wait>'*12,
'<Enter><Wait>', # just in case we are out of sync
'net-setup eth0<Enter><Wait><Enter>2<Enter>1<Enter><Wait><Wait>',
'ifconfig -a <Enter><Wait><Wait>',
'passwd<Enter><Wait><Wait>',
password + '<Enter><Wait>',
password + '<Enter><Wait><Wait>'
password + '<Enter><Wait><Wait>',
'/etc/init.d/sshd start<Enter><Wait><Wait>'
],
:ssh_login_timeout => "10000",
:ssh_user => "root",
Expand All @@ -31,7 +33,7 @@
:ssh_host_port => "7222",
:ssh_guest_port => "22",
:sudo_cmd => "cat '%f'|su -",
:shutdown_cmd => "shutdown -p now",
:shutdown_cmd => "init 0",
:postinstall_files => ["postinstall.sh"],
:postinstall_timeout => "15000"
})

0 comments on commit 8e75ff0

Please sign in to comment.