%post interpreter

Ryan Lovett ryan at stat.berkeley.edu
Tue Oct 19 20:50:17 BST 2010


I'm trying to move my working hardy kickseed configuration over to a lucid
network installation and have run into some problems. My bourne shell code
in %post uses ()s which are now causing odd behavior. After my %pre prints
a few things to console and the sleeps, I see a lot of 

  sh: closing paren expected

messages immediately spewed to the console. When I comment out my %post
code, those messages are not printing during %pre. Its as if the %post is
being preparsed. The string seems to come from dash
(dash-0.5.5.1/src/bltin/test.c) even though I have

  %pre --interpreter=/bin/bash

and

  %post --interpreter=/bin/bash

Does the installer no longer honor the interpreter parameter? I've
forgotten where the source for the installer is or I'd check it myself.

I wound up moving my %post code to a bash script and executing it. I'm
having other problems however so I'd like to try to resolve this. I
couldn't find a description of changes, if any, from 8.04, in
https://help.ubuntu.com/10.04/installation-guide/amd64/automatic-install.html

Ryan



More information about the Ubuntu-installer mailing list