Changeset 328
- Timestamp:
- Mar 13, 2007 8:47:09 PM (6 years ago)
- Location:
- trunk/debirf
- Files:
-
- 3 added
- 4 edited
-
etc/debirf/debirf.conf (modified) (2 diffs)
-
usr/sbin/make-debirf (modified) (5 diffs)
-
usr/share/debirf/plugins/install/install-kernel (modified) (1 diff)
-
usr/share/debirf/plugins/prune/remove-locales (modified) (1 diff)
-
var (added)
-
var/lib (added)
-
var/lib/debirf (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/debirf/etc/debirf/debirf.conf
r324 r328 6 6 7 7 # where to build the debirf 8 DEBIRF_PATH=${DEBIRF_PATH:-"/ srv/debirf"}8 DEBIRF_PATH=${DEBIRF_PATH:-"/var/lib/debirf"} 9 9 10 10 # the debirf root, used by plugins … … 21 21 DEBIRF_MIRROR=${DEBIRF_MIRROR:-"http://mirrors.kernel.org/debian"} 22 22 23 # what distribution should be the default?23 # what distribution should debirf be built from? 24 24 DEBIRF_DISTRO=${DEBIRF_DISTRO:-etch} -
trunk/debirf/usr/sbin/make-debirf
r326 r328 70 70 } 71 71 72 ## create_initrd functions take the name of the targeted initrd as 73 ## their first argument. 74 72 75 ### stupid simple method 73 76 create_initrd_stupid_simple() { … … 77 80 # create root image 78 81 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" 80 83 } 81 84 82 ### tweak initrd method 85 ### tweak initrd method: untested, probably doesn't work right yet. soon! 83 86 create_initrd_tweak_initrd() { 84 87 cat scripts/debirf <<EOF … … 101 104 msg "creating debirf initrd..." 102 105 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" 104 107 } 105 108 … … 115 118 DEBIRF_KERNEL_PACKAGE="$1" 116 119 [ -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-'//)119 120 fi 120 121 … … 170 171 171 172 KERNAVAIL=$(ls -1 "$DEBIRF_ROOT/lib/modules" | head -n1) 172 DEBIRF_INITRD="${DEBIRF_LABEL}_${DEBIRF_DISTRO}_${KERNAVAIL}.cgz" 173 create_initrd_${DEBIRF_METHOD} 173 create_initrd_${DEBIRF_METHOD} "${DEBIRF_LABEL}_${DEBIRF_DISTRO}_${KERNAVAIL}.cgz" 174 174 175 175 # final output 176 KERNEL="$DEBIRF_PATH/vmlinu"* 176 177 if [ "$KERNEL" ] ; then 177 ln -sf "extras/boot/$KERNEL" vmlinuz 178 msg "kernel: $DEBIRF_PATH/vmlinuz" 178 msg "kernel: $KERNEL" 179 179 fi 180 180 msg "initrd: $DEBIRF_PATH/$DEBIRF_INITRD" -
trunk/debirf/usr/share/debirf/plugins/install/install-kernel
r323 r328 25 25 26 26 # 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* . 30 29 } 31 30 -
trunk/debirf/usr/share/debirf/plugins/prune/remove-locales
r327 r328 2 2 3 3 # remove locales 4 5 mkdir -p extras/usr/share/locale6 4 cd "$DEBIRF_ROOT" 7 5 find usr/share/locale -maxdepth 1 -mindepth 1 -type d ! -iname 'en*' -exec rm -rf '{}' \;
Note: See TracChangeset
for help on using the changeset viewer.

