diff options
| author | Tom Lendacky <26725967+tlendacky@users.noreply.github.com> | 2022-05-11 12:46:26 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-11 12:46:26 -0500 |
| commit | 8c668a342688ad945243c68015538dc6b79221da (patch) | |
| tree | 0abed7ba74777b01797a29a5902232e83cde7ece | |
| parent | f4376e5887939ee8c8e0c62e835fd278b84140c9 (diff) | |
| parent | 9239045e317fc1ea17fefb294f50ed49b02e1ec6 (diff) | |
| download | cachepc-amdsev-8c668a342688ad945243c68015538dc6b79221da.tar.gz cachepc-amdsev-8c668a342688ad945243c68015538dc6b79221da.zip | |
Merge pull request #96 from JustPlay/sev-snp-devel
update build/common/install.sh to support debian (use ID or ID_LIKE)
| -rwxr-xr-x | build.sh | 2 | ||||
| -rwxr-xr-x | common.sh | 2 | ||||
| -rwxr-xr-x | install.sh | 4 |
3 files changed, 4 insertions, 4 deletions
@@ -80,7 +80,7 @@ if [[ "$BUILD_PACKAGE" = "1" ]]; then mkdir -p $OUTPUT_DIR/usr cp -dpR $INSTALL_DIR $OUTPUT_DIR/usr/ - if [ "$ID_LIKE" = "debian" ]; then + if [ "$ID" = "debian" ] || [ "$ID_LIKE" = "debian" ]; then cp linux/linux-*-guest-*.deb $OUTPUT_DIR/linux/guest -v cp linux/linux-*-host-*.deb $OUTPUT_DIR/linux/host -v else @@ -77,7 +77,7 @@ build_kernel() # Build run_cmd $MAKE >/dev/null - if [ "$ID_LIKE" = "debian" ]; then + if [ "$ID" = "debian" ] || [ "$ID_LIKE" = "debian" ]; then run_cmd $MAKE bindeb-pkg else run_cmd $MAKE "RPMOPTS='--define \"_rpmdir .\"'" binrpm-pkg @@ -3,13 +3,13 @@ [ -e /etc/os-release ] && . /etc/os-release # This will install all the dependent packages for qemu and ovmf to run -if [ "$ID_LIKE" = "debian" ]; then +if [ "$ID" = "debian" ] || [ "$ID_LIKE" = "debian" ]; then apt-get -y install qemu ovmf else dnf install qemu edk2-ovmf fi -if [ "$ID_LIKE" = "debian" ]; then +if [ "$ID" = "debian" ] || [ "$ID_LIKE" = "debian" ]; then dpkg -i linux/host/linux-image-*.deb else rpm -ivh linux/kernel-*.rpm |
