# HG changeset patch # User Christopher Rogers # Date 1302631166 0 # Node ID af121a5932c37767d68294e7fce9c46644ce4fa7 # Parent b4cd8833c2dd605dbf81d83dad95293cb5ea6fc3 Up: Fixed setup-live script only reconfigure packages that have post_install function in receipts. diff -r b4cd8833c2dd -r af121a5932c3 initramfs/usr/bin/setup-live --- a/initramfs/usr/bin/setup-live Tue Apr 12 17:31:51 2011 +0000 +++ b/initramfs/usr/bin/setup-live Tue Apr 12 17:59:26 2011 +0000 @@ -8,8 +8,12 @@ echo "Reconfigure packages in $PKG_ORDER" for i in $(cat $PKG_ORDER); do if [ ! -f $INSTALLED/$i/$i.done_post_install ]; then - tazpkg reconfigure $i - touch $INSTALLED/$i/$i.done_post_install + if [ -f $INSTALLED/$i/receipt ]; then + if [ $(grep -l '^post_install' $INSTALLED/$i/receipt) ]; then + tazpkg reconfigure $i + touch $INSTALLED/$i/$i.done_post_install + fi + fi fi if [ -f $INSTALLED/$i/pkgmd5 ]; then [ -f $INSTALLED/$i/receipt ] && source $INSTALLED/$i/receipt