Changes between Version 9 and Version 10 of jazz/09-04-16


Ignore:
Timestamp:
Apr 16, 2009, 6:51:58 PM (15 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/09-04-16

    v9 v10  
    66 * [待測試] [http://wiki.xensource.com/xenwiki/LiveCD Xen Live CD 2.0] 的 [http://livexen01.worldweb.com.br/release-0.8.2/xenlivecd-0.8.2.tar.gz build script(ISO Generator)] - 瞭解 isolinux 是如何下參數啟動 xen hypervisor 呢?? 一樣是靠 mboot.c32 嗎??
    77
    8  * [想法] 每次 DRBL Server 升級,都會忘記要跑 re-deploy,想說為什麼不能每次只要有跑 apt-get 就像 localepurge 一樣都會去執行對應的 script 呢?? 今天研究了一下,原來作法並不難,只要在 /etc/apt/apt.conf.d/ 中放一個 script 就可以了。
     8 * [想法] 每次 DRBL Server 作小升級,都會忘記要跑 re-deploy,想說為什麼不能每次只要有跑 apt-get 就像 localepurge 一樣都會去執行對應的 script 呢?? 今天研究了一下,原來作法並不難,只要在 /etc/apt/apt.conf.d/ 中放一個 script 就可以了。
    99{{{
    1010localepurge: /etc/apt/apt.conf.d/99-localepurge
     11}}}
     12   * [改良] 擺一隻 99drbl 在 /etc/apt/apt.conf.d/ 就可以在每次 apt-get install 之後,每次幫忙跑 re-deploy
     13{{{
     14# cat > /etc/apt/apt.conf.d/99drbl << EOF
     15DPkg
     16{
     17Post-Invoke {"if [ -x /opt/drbl/sbin/drblpush ] && [ $(ps w -p "$PPID" | grep -c remove) != 1 ]; then /opt/drbl/sbin/drblpush -c /etc/drbl/drblpush.conf ; else exit 0; fi";};
     18};
     19EOF
    1120}}}
    1221