/usr/share/faumachine/experiments/test-fi-smart-step1/generate.in is in faumachine-data 20110812-1.2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 | # $Id: generate.in,v 1.7 2009-10-09 11:11:13 potyra Exp $
#
# Copyright (C) 2009 FAUmachine Team <info@faumachine.org>.
# This program is free software. You can redistribute it and/or modify it
# under the terms of the GNU General Public License, either version 2 of
# the License, or (at your option) any later version. See COPYING.
#
# power on node, start installed system.
#
power_on
#
# wait for login screen
#
wait_ppm 01-Welcome.png 10min
#
# switch to vt-1
#
press_alt
press_ctrl
type "\10"
release_ctrl
release_alt
#
# wait for login prompt
#
wait_asc login 2min
#
# login as root
#
type "root\0d"
wait_asc Password 1min
type "WeV0te4u!\0d"
#
# wait for bash prompt
#
wait_asc ~# 2min
#
# install smartmontools and linux-source
#
type "apt-get install smartmontools linux-source-2.6.26\0d"
#
# confirm additional packages
#
wait_asc [Y/n] 2min
type "\0d"
#
# wait for prompt to insert the cdrom
#
wait_asc Binary 2min
#
# insert Debian DVD
#
cdrom_insert @DVD@
type "\0d"
#
# wait for bash prompt
#
wait_asc ~# 5min
#
# fumble smartmontools setup file
#
type "echo ""enable_smart=\\""/dev/hdb\\"""" >> /etc/default/smartmontools\0d"
wait_asc ~# 1min
type "echo ""start_smartd=yes"" >> /etc/default/smartmontools\0d"
wait_asc ~# 1min
type "echo ""smartd_opts=\\""--interval=60\\"""" >> /etc/default/smartmontools\0d"
wait_asc ~# 1min
#
# setup hdb
#
type "fdisk /dev/hdb\0d"
#
# create one primary empty partition
#
wait_asc : 1min
type "n\0d"
wait_asc primary partition 1min
type "p\0d"
wait_asc Partition number 1min
type "1\0d"
wait_asc First cylinder 1min
type "\0d"
wait_asc Last cylinder 1min
type "\0d"
wait_asc p): 1min
type "w\0d"
wait_asc ~# 1min
#
# create a filesystem on /dev/hdb1
#
type "mkfs -t ext3 /dev/hdb1\0d"
wait_asc ~# 10min
#
# register it in fstab
#
type "echo '/dev/hdb1 /mnt ext3 defaults 0 0' >> /etc/fstab\0d"
wait_asc ~# 1min
#
# mount it
#
type "mount /mnt\0d"
wait_asc ~# 1min
#
# unpack linux sources in /mnt
#
type "cd /mnt\0d"
wait_asc mnt# 1min
type "tar -xvjf /usr/src/linux-source-2.6.26.tar.bz2\0d"
wait_asc mnt# 10min
type "cd\0d"
#
# shut down node
#
wait_asc ~# 1min
type "poweroff\0d"
wait_asc Deactivating swap...done. 5min
# FIXME
delay 1min
|