Forward-port sever-live additions for intel-iotg

intel-iotg-server-jammy
Łukasz 'sil2100' Zemczak 2 years ago
parent f2ccb4bb40
commit 48dd1043b2

@ -848,9 +848,15 @@ case $PROJECT in
# the GA and HWE kernels (in separate layers) so this code is # the GA and HWE kernels (in separate layers) so this code is
# written generically to support both even though a lot of the # written generically to support both even though a lot of the
# time only one kernel is offered. # time only one kernel is offered.
case ${SUBARCH-} in
# variants='ga hwe' intel-iot)
variants='ga' variants='intel'
;;
*)
# variants='ga hwe'
variants='ga'
;;
esac
for variant in $variants; do for variant in $variants; do
if [ "$variant" = "ga" ]; then if [ "$variant" = "ga" ]; then
@ -859,6 +865,9 @@ case $PROJECT in
elif [ "$variant" = "hwe" ]; then elif [ "$variant" = "hwe" ]; then
kernel_metapkg=linux-generic-hwe-$(lsb_release -sr) kernel_metapkg=linux-generic-hwe-$(lsb_release -sr)
flavor=generic-hwe flavor=generic-hwe
elif [ "$variant" = "intel" ]; then
kernel_metapkg=linux-intel-iotg
flavor=intel-iotg
else else
echo "bogus variant: $variant" echo "bogus variant: $variant"
exit 1 exit 1

@ -8,6 +8,8 @@ case $PASS in
kernel_metapkg=linux-generic kernel_metapkg=linux-generic
elif [ "$flavor" = "generic-hwe" ]; then elif [ "$flavor" = "generic-hwe" ]; then
kernel_metapkg=linux-generic-hwe-$(lsb_release -sr) kernel_metapkg=linux-generic-hwe-$(lsb_release -sr)
elif [ "$flavor" = "intel" ]; then
kernel_metapkg=linux-intel-iotg
else else
echo "bogus flavor: $flavor" echo "bogus flavor: $flavor"
exit 1 exit 1

@ -10,6 +10,8 @@ case $PASS in
;; ;;
esac esac
PROJECT=$PROJECT${SUBARCH:+-$SUBARCH}
# Fish out generated kernel image and initrd # Fish out generated kernel image and initrd
mv chroot/boot/initrd.img-* ${PWD}/livecd.${PROJECT}.initrd-$flavor mv chroot/boot/initrd.img-* ${PWD}/livecd.${PROJECT}.initrd-$flavor
mv chroot/boot/vmlinu?-* ${PWD}/livecd.${PROJECT}.kernel-$flavor mv chroot/boot/vmlinu?-* ${PWD}/livecd.${PROJECT}.kernel-$flavor

Loading…
Cancel
Save