Permalink
Browse files

gentoo-i686 - always get latest stage3, bump kernel version, use emer…

…ge-webrsync for first sync, workaround for autofs bug
  • Loading branch information...
davidmmiller committed Apr 8, 2013
1 parent 6deef6f commit 58092618c37f6005a0ce8ce227b30664148e8836
@@ -80,4 +80,5 @@ env-update && source /etc/profile
DATAEOF
# update portage tree to most current state
chroot "$chroot" emerge --sync
# emerge-webrsync is recommended by Gentoo for first sync
chroot "$chroot" emerge-webrsync
@@ -5,9 +5,9 @@
template_build = /^(([^#].*)\/(.*))/.match(template_build)
Veewee::Definition.declare({
:cpu_count => 1,
:memory_size => '360',
:disk_size => '40140',
:cpu_count => 2,
:memory_size => '1024',
:disk_size => '20280',
:disk_format => 'VDI',
:hostiocache => 'off',
:os_type_id => 'Gentoo',
@@ -18,9 +18,9 @@
:boot_cmd_sequence => [
'<Wait>' * 2,
'gentoo-nofb<Enter>',
'<Wait>' * 10,
'<Wait>' * 30,
'<Enter>',
'<Wait>' * 12,
'<Wait>' * 20,
'<Wait><Wait>ifconfig -a<Enter>',
'passwd<Enter><Wait><Wait>',
'vagrant<Enter><Wait>',
@@ -37,16 +37,16 @@
:ssh_host_port => '7222',
:ssh_guest_port => '22',
:sudo_cmd => "cat '%f'|su -",
:shutdown_cmd => 'shutdown -h now',
:shutdown_cmd => 'shutdown -hP now',
:postinstall_files => [
'settings.sh',
'base.sh',
'kernel.sh',
'virtualbox.sh',
'vagrant.sh',
#Choose your ruby way : source or portage?
#'ruby_portage.sh',
'ruby_source.sh',
'ruby_portage.sh',
#'ruby_source.sh',
'chef.sh',
'puppet.sh',
'cron.sh',
@@ -26,6 +26,7 @@ CONFIG_EXT4_FS=y
CONFIG_EXT4_USE_FOR_EXT23=y
CONFIG_EXT4_FS_XATTR=y
CONFIG_SMP=y
CONFIG_SCHED_SMT=y
CONFIG_MODULE_UNLOAD=y
CONFIG_DMA_SHARED_BUFFER=y
# for VirtualBox (http://en.gentoo-wiki.com/wiki/Virtualbox_Guest)
@@ -53,7 +54,7 @@ CONFIG_NFS_V2=m
CONFIG_NFS_V3=m
CONFIG_NFS_V4=m
CONFIG_NFSD=m
CONFIG_CIFS=y
CONFIG_CIFS=m
CONFIG_CIFS_UPCAL=y
CONFIG_CIFS_XATTR=y
CONFIG_CIFS_DFS_UPCALL=y
@@ -105,4 +106,4 @@ CONFIG_DEVTMPFS_MOUNT=y
EOF
# build and install kernel, using the config created above
genkernel --install --symlink --oldconfig --bootloader=grub all
DATAEOF
DATAEOF
@@ -2,4 +2,10 @@
source /etc/profile
# install nfs utilities and automount support
chroot "$chroot" emerge net-fs/nfs-utils net-fs/autofs
chroot "$chroot" emerge net-fs/nfs-utils
# Gentoo has sandbox issues with latest autofs builds
# https://bugs.gentoo.org/show_bug.cgi?id=453778
chroot "$chroot" /bin/bash <<DATAEOF
FEATURES="-sandbox" emerge net-fs/autofs
DATAEOF
@@ -2,15 +2,19 @@
cat <<DATAEOF > "/etc/profile.d/veewee.sh"
# stage 3 filename and full url
export stage3file="stage3-i686-20121213.tar.bz2"
export stage3url="http://distfiles.gentoo.org/releases/x86/current-stage3/\$stage3file"
# retrieve from Gentoo current autobuild txt - these change regularly
build_arch="x86"
build_proc="i686"
stage3current=\`curl -s http://distfiles.gentoo.org/releases/\${build_arch}/autobuilds/latest-stage3-\${build_proc}.txt|grep -v "^#"\`
export stage3url="http://distfiles.gentoo.org/releases/\${build_arch}/autobuilds/\${stage3current}"
export stage3file=\${stage3current##*/}
# these two (configuring the compiler) and the stage3 url can be changed to build a 32 bit system
export accept_keywords="x86"
export chost="i686-pc-linux-gnu"
# kernel version to use
export kernel_version="3.5.7"
export kernel_version="3.7.10"
# timezone (as a subdirectory of /usr/share/zoneinfo)
export timezone="UTC"
@@ -33,4 +37,4 @@ export password_vagrant=vagrant
# the public key for vagrants ssh
export vagrant_ssh_key_url="https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub"
DATAEOF
DATAEOF

0 comments on commit 5809261

Please sign in to comment.