Skip to content
This repository
Browse code

Remove unused stuff

  • Loading branch information...
commit 543f5378c98bc5e2a21a589daa19ff24f05bdfb2 1 parent 74c7249
Carl Johan Crafoord authored April 21, 2012

Showing 1 changed file with 0 additions and 77 deletions. Show diff stats Hide diff stats

  1. 77  build.sh
77  build.sh
@@ -50,35 +50,15 @@ if [ ! -e "${FOLDER_ISO}/custom.iso" ]; then
50 50
   cp preseed.cfg "${FOLDER_ISO_INITRD}/preseed.cfg"
51 51
   cd "${FOLDER_ISO_INITRD}"
52 52
   find . | cpio --create --format='newc' | gzip  > "${FOLDER_ISO_CUSTOM}/install/initrd.gz"
53  
-  #cd "${FOLDER_ISO_CUSTOM}"
54  
-  #chmod u+w md5sum.txt
55  
-  #find . -type f -print0 | xargs -0 md5 | sed 's/MD5 (\(.*\)) = \(.*\)/\2 \1/' > md5sum.txt 
56  
-  #chmod u-w md5sum.txt
57 53
 
58 54
   # clean up permissions
59 55
   chmod u-w "${FOLDER_ISO_CUSTOM}/install" "${FOLDER_ISO_CUSTOM}/install/initrd.gz" "${FOLDER_ISO_CUSTOM}/install/initrd.gz.org"
60 56
 
61  
-  # make new iso
62  
-  #hdiutil makehybrid \
63  
-  #  -iso -joliet \
64  
-  #  -no-emul-boot \
65  
-  #  -eltorito-boot "${FOLDER_ISO_CUSTOM}/isolinux/isolinux.bin" \
66  
-  #  -o "${FOLDER_ISO}/custom.iso" "${FOLDER_ISO_CUSTOM}"
67  
-
68  
-  #mkisofs -o "${FOLDER_ISO}/custom.iso" \
69  
-  #  -r -J -no-emul-boot -boot-load-size 4 \
70  
-  #  -b isolinux/isolinux.bin \
71  
-  #  -c isolinux/boot.cat "${FOLDER_ISO_CUSTOM}"
72  
-
73  
-  #chmod u+w "${FOLDER_ISO_CUSTOM}/preseed"
74  
-  #cp unattended.seed "${FOLDER_ISO_CUSTOM}/preseed/unattended.seed"
75  
-
76 57
   # replace isolinux configuration
77 58
   cd "${FOLDER_BASE}"
78 59
   chmod u+w "${FOLDER_ISO_CUSTOM}/isolinux" "${FOLDER_ISO_CUSTOM}/isolinux/isolinux.cfg"
79 60
   rm "${FOLDER_ISO_CUSTOM}/isolinux/isolinux.cfg"
80 61
   cp isolinux.cfg "${FOLDER_ISO_CUSTOM}/isolinux/isolinux.cfg"  
81  
-
82 62
   chmod u+w "${FOLDER_ISO_CUSTOM}/isolinux/isolinux.bin"
83 63
 
84 64
   mkisofs -r -V "Custom Ubuntu Install CD" \
@@ -152,19 +132,6 @@ if ! VBoxManage showvminfo "${BOX}" >/dev/null 2>/dev/null; then
152 132
   VBoxManage modifyvm "${BOX}" \
153 133
     --natpf1 "guestssh,tcp,,2222,,22"
154 134
 
155  
-  VBoxManage startvm "${BOX}"
156  
-
157  
-  # Set up passwordless ssh + sudo
158  
-  sleep 10
159  
-  ./post-build.sh
160  
-
161  
-#  echo -n "Setting up passwordless ssh + sudo "
162  
-#  while VBoxManage list runningvms | grep "${BOX}" >/dev/null; do
163  
-#    sleep 10
164  
-#    echo -n "."
165  
-#  done
166  
-#  echo ""
167  
-
168 135
   # Attach guest additions iso
169 136
   VBoxManage storageattach "${BOX}" \
170 137
     --storagectl "IDE Controller" \
@@ -173,54 +140,10 @@ if ! VBoxManage showvminfo "${BOX}" >/dev/null 2>/dev/null; then
173 140
     --type dvddrive \
174 141
     --medium "${ISO_GUESTADDITIONS}"
175 142
 
176  
-  #VBoxManage modifyvm "${BOX}" --natpf1 delete "guestssh"
177  
-
178  
-fi
179  
-
180  
-
181  
-
182  
-# hook up install cd
183  
-
184  
-# "install a command line system"
185  
-
186  
-# switch to tty1 (ctrl+alt+fn+f1)
187  
-
188  
-# edit /etc/default/grub
189  
-# - GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
190  
-# + GRUB_CMDLINE_LINUX_DEFAULT=""
191  
-
192  
-# sudo update-grub
193  
-
194  
-# edit /etc/sudoers
195  
-# + %sudo   ALL=NOPASSWD: ALL
196  
-
197  
-# restart ...?
198  
-
199  
-# sudo apt-get update
200  
-# sudo apt-get upgrade
201  
-
202  
-# sudo apt-get install build-essential
203  
-
204  
-# Devices > Install Guest Additions
205  
-# sudo mount /dev/cdrom /media/cdrom
206  
-# sudo sh /media/cdrom/VBoxLinuxAdditions.run
207  
-# sudo umount /media/cdrom
208  
-
209  
-# sudo apt-get install ruby-dev rubygems puppet ssh
210  
-# sudo gem install chef
211 143
 
212  
-# cd /home/vagrant
213  
-# mkdir .ssh
214  
-# wget -O .ssh/authorized_keys "https://raw.github.com/mitchellh/vagrant/master/keys/vagrant.pub"
215  
-# chmod 755 .ssh
216  
-# chmod 644 .ssh/authorized_keys
217 144
 
218  
-# edit /etc/ssh/sshd_config
219  
-# + UseDNS no
220 145
 
221  
-# sudo rm .bash_history .nano_history .lesshst
222 146
 
223  
-# shutdown / restart
224 147
 
225 148
 #vagrant package --base "$name"
226 149
 

0 notes on commit 543f537

Please sign in to comment.
Something went wrong with that request. Please try again.