Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Brining funtoo-latest-x86_64t into a workable state #621

Merged
merged 2 commits into from

2 participants

@ngiger

The two commits fix several problems with the funtoo-latest-x86_64 templates.
It took me a few hours to solve the various problem with

  • missing sshd initialization ( Authentication failure Veewee::SshError)
  • shutdown command did not work
  • unable to boot (kernel had no initramfs, replaced real_root by root in grub.cfg)
  • network setup/shared folders did not work as funtoo uses in /etc/init.d/ names like netif.lo, whereas gentoo uses net.lo. Problem occured in lib/vagrant/guest/gentoo.rb
  • disk size too low (I needed to create a 4 GB big database)
  • I also upgraded to a newer version of funtoo.

Thanks for you work! I really like veewee.

ngiger added some commits
@ngiger ngiger * Increases disk size to the usual 40GB
* Uses a newer gentoo minimal ISO images
* Correctly initializes network interfaces and sshd to allow logging
* Fixes shutdown
8e75ff0
@ngiger ngiger * Verifies and displays created partitions
* Patches grub.cfg as we created a kernel without an initramfs
* Creates a logical link /etc/init.d/net.lo -> netif.lo. This
  allows lib/vagrant/guest/gentoo.rb to create the network interfaces
567440e
@jedi4ever jedi4ever merged commit 6f8ec48 into jedi4ever:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 29, 2013
  1. @ngiger

    * Increases disk size to the usual 40GB

    ngiger authored
    * Uses a newer gentoo minimal ISO images
    * Correctly initializes network interfaces and sshd to allow logging
    * Fixes shutdown
  2. @ngiger

    * Verifies and displays created partitions

    ngiger authored
    * Patches grub.cfg as we created a kernel without an initramfs
    * Creates a logical link /etc/init.d/net.lo -> netif.lo. This
      allows lib/vagrant/guest/gentoo.rb to create the network interfaces
This page is out of date. Refresh to see the latest.
View
14 templates/funtoo-latest-x86_64/definition.rb
@@ -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 => [
@@ -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",
@@ -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"
})
View
16 templates/funtoo-latest-x86_64/postinstall.sh
@@ -49,6 +49,10 @@ swapon /dev/sda3
mkfs.ext2 /dev/sda1
mkfs.ext4 /dev/sda4
+# verify to be sure that partitions are okay
+sgdisk -v /dev/sda
+sgdisk -p /dev/sda
+
# this is our chroot directory for the installation
chroot=/mnt/gentoo
@@ -358,8 +362,20 @@ source /etc/profile && \
env-update && \
grub-install --no-floppy /dev/sda && \
boot-update
+# Patching the boot configuration as we have no initramfs
+cd /boot/grub
+mv grub.cfg grub.bkp
+awk '{sub(/real_root/,"root")};1' grub.bkp > grub.cfg
+cat grub.cfg
DATAEOF
+### patch to make lib/vagrant/guest/gentoo.rb happy
+chroot "$chroot" /bin/bash <<DATAEOF
+cd /etc/init.d
+ln -s net.lo netif.lo
+DATAEOF
+
+
### CLEANUP TO SHRINK THE BOX ###
# a fresh install probably shouldn't nag about news
Something went wrong with that request. Please try again.