Created
September 16, 2013 22:12
-
-
Save lutter/6587309 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!ipxe | |
echo Razor debian wheezy model boot_call | |
echo Installation node : http://razor:8080/api/nodes/1 | |
echo Installation image: http://razor:8080/svc/image/wheezy | |
sleep 3 | |
kernel http://razor:8080/svc/image/wheezy/install.amd/vmlinuz DEBCONF_DEBUG=5 install auto=true url=http://razor:8080/svc/file/1/preseed debian-installer=en_US locale=en_US kbd-chooser/method=us netcfg/get_hostname=wheezy netcfg/get_domain=razor.lan fb=false debconf/frontend=noninteractive console-setup/ask_detect=false console-keymaps-at/keymap=us BOOTIF=52-54-00-30-8e-45 || goto error | |
initrd http://razor:8080/svc/image/wheezy/install.amd/initrd.gz || goto error | |
boot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d-i debian-installer/locale string en_US | |
d-i console-keymaps-at/keymap select us | |
d-i console-setup/ask_detect boolean false | |
d-i keyboard-configuration/xkb-keymap select us | |
d-i keyboard-configuration/layoutcode string us | |
d-i netcfg/choose_interface select auto | |
d-i netcfg/get_hostname string host1.example.com | |
d-i netcfg/get_domain string puppetlabs.lan | |
d-i netcfg/no_default_route boolean true | |
d-i mirror/country string US | |
d-i mirror/protocol string http | |
d-i mirror/http/mirror string ftp.us.debian.org | |
d-i mirror/http/directory string /debian/ | |
d-i mirror/http/proxy string | |
d-i mirror/suite string wheezy | |
d-i time/zone string US/Central | |
d-i clock-setup/utc boolean true | |
d-i clock-setup/ntp boolean true | |
d-i partman-auto/disk string /dev/sda | |
d-i partman-auto/method string lvm | |
d-i partman-lvm/device_remove_lvm boolean true | |
d-i partman-md/device_remove_md boolean true | |
d-i partman-auto-lvm/guided_size string max | |
d-i partman-auto/choose_recipe select atomic | |
d-i partman/default_filesystem string ext4 | |
d-i partman-lvm/confirm boolean true | |
d-i partman-lvm/confirm_nooverwrite boolean true | |
d-i partman-partitioning/confirm_write_new_label boolean true | |
d-i partman/choose_partition select finish | |
d-i partman/confirm boolean true | |
d-i partman/confirm_nooverwrite boolean true | |
d-i partman-md/confirm boolean true | |
d-i partman-partitioning/confirm_write_new_label boolean true | |
d-i partman/choose_partition select finish | |
d-i partman/confirm boolean true | |
d-i partman/confirm_nooverwrite boolean true | |
d-i passwd/root-login boolean true | |
d-i passwd/make-user boolean false | |
d-i passwd/root-password password secret | |
d-i passwd/root-password-again password secret | |
d-i user-setup/allow-password-weak boolean true | |
#d-i apt-setup/restricted boolean true | |
tasksel tasksel/first multiselect standard | |
d-i pkgsel/include string ruby openssh-server build-essential curl | |
d-i grub-installer/only_debian boolean true | |
d-i grub-installer/with_other_os boolean true | |
popularity-contest popularity-contest/participate boolean false | |
d-i finish-install/reboot_in_progress note | |
#Our callbacks | |
d-i preseed/early_command string wget http://razor:8080/svc/log/1?msg=preseed+start&severity=info | |
d-i preseed/late_command string wget http://razor:8080/svc/log/1?msg=preseed+end&severity=info; \ | |
wget http://razor:8080/svc/file/1/os_boot -O /target/usr/local/bin/razor_postinstall.sh; \ | |
sed -i '/exit 0/d' /target/etc/rc.local; \ | |
echo bash /usr/local/bin/razor_postinstall.sh >> /target/etc/rc.local; \ | |
echo exit 0 >> /target/etc/rc.local; \ | |
chmod +x /target/usr/local/bin/razor_postinstall.sh; \ | |
wget http://razor:8080/svc/stage-done/1?name=preseed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment