HeSYINUvSBZfxqA-veewee 0.2.0.2 → 0.203.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +53 -26
- data/Rakefile +41 -36
- data/lib/veewee.rb +2 -0
- data/lib/veewee/command.rb +1 -59
- data/lib/veewee/command/basebox.rb +63 -0
- data/lib/veewee/command/basebox_build.rb +32 -0
- data/lib/veewee/command/basebox_define.rb +28 -0
- data/lib/veewee/command/basebox_destroy.rb +22 -0
- data/lib/veewee/command/basebox_export.rb +22 -0
- data/lib/veewee/command/basebox_list.rb +23 -0
- data/lib/veewee/command/basebox_ostypes.rb +23 -0
- data/lib/veewee/command/basebox_templates.rb +23 -0
- data/lib/veewee/command/basebox_undefine.rb +22 -0
- data/lib/veewee/command/basebox_validate.rb +26 -0
- data/lib/veewee/config.rb +1 -2
- data/lib/veewee/export.rb +2 -2
- data/lib/veewee/scancode.rb +1 -1
- data/lib/veewee/session.rb +373 -249
- data/lib/veewee/transaction.rb +2 -11
- data/lib/veewee/version.rb +1 -1
- data/templates/CentOS-4.8-i386/definition.rb +1 -1
- data/templates/CentOS-4.8-i386/postinstall.sh +1 -1
- data/templates/CentOS-5.5-x86_64-netboot/definition.rb +16 -0
- data/templates/CentOS-5.5-x86_64-netboot/ks.cfg +46 -0
- data/templates/CentOS-5.5-x86_64-netboot/postinstall.sh +60 -0
- data/templates/CentOS-5.6-i386-netboot/definition.rb +1 -1
- data/templates/CentOS-5.6-i386-netboot/ks.cfg +2 -2
- data/templates/CentOS-5.6-i386-netboot/postinstall.sh +1 -1
- data/templates/CentOS-5.6-i386/postinstall.sh +1 -1
- data/templates/CentOS-5.6-x86_64-netboot/definition.rb +1 -1
- data/templates/CentOS-5.6-x86_64-netboot/ks.cfg +1 -1
- data/templates/CentOS-5.6-x86_64-netboot/postinstall.sh +3 -2
- data/templates/CentOS-5.7-i386-netboot/definition.rb +16 -0
- data/templates/CentOS-5.7-i386-netboot/ks.cfg +45 -0
- data/templates/CentOS-5.7-i386-netboot/postinstall.sh +53 -0
- data/templates/CentOS-5.7-x86_64-netboot/definition.rb +16 -0
- data/templates/CentOS-5.7-x86_64-netboot/ks.cfg +45 -0
- data/templates/CentOS-5.7-x86_64-netboot/postinstall.sh +60 -0
- data/templates/CentOS-6.0-i386-netboot/ks.cfg +1 -1
- data/templates/CentOS-6.0-i386-netboot/postinstall.sh +1 -1
- data/templates/CentOS-6.0-i386/postinstall.sh +2 -2
- data/templates/CentOS-6.0-x86_64-minimal/definition.rb +17 -0
- data/templates/CentOS-6.0-x86_64-minimal/ks.cfg +37 -0
- data/templates/CentOS-6.0-x86_64-minimal/postinstall.sh +58 -0
- data/templates/CentOS-6.0-x86_64-netboot/ks.cfg +1 -1
- data/templates/CentOS-6.0-x86_64-netboot/postinstall.sh +1 -1
- data/templates/CentOS-6.0-x86_64/postinstall.sh +2 -2
- data/templates/CentOS-6.1-x86_64-minimal/definition.rb +15 -0
- data/templates/CentOS-6.1-x86_64-minimal/ks.cfg +37 -0
- data/templates/CentOS-6.1-x86_64-minimal/postinstall.sh +50 -0
- data/templates/CentOS-6.2-x86_64-minimal/definition.rb +15 -0
- data/templates/CentOS-6.2-x86_64-minimal/ks.cfg +37 -0
- data/templates/CentOS-6.2-x86_64-minimal/postinstall.sh +50 -0
- data/templates/Debian-5.0.8-amd64-netboot/postinstall.sh +1 -1
- data/templates/Debian-5.0.8-i386-netboot/postinstall.sh +1 -1
- data/templates/{Debian-6.0.2-amd64-netboot → Debian-6.0.3-amd64-netboot}/definition.rb +3 -3
- data/templates/Debian-6.0.3-amd64-netboot/postinstall.sh +80 -0
- data/templates/{Debian-6.0.2-amd64-netboot → Debian-6.0.3-amd64-netboot}/preseed.cfg +0 -0
- data/templates/{Debian-6.0.2-i386-netboot → Debian-6.0.3-i386-netboot}/definition.rb +3 -3
- data/templates/{Debian-6.0.2-i386-netboot → Debian-6.0.3-i386-netboot}/postinstall.sh +2 -2
- data/templates/{Debian-6.0.2-i386-netboot → Debian-6.0.3-i386-netboot}/preseed.cfg +0 -0
- data/templates/Fedora-14-amd64-netboot/definition.rb +1 -1
- data/templates/Fedora-14-amd64-netboot/postinstall.sh +1 -1
- data/templates/Fedora-14-amd64/definition.rb +1 -1
- data/templates/Fedora-14-amd64/postinstall.sh +1 -1
- data/templates/Fedora-14-i386-netboot/postinstall.sh +1 -1
- data/templates/Fedora-14-i386/postinstall.sh +1 -1
- data/templates/Fedora-15-x86_64-netboot/definition.rb +29 -0
- data/templates/Fedora-15-x86_64-netboot/ks.cfg +64 -0
- data/templates/Fedora-15-x86_64-netboot/postinstall.sh +33 -0
- data/templates/Fedora-15-x86_64/definition.rb +17 -0
- data/templates/Fedora-15-x86_64/ks.cfg +64 -0
- data/templates/Fedora-15-x86_64/postinstall.sh +33 -0
- data/templates/Fedora-16-i386/definition.rb +17 -0
- data/templates/Fedora-16-i386/ks.cfg +72 -0
- data/templates/Fedora-16-i386/postinstall.sh +35 -0
- data/templates/Fedora-16-x86_64/definition.rb +17 -0
- data/templates/Fedora-16-x86_64/ks.cfg +72 -0
- data/templates/Fedora-16-x86_64/postinstall.sh +35 -0
- data/templates/SLES-11-SP1-DVD-i586-GM/autoinst_de.xml +1127 -0
- data/templates/SLES-11-SP1-DVD-i586-GM/autoinst_en.xml +1127 -0
- data/templates/SLES-11-SP1-DVD-i586-GM/definition.rb +37 -0
- data/templates/SLES-11-SP1-DVD-i586-GM/postinstall.sh +43 -0
- data/templates/SLES-11-SP1-DVD-x86_64-GM/autoinst_de.xml +1171 -0
- data/templates/SLES-11-SP1-DVD-x86_64-GM/autoinst_en.xml +1171 -0
- data/templates/SLES-11-SP1-DVD-x86_64-GM/definition.rb +37 -0
- data/templates/SLES-11-SP1-DVD-x86_64-GM/postinstall.sh +43 -0
- data/templates/archlinux-i386-netboot/aif.cfg +28 -0
- data/templates/archlinux-i386-netboot/definition.rb +26 -0
- data/templates/archlinux-i386-netboot/postinstall.sh +75 -0
- data/templates/archlinux-i386-netboot/postinstall2.sh +30 -0
- data/templates/archlinux-i386/postinstall.sh +12 -1
- data/templates/archlinux-x86_64-netboot/aif.cfg +28 -0
- data/templates/archlinux-x86_64-netboot/definition.rb +26 -0
- data/templates/archlinux-x86_64-netboot/postinstall.sh +75 -0
- data/templates/archlinux-x86_64-netboot/postinstall2.sh +30 -0
- data/templates/archlinux-x86_64/aif.cfg +1 -1
- data/templates/archlinux-x86_64/definition.rb +1 -1
- data/templates/archlinux-x86_64/postinstall.sh +16 -21
- data/templates/archlinux-x86_64/postinstall2.sh +38 -0
- data/templates/freebsd-8.2-pcbsd-i386-netboot/definition.rb +2 -4
- data/templates/freebsd-8.2-pcbsd-i386-netboot/postinstall.sh +1 -1
- data/templates/freebsd-8.2-pcbsd-i386/definition.rb +3 -2
- data/templates/freebsd-8.2-pcbsd-i386/postinstall.sh +1 -1
- data/templates/funtoo-latest-generic_64-stable/definition.rb +34 -0
- data/templates/funtoo-latest-generic_64-stable/postinstall.sh +177 -0
- data/templates/funtoo-latest-generic_64-stable/postinstall2.sh +83 -0
- data/templates/gentoo-latest-i386-experimental/definition.rb +9 -9
- data/templates/gentoo-latest-i386-experimental/postinstall.sh +1 -1
- data/templates/gentoo-latest-x86_64-experimental/definition.rb +34 -0
- data/templates/gentoo-latest-x86_64-experimental/postinstall.sh +214 -0
- data/templates/openSUSE-11.4-DVD-i586/autoinst_de.xml +1284 -0
- data/templates/openSUSE-11.4-DVD-i586/autoinst_en.xml +1284 -0
- data/templates/openSUSE-11.4-DVD-i586/definition.rb +28 -0
- data/templates/openSUSE-11.4-DVD-i586/postinstall.sh +43 -0
- data/templates/openSUSE-11.4-DVD-x86_64/autoinst_de.xml +1459 -0
- data/templates/openSUSE-11.4-DVD-x86_64/autoinst_en.xml +1459 -0
- data/templates/openSUSE-11.4-DVD-x86_64/definition.rb +28 -0
- data/templates/openSUSE-11.4-DVD-x86_64/postinstall.sh +43 -0
- data/templates/openSUSE-11.4-NET-i586/autoinst_de.xml +1278 -0
- data/templates/openSUSE-11.4-NET-i586/autoinst_en.xml +1278 -0
- data/templates/openSUSE-11.4-NET-i586/definition.rb +28 -0
- data/templates/openSUSE-11.4-NET-i586/postinstall.sh +43 -0
- data/templates/openSUSE-11.4-NET-x86_64/autoinst_de.xml +1453 -0
- data/templates/openSUSE-11.4-NET-x86_64/autoinst_en.xml +1453 -0
- data/templates/openSUSE-11.4-NET-x86_64/definition.rb +28 -0
- data/templates/openSUSE-11.4-NET-x86_64/postinstall.sh +43 -0
- data/templates/openSUSE-12.1-DVD+NET-i586/autoinst_de.xml +1483 -0
- data/templates/openSUSE-12.1-DVD+NET-i586/autoinst_en.xml +1483 -0
- data/templates/openSUSE-12.1-DVD+NET-i586/definition.rb +44 -0
- data/templates/openSUSE-12.1-DVD+NET-i586/postinstall.sh +43 -0
- data/templates/openSUSE-12.1-DVD+NET-x86_64/autoinst_de.xml +1727 -0
- data/templates/openSUSE-12.1-DVD+NET-x86_64/autoinst_en.xml +1727 -0
- data/templates/openSUSE-12.1-DVD+NET-x86_64/definition.rb +44 -0
- data/templates/openSUSE-12.1-DVD+NET-x86_64/postinstall.sh +43 -0
- data/templates/openbsd50_amd64/README +28 -0
- data/templates/openbsd50_amd64/definition.rb +84 -0
- data/templates/openbsd50_amd64/postinstall.sh +81 -0
- data/templates/openbsd50_i386/.definition.rb.swp +0 -0
- data/templates/openbsd50_i386/README +28 -0
- data/templates/openbsd50_i386/definition.rb +84 -0
- data/templates/openbsd50_i386/postinstall.sh +80 -0
- data/templates/openindiana-148-ai-x86/definition.rb +1 -1
- data/templates/openindiana-148-ai-x86/postinstall.sh +1 -1
- data/templates/opensuse-11.4-i386-experimental/postinstall.sh +1 -1
- data/templates/scientificlinux-6.1-i386-netboot/definition.rb +16 -0
- data/templates/scientificlinux-6.1-i386-netboot/ks.cfg +53 -0
- data/templates/scientificlinux-6.1-i386-netboot/postinstall.sh +30 -0
- data/templates/scientificlinux-6.1-x86_64-netboot/definition.rb +16 -0
- data/templates/scientificlinux-6.1-x86_64-netboot/ks.cfg +53 -0
- data/templates/scientificlinux-6.1-x86_64-netboot/postinstall.sh +30 -0
- data/templates/solaris-11-express-i386/definition.rb +1 -1
- data/templates/solaris-11-express-i386/postinstall.sh +1 -1
- data/templates/ubuntu-10.04.2-amd64-netboot/postinstall.sh +1 -1
- data/templates/ubuntu-10.04.2-server-i386-netboot/postinstall.sh +1 -1
- data/templates/{ubuntu-10.04.2-server-amd64-alt → ubuntu-10.04.3-server-amd64-alt}/definition.rb +6 -6
- data/templates/{ubuntu-10.04.2-server-amd64-alt → ubuntu-10.04.3-server-amd64-alt}/postinstall.sh +1 -1
- data/templates/{ubuntu-10.04.2-server-amd64-alt → ubuntu-10.04.3-server-amd64-alt}/preseed.cfg +0 -0
- data/templates/{ubuntu-10.04.2-server-amd64 → ubuntu-10.04.3-server-amd64}/definition.rb +3 -6
- data/templates/{ubuntu-10.04.2-server-amd64 → ubuntu-10.04.3-server-amd64}/postinstall.sh +1 -1
- data/templates/{ubuntu-10.04.2-server-amd64 → ubuntu-10.04.3-server-amd64}/preseed.cfg +0 -0
- data/templates/{ubuntu-10.04.2-server-i386 → ubuntu-10.04.3-server-i386}/definition.rb +4 -4
- data/templates/{ubuntu-10.04.2-server-i386 → ubuntu-10.04.3-server-i386}/postinstall.sh +1 -1
- data/templates/{ubuntu-10.04.2-server-i386 → ubuntu-10.04.3-server-i386}/preseed.cfg +0 -0
- data/templates/ubuntu-10.10-server-amd64-netboot/postinstall.sh +1 -1
- data/templates/ubuntu-10.10-server-amd64/postinstall.sh +1 -1
- data/templates/ubuntu-10.10-server-i386-netboot/postinstall.sh +1 -1
- data/templates/ubuntu-10.10-server-i386/postinstall.sh +1 -1
- data/templates/ubuntu-11.04-server-amd64/postinstall.sh +7 -1
- data/templates/ubuntu-11.04-server-i386/definition.rb +1 -1
- data/templates/ubuntu-11.04-server-i386/postinstall.sh +1 -1
- data/templates/ubuntu-11.10-server-amd64-ishaya/definition.rb +24 -0
- data/templates/{Debian-6.0.2-amd64-netboot → ubuntu-11.10-server-amd64-ishaya}/postinstall.sh +42 -23
- data/templates/ubuntu-11.10-server-amd64-ishaya/preseed.cfg +87 -0
- data/templates/ubuntu-11.10-server-amd64-ruby192/definition.rb +24 -0
- data/templates/ubuntu-11.10-server-amd64-ruby192/postinstall.sh +90 -0
- data/templates/ubuntu-11.10-server-amd64-ruby192/preseed.cfg +87 -0
- data/templates/ubuntu-11.10-server-amd64/definition.rb +35 -0
- data/templates/ubuntu-11.10-server-amd64/postinstall.sh +88 -0
- data/templates/ubuntu-11.10-server-amd64/preseed.cfg +87 -0
- data/templates/ubuntu-11.10-server-i386/definition.rb +35 -0
- data/templates/ubuntu-11.10-server-i386/postinstall.sh +88 -0
- data/templates/ubuntu-11.10-server-i386/preseed.cfg +87 -0
- data/templates/ubuntu-8.04.4-server-amd64/definition.rb +1 -0
- data/templates/ubuntu-8.04.4-server-amd64/postinstall.sh +8 -7
- data/templates/ubuntu-8.04.4-server-amd64/preseed.cfg +0 -1
- data/templates/ubuntu-8.04.4-server-i386/definition.rb +1 -1
- data/templates/ubuntu-8.04.4-server-i386/postinstall.sh +25 -3
- data/templates/windows-2008R1-serverstandard-amd64/Autounattend.xml +146 -0
- data/templates/windows-2008R1-serverstandard-amd64/README.md +134 -0
- data/templates/windows-2008R1-serverstandard-amd64/cygwin-setup.exe +0 -0
- data/templates/windows-2008R1-serverstandard-amd64/definition.rb +114 -0
- data/templates/windows-2008R1-serverstandard-amd64/install-cygwin-sshd.bat +40 -0
- data/templates/windows-2008R1-serverstandard-amd64/install-guest-additions.bat +5 -0
- data/templates/windows-2008R1-serverstandard-amd64/install-winrm.bat +14 -0
- data/templates/windows-2008R1-serverstandard-amd64/oracle-cert.cer +0 -0
- data/templates/windows-2008R1-serverstandard-amd64/postinstall.sh +74 -0
- data/templates/windows-2008R1-serverstandard-amd64/sudo +2 -0
- data/templates/windows-2008R1-serverstandard-amd64/winrm.rb +8 -0
- data/templates/windows-2008R2-amd64/cygwin-setup.exe +0 -0
- data/templates/windows-2008R2-amd64/install-winrm.bat +2 -0
- data/templates/windows-2008R2-amd64/postinstall.sh +1 -1
- data/templates/windows-2008R2-serverstandard-amd64/Autounattend.xml +147 -0
- data/templates/windows-2008R2-serverstandard-amd64/README.md +142 -0
- data/templates/windows-2008R2-serverstandard-amd64/definition.rb +44 -0
- data/templates/windows-2008R2-serverstandard-amd64/install-cygwin-sshd.bat +41 -0
- data/templates/windows-2008R2-serverstandard-amd64/install-winrm.bat +11 -0
- data/templates/windows-2008R2-serverstandard-amd64/oracle-cert.cer +0 -0
- data/templates/windows-2008R2-serverstandard-amd64/postinstall.sh +74 -0
- data/templates/windows-7-enterprise-amd64/Autounattend.xml +149 -0
- data/templates/windows-7-enterprise-amd64/README.md +52 -0
- data/templates/windows-7-enterprise-amd64/definition.rb +39 -0
- data/templates/windows-7-enterprise-amd64/install-cygwin-sshd.bat +40 -0
- data/templates/windows-7-enterprise-amd64/install-winrm.bat +14 -0
- data/templates/windows-7-enterprise-amd64/oracle-cert.cer +0 -0
- data/templates/windows-7-enterprise-amd64/postinstall.sh +74 -0
- data/templates/windows-7-enterprise-i386/Autounattend.xml +151 -0
- data/templates/windows-7-enterprise-i386/README.md +169 -0
- data/templates/windows-7-enterprise-i386/definition.rb +40 -0
- data/templates/windows-7-enterprise-i386/install-cygwin-sshd.bat +40 -0
- data/templates/windows-7-enterprise-i386/install-winrm.bat +14 -0
- data/templates/windows-7-enterprise-i386/oracle-cert.cer +0 -0
- data/templates/windows-7-enterprise-i386/postinstall.sh +74 -0
- data/templates/windows-7-premium-amd64/Autounattend.xml +152 -0
- data/templates/windows-7-premium-amd64/README.md +171 -0
- data/templates/windows-7-premium-amd64/definition.rb +38 -0
- data/templates/windows-7-premium-amd64/install-chefclient.bat +44 -0
- data/templates/windows-7-premium-amd64/install-winrm.bat +11 -0
- data/templates/windows-7-premium-amd64/oracle-cert.cer +0 -0
- data/templates/windows-7-premium-amd64/postinstall.sh +124 -0
- data/templates/windows-7-premium-amd64/winrm.rb +8 -0
- data/templates/windows-7-professional-amd64/Autounattend.xml +152 -0
- data/templates/windows-7-professional-amd64/README.md +171 -0
- data/templates/windows-7-professional-amd64/definition.rb +41 -0
- data/templates/windows-7-professional-amd64/install-cygwin-sshd.bat +40 -0
- data/templates/windows-7-professional-amd64/install-winrm.bat +14 -0
- data/templates/windows-7-professional-amd64/oracle-cert.cer +0 -0
- data/templates/windows-7-professional-amd64/postinstall.sh +74 -0
- data/templates/windows-7-ultimate-amd64/Autounattend.xml +152 -0
- data/templates/windows-7-ultimate-amd64/README.md +89 -0
- data/templates/windows-7-ultimate-amd64/definition.rb +41 -0
- data/templates/windows-7-ultimate-amd64/install-cygwin-sshd.bat +40 -0
- data/templates/windows-7-ultimate-amd64/install-winrm.bat +14 -0
- data/templates/windows-7-ultimate-amd64/oracle-cert.cer +0 -0
- data/templates/windows-7-ultimate-amd64/postinstall.sh +74 -0
- data/templates/windows-7sp1-ultimate-amd64/Autounattend.xml +152 -0
- data/templates/windows-7sp1-ultimate-amd64/README.md +89 -0
- data/templates/windows-7sp1-ultimate-amd64/definition.rb +42 -0
- data/templates/windows-7sp1-ultimate-amd64/install-cygwin-sshd.bat +40 -0
- data/templates/windows-7sp1-ultimate-amd64/install-winrm.bat +14 -0
- data/templates/windows-7sp1-ultimate-amd64/oracle-cert.cer +0 -0
- data/templates/windows-7sp1-ultimate-amd64/postinstall.sh +74 -0
- data/templates/windows-8-preview-dev-amd64/Autounattend.xml +140 -0
- data/templates/windows-8-preview-dev-amd64/README.md +134 -0
- data/templates/windows-8-preview-dev-amd64/cygwin-setup.exe +0 -0
- data/templates/windows-8-preview-dev-amd64/definition.rb +114 -0
- data/templates/windows-8-preview-dev-amd64/install-cygwin-sshd.bat +38 -0
- data/templates/windows-8-preview-dev-amd64/install-winrm.bat +11 -0
- data/templates/windows-8-preview-dev-amd64/oracle-cert.cer +0 -0
- data/templates/windows-8-preview-dev-amd64/postinstall.sh +122 -0
- data/templates/windows-8-preview-dev-amd64/winrm.rb +8 -0
- data/validation/features/steps/ssh_steps.rb +1 -1
- data/validation/vagrant.feature +35 -35
- data/veewee.gemspec +9 -8
- metadata +247 -82
- data/.gitignore +0 -15
- data/Gemfile +0 -3
- data/Gemfile.lock +0 -69
- data/HeSYINUvSBZfxqA-veewee.gemspec +0 -33
- data/vendor/cache/Platform-0.4.0.gem +0 -0
- data/vendor/cache/archive-tar-minitar-0.5.2.gem +0 -0
- data/vendor/cache/builder-3.0.0.gem +0 -0
- data/vendor/cache/cucumber-1.0.2.gem +0 -0
- data/vendor/cache/diff-lcs-1.1.2.gem +0 -0
- data/vendor/cache/erubis-2.7.0.gem +0 -0
- data/vendor/cache/ffi-1.0.9.gem +0 -0
- data/vendor/cache/gherkin-2.4.6.gem +0 -0
- data/vendor/cache/highline-1.6.2.gem +0 -0
- data/vendor/cache/i18n-0.5.0.gem +0 -0
- data/vendor/cache/json-1.5.3.gem +0 -0
- data/vendor/cache/net-scp-1.0.4.gem +0 -0
- data/vendor/cache/net-ssh-2.1.4.gem +0 -0
- data/vendor/cache/open4-1.1.0.gem +0 -0
- data/vendor/cache/popen4-0.1.2.gem +0 -0
- data/vendor/cache/progressbar-0.9.1.gem +0 -0
- data/vendor/cache/rspec-2.5.0.gem +0 -0
- data/vendor/cache/rspec-core-2.5.2.gem +0 -0
- data/vendor/cache/rspec-expectations-2.5.0.gem +0 -0
- data/vendor/cache/rspec-mocks-2.5.0.gem +0 -0
- data/vendor/cache/term-ansicolor-1.0.6.gem +0 -0
- data/vendor/cache/thor-0.14.6.gem +0 -0
- data/vendor/cache/vagrant-0.8.2.gem +0 -0
- data/vendor/cache/virtualbox-0.9.1.gem +0 -0
@@ -0,0 +1,37 @@
|
|
1
|
+
Veewee::Session.declare({
|
2
|
+
:os_type_id => 'OpenSUSE_64',
|
3
|
+
:cpu_count => '1',
|
4
|
+
:memory_size => '1024',
|
5
|
+
:disk_size => '20480',
|
6
|
+
:disk_format => 'VDI',
|
7
|
+
:hostiocache => 'off',
|
8
|
+
:iso_file => "SLES-11-SP1-DVD-x86_64-GM-DVD1.iso",
|
9
|
+
:iso_src => "",
|
10
|
+
:iso_md5 => "d2e10420f3689faa49a004b60fb396b7",
|
11
|
+
:iso_download_timeout => "1000",
|
12
|
+
:boot_wait => "10",
|
13
|
+
:boot_cmd_sequence => [
|
14
|
+
'<Esc><Enter>',
|
15
|
+
'linux netdevice=eth0 netsetup=dhcp install=cd:/',
|
16
|
+
' lang=en_US autoyast=http://%IP%:%PORT%/autoinst_en.xml',
|
17
|
+
### disable prev line and enable next line to install with german settings
|
18
|
+
#' lang=de_DE autoyast=http://%IP%:%PORT%/autoinst_de.xml',
|
19
|
+
' textmode=1',
|
20
|
+
'<Enter>'
|
21
|
+
],
|
22
|
+
:kickstart_port => "7122",
|
23
|
+
:kickstart_timeout => "10000",
|
24
|
+
:kickstart_file => ["autoinst_en.xml", "autoinst_en.xml"],
|
25
|
+
### disable prev line and enable next line to install with german settings
|
26
|
+
#:kickstart_file => ["autoinst_de.xml", "autoinst_de.xml"],
|
27
|
+
:ssh_login_timeout => "10000",
|
28
|
+
:ssh_user => "vagrant",
|
29
|
+
:ssh_password => "vagrant",
|
30
|
+
:ssh_key => "",
|
31
|
+
:ssh_host_port => "7222",
|
32
|
+
:ssh_guest_port => "22",
|
33
|
+
:sudo_cmd => "echo '%p'|sudo -S sh '%f'",
|
34
|
+
:shutdown_cmd => "shutdown -P now",
|
35
|
+
:postinstall_files => ["postinstall.sh"],
|
36
|
+
:postinstall_timeout => "10000"
|
37
|
+
})
|
@@ -0,0 +1,43 @@
|
|
1
|
+
#
|
2
|
+
# postinstall.sh
|
3
|
+
#
|
4
|
+
|
5
|
+
date > /etc/vagrant_box_build_time
|
6
|
+
|
7
|
+
# install vagrant key
|
8
|
+
echo -e "\ninstall vagrant key ..."
|
9
|
+
mkdir -m 0700 /home/vagrant/.ssh
|
10
|
+
cd /home/vagrant/.ssh
|
11
|
+
wget --no-check-certificate -O authorized_keys https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub
|
12
|
+
chmod 0600 /home/vagrant/.ssh/authorized_keys
|
13
|
+
chown -R vagrant.users /home/vagrant/.ssh
|
14
|
+
|
15
|
+
# update sudoers
|
16
|
+
echo -e "\nupdate sudoers ..."
|
17
|
+
echo -e "\n# added by veewee/postinstall.sh" >> /etc/sudoers
|
18
|
+
echo -e "vagrant ALL=(ALL) NOPASSWD: ALL\n" >> /etc/sudoers
|
19
|
+
|
20
|
+
# speed-up remote logins
|
21
|
+
echo -e "\nspeed-up remote logins ..."
|
22
|
+
echo -e "\n# added by veewee/postinstall.sh" >> /etc/ssh/sshd_config
|
23
|
+
echo -e "UseDNS no\n" >> /etc/ssh/sshd_config
|
24
|
+
|
25
|
+
# install chef and puppet
|
26
|
+
echo -e "\ninstall chef and puppet ..."
|
27
|
+
gem install chef --no-ri --no-rdoc
|
28
|
+
gem install puppet --no-ri --no-rdoc
|
29
|
+
|
30
|
+
# install the virtualbox guest additions
|
31
|
+
echo -e "\ninstall the virtualbox guest additions ..."
|
32
|
+
zypper --non-interactive remove `rpm -qa virtualbox-guest-*` >/dev/null 2>&1
|
33
|
+
VBOX_VERSION=$(cat /home/vagrant/.vbox_version)
|
34
|
+
cd /tmp
|
35
|
+
wget http://download.virtualbox.org/virtualbox/$VBOX_VERSION/VBoxGuestAdditions_$VBOX_VERSION.iso
|
36
|
+
#wget http://192.168.178.10/VBoxGuestAdditions_$VBOX_VERSION.iso
|
37
|
+
mount -o loop VBoxGuestAdditions_$VBOX_VERSION.iso /mnt
|
38
|
+
sh /mnt/VBoxLinuxAdditions.run
|
39
|
+
umount /mnt
|
40
|
+
rm -f VBoxGuestAdditions_$VBOX_VERSION.iso
|
41
|
+
|
42
|
+
echo -e "\nall done.\n"
|
43
|
+
exit
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Archlinux AIF config file
|
2
|
+
# created by Dave Simons
|
3
|
+
# 21/09/2011
|
4
|
+
|
5
|
+
# install source
|
6
|
+
SOURCE=net
|
7
|
+
if [ -d /repo/core ]; then
|
8
|
+
TARGET_REPOSITORIES=(core 'file:///repo/$repo/$arch')
|
9
|
+
else
|
10
|
+
MIRROR='http://archlinux.mirror.kangaroot.net/$repo/os/$arch'
|
11
|
+
TARGET_REPOSITORIES=(core $var_MIRRORLIST extra $var_MIRRORLIST community $var_MIRRORLIST)
|
12
|
+
fi
|
13
|
+
|
14
|
+
# time/date
|
15
|
+
HARDWARECLOCK=localtime
|
16
|
+
TIMEZONE=Europe/Brussels
|
17
|
+
|
18
|
+
# packages to install
|
19
|
+
TARGET_GROUPS=base
|
20
|
+
TARGET_PACKAGES='sudo openssh vim libyaml ruby linux-headers make gcc glibc git perl net-tools'
|
21
|
+
TARGET_PACKAGES_EXCLUDE='nano emacs wpa_supplicant xfsprogs reiserfsprogs pcmciautils mdadm jfsutils cryptsetup lvm2'
|
22
|
+
|
23
|
+
# hard drive setup
|
24
|
+
GRUB_DEVICE='/dev/sda'
|
25
|
+
PARTITIONS='/dev/sda 100:ext2:+ 512:swap *:ext4'
|
26
|
+
BLOCKDATA='/dev/sda1 raw no_label ext2;yes;/boot;target;no_opts;no_label;no_params
|
27
|
+
/dev/sda2 raw no_label swap;yes;no_mountpoint;target;no_opts;no_label;no_params
|
28
|
+
/dev/sda3 raw no_label ext4;yes;/;target;no_opts;no_label;no_params'
|
@@ -0,0 +1,26 @@
|
|
1
|
+
Veewee::Session.declare({
|
2
|
+
:cpu_count => '1', :memory_size=> '256',
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI',:hostiocache => 'off',
|
4
|
+
:os_type_id => 'ArchLinux',
|
5
|
+
:iso_file => "archlinux-2011.08.19-netinstall-i686.iso",
|
6
|
+
:iso_src => "http://archlinux.mirror.kangaroot.net/iso/2011.08.19/archlinux-2011.08.19-netinstall-i686.iso",
|
7
|
+
:iso_md5 => "c3f7e10d040eac1da0efe68fb2f64d5b",
|
8
|
+
:iso_download_timeout => "1000",
|
9
|
+
:boot_wait => "5", :boot_cmd_sequence => [
|
10
|
+
'<Enter>',
|
11
|
+
'<Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait>',
|
12
|
+
'<Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait>',
|
13
|
+
'dhcpcd eth0<Enter><Wait><Wait><Wait><Wait>',
|
14
|
+
'passwd<Enter>',
|
15
|
+
'vagrant<Enter>',
|
16
|
+
'vagrant<Enter>',
|
17
|
+
'/etc/rc.d/sshd start<Enter><Wait>',
|
18
|
+
'sleep 3 && wget 10.0.2.2:7122/aif.cfg<Enter>',
|
19
|
+
],
|
20
|
+
:kickstart_port => "7122", :kickstart_timeout => "10000", :kickstart_file => "aif.cfg",
|
21
|
+
:ssh_login_timeout => "10000", :ssh_user => "root", :ssh_password => "vagrant", :ssh_key => "",
|
22
|
+
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
23
|
+
:sudo_cmd => "sh '%f'",
|
24
|
+
:shutdown_cmd => "shutdown -h now",
|
25
|
+
:postinstall_files => [ "postinstall.sh", "postinstall2.sh"], :postinstall_timeout => "10000"
|
26
|
+
})
|
@@ -0,0 +1,75 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
# var to determine package source
|
4
|
+
PKGSRC=net
|
5
|
+
|
6
|
+
date > /etc/vagrant_box_build_time
|
7
|
+
|
8
|
+
# launch automated install
|
9
|
+
su -c 'aif -p automatic -c aif.cfg'
|
10
|
+
|
11
|
+
# copy over the vbox version file
|
12
|
+
/bin/cp -f /root/.vbox_version /mnt/root/.vbox_version
|
13
|
+
|
14
|
+
# chroot into the new system
|
15
|
+
mount -o bind /dev /mnt/dev
|
16
|
+
mount -o bind /sys /mnt/sys
|
17
|
+
mount -t proc none /mnt/proc
|
18
|
+
chroot /mnt <<ENDCHROOT
|
19
|
+
|
20
|
+
# make sure network is up and a nameserver is available
|
21
|
+
dhcpcd eth0
|
22
|
+
|
23
|
+
# sudo setup
|
24
|
+
# note: do not use tabs here, it autocompletes and borks the sudoers file
|
25
|
+
cat <<EOF > /etc/sudoers
|
26
|
+
root ALL=(ALL) ALL
|
27
|
+
%wheel ALL=(ALL) NOPASSWD: ALL
|
28
|
+
EOF
|
29
|
+
|
30
|
+
# set up user accounts
|
31
|
+
passwd<<EOF
|
32
|
+
vagrant
|
33
|
+
vagrant
|
34
|
+
EOF
|
35
|
+
useradd -m -G wheel -r vagrant
|
36
|
+
passwd -d vagrant
|
37
|
+
passwd vagrant<<EOF
|
38
|
+
vagrant
|
39
|
+
vagrant
|
40
|
+
EOF
|
41
|
+
|
42
|
+
# create puppet group
|
43
|
+
groupadd puppet
|
44
|
+
|
45
|
+
# make sure sshd starts
|
46
|
+
sed -i 's:^DAEMONS\(.*\))$:DAEMONS\1 sshd):' /etc/rc.conf
|
47
|
+
|
48
|
+
# install mitchellh's ssh key
|
49
|
+
mkdir /home/vagrant/.ssh
|
50
|
+
chmod 700 /home/vagrant/.ssh
|
51
|
+
wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O /home/vagrant/.ssh/authorized_keys
|
52
|
+
chmod 600 /home/vagrant/.ssh/authorized_keys
|
53
|
+
chown -R vagrant /home/vagrant/.ssh
|
54
|
+
|
55
|
+
# choose a mirror
|
56
|
+
sed -i 's/^#\(.*leaseweb.*\)/\1/' /etc/pacman.d/mirrorlist
|
57
|
+
|
58
|
+
# install some packages
|
59
|
+
gem install --no-ri --no-rdoc chef facter
|
60
|
+
cd /tmp
|
61
|
+
git clone https://github.com/puppetlabs/puppet.git
|
62
|
+
cd puppet
|
63
|
+
ruby install.rb --bindir=/usr/bin --sbindir=/sbin 2>/dev/null
|
64
|
+
|
65
|
+
# set up networking
|
66
|
+
[[ $PKGSRC == 'net' ]] && sed -i 's/^\(interface=*\)/\1eth0/' /etc/rc.conf
|
67
|
+
|
68
|
+
# leave the chroot
|
69
|
+
ENDCHROOT
|
70
|
+
|
71
|
+
# take down network to prevent next postinstall.sh from starting too soon
|
72
|
+
/etc/rc.d/network stop
|
73
|
+
|
74
|
+
# and reboot!
|
75
|
+
reboot
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# install virtualbox guest additions
|
2
|
+
VBOX_VERSION=$(cat /root/.vbox_version)
|
3
|
+
cd /tmp
|
4
|
+
wget http://download.virtualbox.org/virtualbox/"$VBOX_VERSION"/VBoxGuestAdditions_"$VBOX_VERSION".iso
|
5
|
+
mount -o loop VBoxGuestAdditions_"$VBOX_VERSION".iso /mnt
|
6
|
+
sh /mnt/VBoxLinuxAdditions.run
|
7
|
+
umount /mnt
|
8
|
+
rm VBoxGuestAdditions_"$VBOX_VERSION".iso
|
9
|
+
|
10
|
+
# host-only networking
|
11
|
+
cat >> /etc/rc.local <<EOF
|
12
|
+
# enable DHCP at boot on eth0
|
13
|
+
# See https://wiki.archlinux.org/index.php/Network#DHCP_fails_at_boot
|
14
|
+
dhcpcd -k eth0
|
15
|
+
dhcpcd -nd eth0
|
16
|
+
EOF
|
17
|
+
|
18
|
+
# clean out pacman cache
|
19
|
+
pacman -Scc<<EOF
|
20
|
+
y
|
21
|
+
y
|
22
|
+
EOF
|
23
|
+
|
24
|
+
# zero out the fs
|
25
|
+
dd if=/dev/zero of=/clean bs=4M|| rm /clean
|
26
|
+
dd if=/dev/zero of=/tmp/clean bs=4M|| rm /tmp/clean
|
27
|
+
dd if=/dev/zero of=/boot/clean bs=4M|| rm /boot/clean
|
28
|
+
|
29
|
+
# and the final reboot!
|
30
|
+
#reboot
|
@@ -37,6 +37,9 @@ vagrant
|
|
37
37
|
vagrant
|
38
38
|
EOF
|
39
39
|
|
40
|
+
# create puppet group
|
41
|
+
groupadd puppet
|
42
|
+
|
40
43
|
# make sure ssh is allowed
|
41
44
|
echo "sshd: ALL" > /etc/hosts.allow
|
42
45
|
|
@@ -49,7 +52,7 @@ sed -i 's:^DAEMONS\(.*\))$:DAEMONS\1 sshd):' /etc/rc.conf
|
|
49
52
|
# install mitchellh's ssh key
|
50
53
|
mkdir /home/vagrant/.ssh
|
51
54
|
chmod 700 /home/vagrant/.ssh
|
52
|
-
wget --no-check-certificate '
|
55
|
+
wget --no-check-certificate 'https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub' -O /home/vagrant/.ssh/authorized_keys
|
53
56
|
chmod 600 /home/vagrant/.ssh/authorized_keys
|
54
57
|
chown -R vagrant /home/vagrant/.ssh
|
55
58
|
|
@@ -80,6 +83,14 @@ sh /mnt/VBoxLinuxAdditions.run
|
|
80
83
|
umount /mnt
|
81
84
|
rm VBoxGuestAdditions_"$VBOX_VERSION".iso
|
82
85
|
|
86
|
+
# host-only networking
|
87
|
+
cat <<EOF
|
88
|
+
# enable DHCP at boot on eth0
|
89
|
+
# See https://wiki.archlinux.org/index.php/Network#DHCP_fails_at_boot
|
90
|
+
dhcpcd -k eth0
|
91
|
+
dhcpcd -nd eth0
|
92
|
+
EOF >> /etc/rc.local
|
93
|
+
|
83
94
|
# clean out pacman cache
|
84
95
|
pacman -Scc<<EOF
|
85
96
|
y
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# Archlinux AIF config file
|
2
|
+
# created by Dave Simons
|
3
|
+
# 21/09/2011
|
4
|
+
|
5
|
+
# install source
|
6
|
+
SOURCE=net
|
7
|
+
if [ -d /repo/core ]; then
|
8
|
+
TARGET_REPOSITORIES=(core 'file:///repo/$repo/$arch')
|
9
|
+
else
|
10
|
+
MIRROR='http://archlinux.mirror.kangaroot.net/$repo/os/$arch'
|
11
|
+
TARGET_REPOSITORIES=(core $var_MIRRORLIST extra $var_MIRRORLIST)
|
12
|
+
fi
|
13
|
+
|
14
|
+
# time/date
|
15
|
+
HARDWARECLOCK=localtime
|
16
|
+
TIMEZONE=Europe/Brussels
|
17
|
+
|
18
|
+
# packages to install
|
19
|
+
TARGET_GROUPS=base
|
20
|
+
TARGET_PACKAGES='sudo openssh vim ruby linux-headers make gcc glibc git perl net-tools'
|
21
|
+
TARGET_PACKAGES_EXCLUDE='nano emacs wpa_supplicant xfsprogs reiserfsprogs pcmciautils mdadm jfsutils cryptsetup lvm2'
|
22
|
+
|
23
|
+
# hard drive setup
|
24
|
+
GRUB_DEVICE='/dev/sda'
|
25
|
+
PARTITIONS='/dev/sda 100:ext2:+ 512:swap *:ext4'
|
26
|
+
BLOCKDATA='/dev/sda1 raw no_label ext2;yes;/boot;target;no_opts;no_label;no_params
|
27
|
+
/dev/sda2 raw no_label swap;yes;no_mountpoint;target;no_opts;no_label;no_params
|
28
|
+
/dev/sda3 raw no_label ext4;yes;/;target;no_opts;no_label;no_params'
|
@@ -0,0 +1,26 @@
|
|
1
|
+
Veewee::Session.declare({
|
2
|
+
:cpu_count => '1', :memory_size=> '256',
|
3
|
+
:disk_size => '10140', :disk_format => 'VDI',:hostiocache => 'off',
|
4
|
+
:os_type_id => 'ArchLinux_64',
|
5
|
+
:iso_file => "archlinux-2011.08.19-netinstall-x86_64.iso",
|
6
|
+
:iso_src => "http://archlinux.mirror.kangaroot.net/iso/2011.08.19/archlinux-2011.08.19-netinstall-x86_64.iso",
|
7
|
+
:iso_md5 => "03a328dfd7a2f901995d77bcf645130c",
|
8
|
+
:iso_download_timeout => "1000",
|
9
|
+
:boot_wait => "5", :boot_cmd_sequence => [
|
10
|
+
'<Enter>',
|
11
|
+
'<Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait>',
|
12
|
+
'<Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait><Wait>',
|
13
|
+
'dhcpcd eth0<Enter><Wait><Wait><Wait><Wait>',
|
14
|
+
'passwd<Enter>',
|
15
|
+
'vagrant<Enter>',
|
16
|
+
'vagrant<Enter>',
|
17
|
+
'/etc/rc.d/sshd start<Enter><Wait>',
|
18
|
+
'sleep 3 && wget 10.0.2.2:7122/aif.cfg<Enter>',
|
19
|
+
],
|
20
|
+
:kickstart_port => "7122", :kickstart_timeout => "10000", :kickstart_file => "aif.cfg",
|
21
|
+
:ssh_login_timeout => "10000", :ssh_user => "root", :ssh_password => "vagrant", :ssh_key => "",
|
22
|
+
:ssh_host_port => "7222", :ssh_guest_port => "22",
|
23
|
+
:sudo_cmd => "sh '%f'",
|
24
|
+
:shutdown_cmd => "shutdown -h now",
|
25
|
+
:postinstall_files => [ "postinstall.sh", "postinstall2.sh"], :postinstall_timeout => "10000"
|
26
|
+
})
|
@@ -0,0 +1,75 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
|
3
|
+
# var to determine package source
|
4
|
+
PKGSRC=net
|
5
|
+
|
6
|
+
date > /etc/vagrant_box_build_time
|
7
|
+
|
8
|
+
# launch automated install
|
9
|
+
su -c 'aif -p automatic -c aif.cfg'
|
10
|
+
|
11
|
+
# copy over the vbox version file
|
12
|
+
/bin/cp -f /root/.vbox_version /mnt/root/.vbox_version
|
13
|
+
|
14
|
+
# chroot into the new system
|
15
|
+
mount -o bind /dev /mnt/dev
|
16
|
+
mount -o bind /sys /mnt/sys
|
17
|
+
mount -t proc none /mnt/proc
|
18
|
+
chroot /mnt <<ENDCHROOT
|
19
|
+
|
20
|
+
# make sure network is up and a nameserver is available
|
21
|
+
dhcpcd eth0
|
22
|
+
|
23
|
+
# sudo setup
|
24
|
+
# note: do not use tabs here, it autocompletes and borks the sudoers file
|
25
|
+
cat <<EOF > /etc/sudoers
|
26
|
+
root ALL=(ALL) ALL
|
27
|
+
%wheel ALL=(ALL) NOPASSWD: ALL
|
28
|
+
EOF
|
29
|
+
|
30
|
+
# set up user accounts
|
31
|
+
passwd<<EOF
|
32
|
+
vagrant
|
33
|
+
vagrant
|
34
|
+
EOF
|
35
|
+
useradd -m -G wheel -r vagrant
|
36
|
+
passwd -d vagrant
|
37
|
+
passwd vagrant<<EOF
|
38
|
+
vagrant
|
39
|
+
vagrant
|
40
|
+
EOF
|
41
|
+
|
42
|
+
# create puppet group
|
43
|
+
groupadd puppet
|
44
|
+
|
45
|
+
# make sure sshd starts
|
46
|
+
sed -i 's:^DAEMONS\(.*\))$:DAEMONS\1 sshd):' /etc/rc.conf
|
47
|
+
|
48
|
+
# install mitchellh's ssh key
|
49
|
+
mkdir /home/vagrant/.ssh
|
50
|
+
chmod 700 /home/vagrant/.ssh
|
51
|
+
wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O /home/vagrant/.ssh/authorized_keys
|
52
|
+
chmod 600 /home/vagrant/.ssh/authorized_keys
|
53
|
+
chown -R vagrant /home/vagrant/.ssh
|
54
|
+
|
55
|
+
# choose a mirror
|
56
|
+
sed -i 's/^#\(.*leaseweb.*\)/\1/' /etc/pacman.d/mirrorlist
|
57
|
+
|
58
|
+
# install some packages
|
59
|
+
gem install --no-ri --no-rdoc chef facter
|
60
|
+
cd /tmp
|
61
|
+
git clone https://github.com/puppetlabs/puppet.git
|
62
|
+
cd puppet
|
63
|
+
ruby install.rb --bindir=/usr/bin --sbindir=/sbin 2>/dev/null
|
64
|
+
|
65
|
+
# set up networking
|
66
|
+
[[ $PKGSRC == 'net' ]] && sed -i 's/^\(interface=*\)/\1eth0/' /etc/rc.conf
|
67
|
+
|
68
|
+
# leave the chroot
|
69
|
+
ENDCHROOT
|
70
|
+
|
71
|
+
# take down network to prevent next postinstall.sh from starting too soon
|
72
|
+
/etc/rc.d/network stop
|
73
|
+
|
74
|
+
# and reboot!
|
75
|
+
reboot
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# install virtualbox guest additions
|
2
|
+
VBOX_VERSION=$(cat /root/.vbox_version)
|
3
|
+
cd /tmp
|
4
|
+
wget http://download.virtualbox.org/virtualbox/"$VBOX_VERSION"/VBoxGuestAdditions_"$VBOX_VERSION".iso
|
5
|
+
mount -o loop VBoxGuestAdditions_"$VBOX_VERSION".iso /mnt
|
6
|
+
sh /mnt/VBoxLinuxAdditions.run
|
7
|
+
umount /mnt
|
8
|
+
rm VBoxGuestAdditions_"$VBOX_VERSION".iso
|
9
|
+
|
10
|
+
# host-only networking
|
11
|
+
cat >> /etc/rc.local <<EOF
|
12
|
+
# enable DHCP at boot on eth0
|
13
|
+
# See https://wiki.archlinux.org/index.php/Network#DHCP_fails_at_boot
|
14
|
+
dhcpcd -k eth0
|
15
|
+
dhcpcd -nd eth0
|
16
|
+
EOF
|
17
|
+
|
18
|
+
# clean out pacman cache
|
19
|
+
pacman -Scc<<EOF
|
20
|
+
y
|
21
|
+
y
|
22
|
+
EOF
|
23
|
+
|
24
|
+
# zero out the fs
|
25
|
+
dd if=/dev/zero of=/clean bs=4M|| rm /clean
|
26
|
+
dd if=/dev/zero of=/tmp/clean bs=4M|| rm /tmp/clean
|
27
|
+
dd if=/dev/zero of=/boot/clean bs=4M|| rm /boot/clean
|
28
|
+
|
29
|
+
# and the final reboot!
|
30
|
+
#reboot
|