slitaz-modular rev 126
mkiso.sh: Fixed logs to log everything when packages are installed.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sat Aug 13 18:28:08 2011 +0000 (2011-08-13) |
parents | 7fc45fb87d9a |
children | ea6b229d8c84 |
files | mkiso.sh |
line diff
1.1 --- a/mkiso.sh Tue Aug 02 04:58:12 2011 +0000 1.2 +++ b/mkiso.sh Sat Aug 13 18:28:08 2011 +0000 1.3 @@ -146,10 +146,10 @@ 1.4 [ -f $LOG/initramfs.log ] && rm -f $LOG/initramfs.log 1.5 cat "$BASEDIR/initramfs/initramfs.list" | grep -v "^#" | while read pkgname; do 1.6 if [ ! -f ${INITRAMFS}/var/lib/tazpkg/installed/${pkgname}/files.list ]; then 1.7 - tazpkg get-install $pkgname --root=$INITRAMFS | tee -a $LOG/initramfs.log 1.8 + tazpkg get-install $pkgname --root=$INITRAMFS 2>&1 | tee -a $LOG/initramfs.log 1.9 sleep 1 1.10 else 1.11 - info "${pkgname} installed" 1.12 + info "${pkgname} installed" | tee -a $LOG/initramfs.log 1.13 fi 1.14 done 1.15 1.16 @@ -222,10 +222,10 @@ 1.17 [ -f ${LOG}/${mod}-current.log ] && rm -f ${LOG}/${mod}-current.log 1.18 cat "$PROFILE/list/${mod}.list" | grep -v "^#" | while read pkgname; do 1.19 if [ ! -f ${UNION}/var/lib/tazpkg/installed/${pkgname}/files.list ]; then 1.20 - tazpkg get-install $pkgname --root=${UNION} | tee -a ${LOG}/${mod}-current.log 1.21 + tazpkg get-install $pkgname --root=${UNION} 2>&1 | tee -a ${LOG}/${mod}-current.log 1.22 sleep 1 1.23 else 1.24 - info "${pkgname} installed" 1.25 + info "${pkgname} installed" | tee -a ${LOG}/${mod}-current.log 1.26 fi 1.27 done 1.28 fi 1.29 @@ -234,7 +234,7 @@ 1.30 [ -f ${LOG}/${mod}-current-removelist.log ] && rm -f ${LOG}/${mod}-current-removelist.log 1.31 cat "$PROFILE/list/${mod}.removelist" | grep -v "^#" | while read pkgname; do 1.32 if [ -f ${UNION}/var/lib/tazpkg/installed/${pkgname}/files.list ]; then 1.33 - echo "y" | tazpkg remove ${pkgname} --root=${UNION} | tee -a ${LOG}/${mod}-current-removelist.log 1.34 + echo "y" | tazpkg remove ${pkgname} --root=${UNION} 2>&1 | tee -a ${LOG}/${mod}-current-removelist.log 1.35 sleep 1 1.36 else 1.37 info "${pkgname} removed"