#!/bin/bash #* Copyright (c) 2020 Intel Corporation All rights reserved. # postinst script for acrn kernel filename="/etc/grub.d/40_custom" menu=$(grep ACRN_deb_multiboot2 ${filename}) || true type=$(lsblk -l |awk '$NF == "/" {print $1}') str=$(blkid |grep ${type}) uuid=$(echo $str |cut -d " " -f 2|cut -d "=" -f 2) str=$(blkid |grep ${type}) partuuid=$(echo ${str##*PARTUUID=}) if [ -z "$menu" ] then cat>"${filename}"<