diff options
Diffstat (limited to 'bin/debvm-create')
-rwxr-xr-x | bin/debvm-create | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/bin/debvm-create b/bin/debvm-create index 637d613..c554165 100755 --- a/bin/debvm-create +++ b/bin/debvm-create @@ -72,7 +72,8 @@ cmdline and passes it as C<TERM> to B<agetty>. =item B<kernel> skips installing a linux kernel image. -This can be useful to install a custom kernel or to install a different kernel variant than is selected by default. +This can be useful to install a kernel without a package. +If a kernel is installed via B<mmdebstrap> option C<--include>, automtatic kernel installation is automatically skipped. =item B<packagelists> @@ -224,33 +225,8 @@ check_skip() { esac } -KERNEL_ARCH=$ARCHITECTURE -case "$ARCHITECTURE" in - armhf) - KERNEL_ARCH=armmp - ;; - hppa) - KERNEL_ARCH=parisc - ;; - i386) - KERNEL_ARCH=686-pae - ;; - mips64el) - KERNEL_ARCH=5kc-malta - ;; - mipsel) - KERNEL_ARCH=4kc-malta - ;; - ppc64) - KERNEL_ARCH=powerpc64 - ;; - ppc64el) - KERNEL_ARCH=powerpc64le - ;; -esac - if ! check_skip kernel; then - set -- "--include=?not(?virtual)?or(?exact-name(linux-image-cloud-$KERNEL_ARCH),?exact-name(linux-image-$KERNEL_ARCH),?exact-name(linux-image-generic))" "$@" + set -- "--customize-hook=$SHARE_DIR/customize-kernel.sh" "$@" fi # construct mmdebstrap options as $@: |