From: Michael Prokop Date: Fri, 3 Nov 2006 22:27:47 +0000 (+0100) Subject: rewrote kernel package version handling X-Git-Tag: 0.2~27 X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=68dbb4420447df9e744a195718e3dc6068c9ddee;hp=93dc78c05afaa9e4a6f7f822203c69f8402ce4d1 rewrote kernel package version handling --- diff --git a/chroot-script b/chroot-script index 4a505ac..50d3f4f 100644 --- a/chroot-script +++ b/chroot-script @@ -38,6 +38,16 @@ if [ "$PACKAGES" = 'yes' ] ; then fi fi +if [ -n "$KERNEL" ] ; then + apt-get update + if [ "$RELEASE" = 'sarge' ] ; then + KERNELPACKAGES="kernel-image-$KERNEL" + else + KERNELPACKAGES="linux-image-$KERNEL" + fi + apt-get --force-yes -y install $KERNELPACKAGES +fi + if [ -n "$RECONFIGURE" ] ; then for package in $RECONFIGURE ; do dpkg --list $package 1>/dev/null 2>/dev/null && dpkg-reconfigure $package || echo "Warning: $package does not exist, can not reconfigure it." diff --git a/config b/config index f8e7ded..f710c54 100644 --- a/config +++ b/config @@ -38,8 +38,8 @@ RELEASE='etch' # hostname of new system HOSTNAME='grml' -# kernel version -KERNEL='linux-image-686' +# kernel version which should be installed +KERNEL='2.6-686' # name of debootstrap executable # supported values: debootstrap cdebootstrap diff --git a/packages b/packages index 0435901..ad3d0e6 100644 --- a/packages +++ b/packages @@ -1,3 +1,3 @@ locales console-data -linux-headers-2.6-686 linux-image-2.6-686 initrd-tools grub mdadm lvm2 +initrd-tools grub mdadm lvm2 bzip2 dhcp3-client file less lsof most pciutils resolvconf screen ssh strace sysfsutils usbutils vim w3m zsh