X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=chroot-script;h=3ae79ee12f32140e5e662aa3e10644a16620f712;hp=677f319a318a45f0df3a7d1931b0f0c1d8cf242c;hb=a94eaaa51e05f51e8576545834ae7a000c391dcc;hpb=1fa99e59ffee42202017c89890228f8887ef68c2 diff --git a/chroot-script b/chroot-script index 677f319..3ae79ee 100755 --- a/chroot-script +++ b/chroot-script @@ -88,7 +88,7 @@ chrootmirror() { # add security.debian.org: case "$RELEASE" in - unstable|sid) ;; # no security pool available + unstable|sid|lenny) ;; # no security pool available *) echo "Adding security.debian.org to sources.list." echo "deb http://security.debian.org ${RELEASE}/updates $COMPONENTS" >> /etc/apt/sources.list @@ -311,6 +311,11 @@ get_kernel_version() { # install kernel packages {{{ kernel() { + if [ -n "$NOKERNEL" ] ; then + echo "Skipping installation of kernel packages as requested via --nokernel" + return 0 + fi + $APTUPDATE KVER=$(get_kernel_version) if [ -n "$KVER" ] ; then