Changeset 310
- Timestamp:
- Mar 13, 2007 5:04:35 PM (6 years ago)
- Location:
- trunk/debirf
- Files:
-
- 1 added
- 1 edited
-
make-debirf (modified) (3 diffs)
-
plugins/install-kernel (added)
Legend:
- Unmodified
- Added
- Removed
-
trunk/debirf/make-debirf
r309 r310 9 9 source "$CMD_PATH/debirf.conf" 10 10 11 DEBIRF_KERNEL_PACKAGE="$1" 11 if [ "$1" ]; then 12 DEBIRF_KERNEL_PACKAGE="$1" 13 fi 12 14 13 15 cd "$DEBIRF_PATH" … … 56 58 57 59 > .stage/1 58 }59 60 install_kernel_dpkg() {61 local KNAME=$(basename "$1")62 cp "$1" "$DEBIRF_ROOT/root/$KNAME"63 chroot "$DEBIRF_ROOT" dpkg --install "root/$KNAME"64 # and clean up, just in case there were missing dependencies.65 chroot "$DEBIRF_ROOT" apt-get -f install66 rm "$DEBIRF_ROOT/root/$KNAME"67 }68 69 install_kernel() {70 # kernel install settings71 cat >"$DEBIRF_ROOT/etc/kernel-img.conf" <<EOF72 # debirf: default kernel-img options:73 do_symlinks = yes74 do_bootloader = no75 do_initrd = yes76 EOF77 78 local CANDNAME=$(dpkg -I "$1" | grep '^ Package:' | awk '{ print $2 }' )79 local CANDVERS=$(dpkg -I "$1" | grep '^ Package:' | awk '{ print $3 }' )80 81 install_kernel_dpkg "$1"82 83 # extract kernel, debian stock initrd, and remove them from the fs:84 mkdir -p extras/boot85 local KERNEL="$DEBIRF_ROOT/boot/vmlinu"*"$CANDNAME"86 local INITRD="$DEBIRF_ROOT/boot/initrd"*"$CANDNAME"87 [ -f "$KERNEL" ] && mv "$KERNEL" extras/boot/$(basename "$KERNEL")88 [ -f "$INITRD" ] && mv "$INITRD" extras/boot/$(basename "$INITRD")89 90 > .stage/291 60 } 92 61 … … 163 132 install_plugins 164 133 165 ##### install kernel166 if [ -r "$DEBIRF_KERNEL_PACKAGE" ] ; then167 read -p "install kernel ${DEBIRF_KERNEL_PACKAGE}? [Y|n]: " -n 1 OK ; [ -z $OK ] || echo168 else169 msg "WARNING: could not find the kernel package '${DEBIRF_KERNEL_PACKAGE}'"170 fi171 if [ -z "$OK" -o "${OK/y/Y}" = 'Y' ] ; then172 msg "installing kernel..."173 install_kernel "$DEBIRF_KERNEL_PACKAGE"174 else175 msg "WARNING: things will not work properly without the proper kernel modules installed unless you've built a non-modular kernel."176 fi177 178 134 ##### prune 179 135 msg "pruning..."
Note: See TracChangeset
for help on using the changeset viewer.

