# source and not a meta package from 'linux-latest'
fetch_debian_package $site Packages.gz -Pe ^linux-image-.*-${bpok}$ \
>backports.deb
- dpkg-deb -x backports.deb x
- cp x/boot/vmlinuz-* linux.backports
+ specialkernel=backports
+fi
+if [ "x$specialkernel" != x ]; then
+ dpkg-deb -x $specialkernel.deb x
+ cp x/boot/vmlinuz-* linux.$specialkernel
# The full set of modules is pretty large and not that
# useful. Just pull in the ones we need for our particular
# preseed, which is basically disk, net, filesystems and LVM.
-path \*/kernel/drivers/usb/host/\* \) \
|pax -x sv4cpio -s '%lib%/lib%' -d -w -M norm >../cpio; cd ..
gzip -9nf cpio
- mv cpio.gz backports.cpio.gz
+ mv cpio.gz $specialkernel.cpio.gz
if [ -d x/usr/lib/linux-image-*-${bpok}/ ] ; then
- rm -rf backports-dtbs/
- mkdir backports-dtbs/
+ rm -rf $specialkernel-dtbs/
+ mkdir $specialkernel-dtbs/
find x/usr/lib/linux-image-*-${bpok} -name '*.dtb' -print0 | \
- xargs -0r sh -ec 'mv -- "$@" backports-dtbs/' x
- tar --mtime=./x/usr/lib -cf backports-dtbs.tar backports-dtbs
- gzip -9nf backports-dtbs.tar
+ xargs -0r sh -ec 'mv -- "$@" '$specialkernel'-dtbs/' x
+ tar --mtime=./x/usr/lib -cf $specialkernel-dtbs.tar $specialkernel-dtbs
+ gzip -9nf $specialkernel-dtbs.tar
fi
rm -rf x
fi