diff --git a/gnomeos/yocto/gnomeos-install.sh b/gnomeos/yocto/gnomeos-install.sh index 613d9c50..b9621f62 100755 --- a/gnomeos/yocto/gnomeos-install.sh +++ b/gnomeos/yocto/gnomeos-install.sh @@ -55,12 +55,15 @@ EOF exit 1 fi +uname=$(uname -r) + cd /ostree for branch in runtime devel; do rev=$(ostree --repo=$(pwd)/repo rev-parse ${BRANCH_PREFIX}${branch}); if ! test -d ${BRANCH_PREFIX}${branch}-${rev}; then ostree --repo=repo checkout ${rev} ${BRANCH_PREFIX}${branch}-${rev} ostbuild chroot-run-triggers ${BRANCH_PREFIX}${branch}-${rev} + cp -ar /lib/modules/${uname} ${BRANCH_PREFIX}${branch}-${rev}/lib/modules/${uname} fi rm -f ${BRANCH_PREFIX}${branch}-current ln -s ${BRANCH_PREFIX}${branch}-${rev} ${BRANCH_PREFIX}${branch}-current @@ -79,3 +82,24 @@ GRUB 2 not detected; you'll need to edit e.g. /boot/grub/grub.conf manually Kernel has been installed as /boot/bzImage-gnomeos.bin EOF fi + +kernel=/boot/vmlinuz-${uname} +if ! test -f "${kernel}"; then + cat <