Changeset 328


Ignore:
Timestamp:
Mar 13, 2007 8:47:09 PM (6 years ago)
Author:
dkg
Message:

debirf: removed some global variables, unused extras/ directory, and defaulting to FHS-compliant location (/var/lib/debirf) for automated build.

Location:
trunk/debirf
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/debirf/etc/debirf/debirf.conf

    r324 r328  
    66 
    77# where to build the debirf 
    8 DEBIRF_PATH=${DEBIRF_PATH:-"/srv/debirf"} 
     8DEBIRF_PATH=${DEBIRF_PATH:-"/var/lib/debirf"} 
    99 
    1010# the debirf root, used by plugins 
     
    2121DEBIRF_MIRROR=${DEBIRF_MIRROR:-"http://mirrors.kernel.org/debian"} 
    2222 
    23 # what distribution should be the default? 
     23# what distribution should debirf be built from? 
    2424DEBIRF_DISTRO=${DEBIRF_DISTRO:-etch} 
  • trunk/debirf/usr/sbin/make-debirf

    r326 r328  
    7070} 
    7171 
     72## create_initrd functions take the name of the targeted initrd as 
     73## their first argument. 
     74  
    7275### stupid simple method 
    7376create_initrd_stupid_simple() { 
     
    7780    # create root image 
    7881    msg "creating debirf initrd..." 
    79     ( cd "$DEBIRF_ROOT" && find * | cpio -H newc --create  | gzip ) > "$DEBIRF_INITRD" 
     82    ( cd "$DEBIRF_ROOT" && find * | cpio -H newc --create  | gzip ) > "$1" 
    8083} 
    8184 
    82 ### tweak initrd method 
     85### tweak initrd method: untested, probably doesn't work right yet.  soon! 
    8386create_initrd_tweak_initrd() { 
    8487    cat scripts/debirf <<EOF 
     
    101104    msg "creating debirf initrd..." 
    102105    cp extra/boot/"$INITRD" debirf.cgz 
    103     (cd "$DEBIRF_ROOT" && find * | cpio -H newc --create  | gzip ) >> "$DEBIRF_INITRD" 
     106    (cd "$DEBIRF_ROOT" && find * | cpio -H newc --create  | gzip ) >> "$1" 
    104107} 
    105108 
     
    115118    DEBIRF_KERNEL_PACKAGE="$1" 
    116119    [ -f "$DEBIRF_KERNEL_PACKAGE" ] || failure "Specified kernel package $DEBIRF_KERNEL_PACKAGE not found." 
    117  
    118     KERNEL="vmlinu*"$(dpkg -I "$DEBIRF_KERNEL_PACKAGE" | grep 'Package:' | awk '{ print $2 }' | sed -s s/'linux-image-'//) 
    119120fi 
    120121 
     
    170171 
    171172KERNAVAIL=$(ls -1 "$DEBIRF_ROOT/lib/modules" | head -n1) 
    172 DEBIRF_INITRD="${DEBIRF_LABEL}_${DEBIRF_DISTRO}_${KERNAVAIL}.cgz" 
    173 create_initrd_${DEBIRF_METHOD} 
     173create_initrd_${DEBIRF_METHOD} "${DEBIRF_LABEL}_${DEBIRF_DISTRO}_${KERNAVAIL}.cgz" 
    174174 
    175175# final output 
     176KERNEL="$DEBIRF_PATH/vmlinu"* 
    176177if [ "$KERNEL" ] ; then 
    177     ln -sf  "extras/boot/$KERNEL" vmlinuz 
    178     msg "kernel: $DEBIRF_PATH/vmlinuz" 
     178    msg "kernel: $KERNEL" 
    179179fi 
    180180msg "initrd: $DEBIRF_PATH/$DEBIRF_INITRD" 
  • trunk/debirf/usr/share/debirf/plugins/install/install-kernel

    r323 r328  
    2525     
    2626    # extract kernel, debian stock initrd, and remove them from the fs: 
    27     mkdir -p extras/boot 
    28     mv "$DEBIRF_ROOT"/boot/vmlinu* extras/boot/ 
    29     mv "$DEBIRF_ROOT"/boot/initrd* extras/boot/ 
     27    mv "$DEBIRF_ROOT"/boot/vmlinu* . 
     28    mv "$DEBIRF_ROOT"/boot/initrd* . 
    3029} 
    3130 
  • trunk/debirf/usr/share/debirf/plugins/prune/remove-locales

    r327 r328  
    22 
    33# remove locales 
    4  
    5 mkdir -p extras/usr/share/locale 
    64cd "$DEBIRF_ROOT"  
    75find usr/share/locale -maxdepth 1 -mindepth 1 -type d ! -iname 'en*' -exec rm -rf '{}' \; 
Note: See TracChangeset for help on using the changeset viewer.