9 Replies Latest reply on Nov 18, 2010 9:53 AM by Steven Saksa

    Post scripts seem to not be executed

    Steven Saksa Newbie

      I was trying out the post steps to create my own version of a boxgrinder ami.  The script runs fine and the boxgrinder logs show that the post steps were run, but when I look for the changes in my image they are not there.  I created the image that I am running boxgrinder in with the attached ks file.  Let me know if you need more info.

       

      Image command output

      Last login: Wed Nov 17 14:25:40 2010

       

      Appliance:      boxgrinder-f13 appliance 1.1

      Hostname:       localhost.localdomain

      IP Address:     172.16.88.146

       

      [root@localhost ~]# rpm -qa |grep ec2

      [root@localhost ~]# gem list

       

      *** LOCAL GEMS ***

       

       

       

      APPL

       

      name: boxgrinder-f13

      summary: JEOS Boxgrinder setup based on Fedora 13

      version: 1.1

      os:

      name: fedora

      version: 13

      hardware:

      partitions:

         "/":

           size: 10

      packages:

      includes:

         - acpid

      .................

         - e2fsprogs

         - rubygems

      post:

        base:

         - "/bin/rpm -Uvh http://s3.amazonaws.com/ec2-downloads/ec2-ami-tools.noarch.rpm"

         - "/usr/bin/gem install builder"

         - "/usr/bin/gem install i18n"

         - "/usr/bin/gem install boxgrinder-build"

         - "/usr/bin/gem install boxgrinder-build-fedora-os-plugin"

         - "/usr/bin/gem install boxgrinder-build-centos-os-plugin"

         - "/usr/bin/gem install boxgrinder-build-vmware-platform-plugin"

         - "/usr/bin/gem install boxgrinder-build-ec2-platform-plugin"

         - "/usr/bin/gem install boxgrinder-build-local-delivery-plugin"

         - "/usr/bin/gem install boxgrinder-build-sftp-delivery-plugin"

         - "/usr/bin/gem install boxgrinder-build-ebs-delivery-plugin"

         - "/usr/bin/gem install activesupport  -v 2.3.10"

         - "/usr/bin/gem install boxgrinder-build-s3-delivery-plugin -v 0.0.3"

       

      Kickstart File produced

       

      lang en_US.UTF-8

      keyboard us

      .....

      %packages --excludedocs --nobase

        acpid

        bash

      ............

        dhclient

        kernel-PAE

      %end

      %post

       

      %end

       

      LOG

       

      D, [2010-11-17T14:01:13.086763 #14461] DEBUG -- : Executing /bin/rpm -Uvh http://s3.amazonaws.com/ec2-downloads/ec2-ami-tools.noarch.rpm
      D, [2010-11-17T14:01:16.992624 #14461] DEBUG -- : Executing /usr/bin/gem install builder
      D, [2010-11-17T14:01:22.553644 #14461] DEBUG -- : Executing /usr/bin/gem install i18n
      D, [2010-11-17T14:01:27.653575 #14461] DEBUG -- : Executing /usr/bin/gem install boxgrinder-build
      D, [2010-11-17T14:01:32.540772 #14461] DEBUG -- : Executing /usr/bin/gem install boxgrinder-build-fedora-os-plugin
      D, [2010-11-17T14:01:37.176252 #14461] DEBUG -- : Executing /usr/bin/gem install boxgrinder-build-centos-os-plugin
      D, [2010-11-17T14:01:42.520743 #14461] DEBUG -- : Executing /usr/bin/gem install boxgrinder-build-vmware-platform-plugin
      D, [2010-11-17T14:01:48.495058 #14461] DEBUG -- : Executing /usr/bin/gem install boxgrinder-build-ec2-platform-plugin
      D, [2010-11-17T14:01:55.103883 #14461] DEBUG -- : Executing /usr/bin/gem install boxgrinder-build-local-delivery-plugin
      D, [2010-11-17T14:02:01.961200 #14461] DEBUG -- : Executing /usr/bin/gem install boxgrinder-build-sftp-delivery-plugin
      D, [2010-11-17T14:02:07.894864 #14461] DEBUG -- : Executing /usr/bin/gem install boxgrinder-build-ebs-delivery-plugin
      D, [2010-11-17T14:02:13.455486 #14461] DEBUG -- : Executing /usr/bin/gem install activesupport  -v 2.3.10
      D, [2010-11-17T14:02:19.294141 #14461] DEBUG -- : Executing /usr/bin/gem install boxgrinder-build-s3-delivery-plugin -v 0.0.3
      D, [2010-11-17T14:02:25.224499 #14461] DEBUG -- : Post commands from appliance definition file executed.

      D, [2010-11-17T14:01:13.086763 #14461] DEBUG -- : Executing /bin/rpm -Uvh http://s3.amazonaws.com/ec2-downloads/ec2-ami-tools.noarch.rpm

      D, [2010-11-17T14:01:16.992624 #14461] DEBUG -- : Executing /usr/bin/gem install builder

      D, [2010-11-17T14:01:22.553644 #14461] DEBUG -- : Executing /usr/bin/gem install i18n

      D, [2010-11-17T14:01:27.653575 #14461] DEBUG -- : Executing /usr/bin/gem install boxgrinder-build

      D, [2010-11-17T14:01:32.540772 #14461] DEBUG -- : Executing /usr/bin/gem install boxgrinder-build-fedora-os-plugin

      D, [2010-11-17T14:01:37.176252 #14461] DEBUG -- : Executing /usr/bin/gem install boxgrinder-build-centos-os-plugin

      D, [2010-11-17T14:01:42.520743 #14461] DEBUG -- : Executing /usr/bin/gem install boxgrinder-build-vmware-platform-plugin

      D, [2010-11-17T14:01:48.495058 #14461] DEBUG -- : Executing /usr/bin/gem install boxgrinder-build-ec2-platform-plugin

      D, [2010-11-17T14:01:55.103883 #14461] DEBUG -- : Executing /usr/bin/gem install boxgrinder-build-local-delivery-plugin

      D, [2010-11-17T14:02:01.961200 #14461] DEBUG -- : Executing /usr/bin/gem install boxgrinder-build-sftp-delivery-plugin

      D, [2010-11-17T14:02:07.894864 #14461] DEBUG -- : Executing /usr/bin/gem install boxgrinder-build-ebs-delivery-plugin

      D, [2010-11-17T14:02:13.455486 #14461] DEBUG -- : Executing /usr/bin/gem install activesupport  -v 2.3.10

      D, [2010-11-17T14:02:19.294141 #14461] DEBUG -- : Executing /usr/bin/gem install boxgrinder-build-s3-delivery-plugin -v 0.0.3

      D, [2010-11-17T14:02:25.224499 #14461] DEBUG -- : Post commands from appliance definition file executed.

       

       

      Boxgrinder GEMS Packages

       

      gem list

      *** LOCAL GEMS ***

      activesupport (2.3.10, 2.0.0)

      amazon-ec2 (0.9.15)

      aws (2.3.26)

      boxgrinder-build (0.6.3)

      boxgrinder-build-centos-os-plugin (0.0.5)

      boxgrinder-build-ebs-delivery-plugin (0.0.3)

      boxgrinder-build-ec2-platform-plugin (0.0.5)

      boxgrinder-build-fedora-os-plugin (0.0.4)

      boxgrinder-build-local-delivery-plugin (0.0.4)

      boxgrinder-build-rhel-os-plugin (0.0.6)

      boxgrinder-build-rpm-based-os-plugin (0.0.7)

      boxgrinder-build-s3-delivery-plugin (0.0.4, 0.0.3)

      boxgrinder-build-sftp-delivery-plugin (0.0.3)

      boxgrinder-build-vmware-platform-plugin (0.0.3)

      boxgrinder-core (0.1.2)

      builder (3.0.0, 2.1.2)

      commander (4.0.3)

      highline (1.6.1)

      http_connection (1.4.0)

      i18n (0.4.2)

      net-sftp (2.0.5)

      net-ssh (2.0.23)

      open4 (1.0.1)

      progressbar (0.9.0)

      uuidtools (2.1.1)

      xml-simple (1.0.12)