[Commits] [svn:einsteintoolkit] tools/trunk/VirtualBox/ (Rev. 34)

knarf at cct.lsu.edu knarf at cct.lsu.edu
Mon Nov 9 11:17:41 CST 2015


User: knarf
Date: 2015/11/09 11:17 AM

Modified:
 /trunk/VirtualBox/
  create_ET, preseed.cfg

Log:
 changes for Ubuntu VM

File Changes:

Directory: /trunk/VirtualBox/
=============================

File [modified]: create_ET
Delta lines: +29 -6
===================================================================
--- trunk/VirtualBox/create_ET	2015-05-09 16:56:55 UTC (rev 33)
+++ trunk/VirtualBox/create_ET	2015-11-09 17:17:41 UTC (rev 34)
@@ -6,26 +6,48 @@
   exit 1
 fi
 
-DIST=wheezy
-URL=http://cdimage.debian.org/mirror/cdimage/archive/7.8.0/amd64/iso-cd/debian-7.8.0-amd64-netinst.iso
+#DIST=wheezy
+#URL=http://cdimage.debian.org/mirror/cdimage/archive/7.8.0/amd64/iso-cd/debian-7.8.0-amd64-netinst.iso
+
 #DIST=jessie
-#URL=http://cdimage.debian.org/debian-cd/8.0.0/amd64/iso-cd/debian-8.0.0-amd64-netinst.iso
+#URL=http://cdimage.debian.org/debian-cd/8.2.0/amd64/iso-cd/debian-8.2.0-amd64-netinst.iso
 
+DIST=trusty
+URL=http://archive.ubuntu.com/ubuntu/dists/trusty-updates/main/installer-amd64/current/images/netboot/mini.iso
+
 CD_DST=${DIST}_$RELEASE
 rm -rf $CD_DST
 mkdir $CD_DST
 wget -cN $URL
 bsdtar -C $CD_DST -xf `basename $URL`
 chmod -R +w $CD_DST
+
+if [ -d $CD_DST/isolinux ]; then
+  ISOLINUX=isolinux/
+fi
 cd $CD_DST
-perl -pi -e 's/initrd\.gz/initrd\.gz auto-install\/enable=true preseed\/file=\/cdrom\/preseed.cfg/'  isolinux/txt.cfg
-perl -pi -e 's/timeout 0/timeout 1/' isolinux/isolinux.cfg
+perl -pi -e 's/initrd\.gz/initrd\.gz auto-install\/enable=true debconf\/priority=critical preseed\/file=\/cdrom\/preseed.cfg/'  ${ISOLINUX}txt.cfg
+perl -pi -e 's/timeout 0/timeout 1/' ${ISOLINUX}isolinux.cfg
 cp ../preseed.cfg ../postseed .
 mkdir et_misc
 cp ../install_$RELEASE et_misc/
 md5sum `find ! -name "md5sum.txt" ! -path "./isolinux/*" -follow -type f` > md5sum.txt
+
+# Ubuntu's mini.iso does not mount the iso image itself during installation, so we have to
+# copy stuff directly into the initrd
+if [ `basename "$URL"` == "mini.iso" ]; then
+  mkdir new_initrd
+  cd new_initrd
+  # copy stuff over - Ubuntu seems to ignore the given location of preseed.cfg and always
+  # expects it in the root of the initrd. Also strip mirror information from the file to
+  # remove the debian-specific mirror
+  zcat ../initrd.gz | fakeroot bash -c 'cpio --extract; mkdir cdrom; cp -r ../postseed ../et_misc cdrom/; grep -v mirror ../preseed.cfg > preseed.cfg; find . | cpio -o -H newc | gzip > ../initrd.gz'
+  cd ..
+  rm -rf new_initrd
+fi
+
 cd ..
-genisoimage -o ${DIST}_$RELEASE.iso -r -J -no-emul-boot -boot-load-size 4 -boot-info-table -b isolinux/isolinux.bin -c isolinux/boot.cat $CD_DST
+genisoimage -o ${DIST}_$RELEASE.iso -r -J -no-emul-boot -boot-load-size 4 -boot-info-table -b ${ISOLINUX}isolinux.bin -c ${ISOLINUX}boot.cat $CD_DST
 rm -rf $CD_DST
 
 VMNAME=${DIST}_$RELEASE
@@ -50,4 +72,5 @@
 VBoxManage modifyvm      $VMNAME --nic1 nat --nictype1 82540EM 
 VBoxManage modifyvm      $VMNAME --natpf1 "ssh,tcp,,2222,,22"
 VBoxManage modifyvm      $VMNAME --audio alsa
+VBoxManage modifyvm      $VMNAME --boot1 disk --boot2 dvd --boot3 net --boot4 none
 VBoxManage startvm       $VMNAME

File [modified]: preseed.cfg
Delta lines: +4 -2
===================================================================
--- trunk/VirtualBox/preseed.cfg	2015-05-09 16:56:55 UTC (rev 33)
+++ trunk/VirtualBox/preseed.cfg	2015-11-09 17:17:41 UTC (rev 34)
@@ -1,3 +1,4 @@
+#d-i espeakup/voice string en
 d-i debian-installer/locale string en_US
 d-i console-keymaps-at/keymap select us
 d-i debian-installer/keymap string  us
@@ -7,7 +8,7 @@
 d-i netcfg/get_hostname string et-vm-debian
 d-i netcfg/get_domain string local
 d-i mirror/country string manual
-d-i mirror/http/hostname string mirror.steadfast.net
+d-i mirror/http/hostname string httpredir.debian.org
 d-i mirror/http/directory string /debian
 d-i mirror/http/proxy string
 d-i passwd/root-password password et
@@ -16,6 +17,7 @@
 d-i passwd/username string et
 d-i passwd/user-password password et
 d-i passwd/user-password-again password et
+d-i user-setup/allow-password-weak boolean true
 d-i clock-setup/utc boolean true
 d-i time/zone string US/Central
 #d-i partman-auto/init_automatically_partition select biggest_free
@@ -43,4 +45,4 @@
 #d-i debian-installer/exit/poweroff boolean true
 pularity-contest popularity-contest/participate boolean false
 d-i preseed/late_command string cp /cdrom/postseed /target/etc/init.d/; chroot /target update-rc.d postseed defaults; cp -r /cdrom/et_misc /target/home/et/misc
-d-i pkgsel/include string sudo perl python subversion git gfortran g++ libfftw3-dev libgsl0-dev libatlas-base-dev libjpeg-dev libssl-dev libhdf5-serial-dev libopenmpi-dev openmpi-bin make
+d-i pkgsel/include string sudo perl python subversion git gfortran g++ libfftw3-dev libgsl0-dev libatlas-base-dev libjpeg-dev libssl-dev libhdf5-serial-dev hdf5-tools libopenmpi-dev openmpi-bin make



More information about the Commits mailing list