diff options
| author | Simon Rettberg | 2025-01-15 15:06:38 +0100 |
|---|---|---|
| committer | Simon Rettberg | 2025-01-15 15:06:38 +0100 |
| commit | 8616baf99739ad9ba4db46bb32c5f56918ea31de (patch) | |
| tree | 471ba31486a04a71960d064b3428a40968d262ac /core/modules | |
| parent | [nvidia-common] Update local download url (diff) | |
| download | mltk-8616baf99739ad9ba4db46bb32c5f56918ea31de.tar.gz mltk-8616baf99739ad9ba4db46bb32c5f56918ea31de.tar.xz mltk-8616baf99739ad9ba4db46bb32c5f56918ea31de.zip | |
[vmware12] Make sure directory exists, handle error
Diffstat (limited to 'core/modules')
| -rw-r--r-- | core/modules/vmware12/module.build | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/vmware12/module.build b/core/modules/vmware12/module.build index 714d7abe..23eab338 100644 --- a/core/modules/vmware12/module.build +++ b/core/modules/vmware12/module.build @@ -113,6 +113,7 @@ build() { # This is required as there are still some uname calls in the Makefiles, EVEN THOUGH # YOU SPECIFY ANOTHER KERNEL via -k below. Building will fail for a 5.x kernel if you # run on a system with a 4.x kernel. + mkdir -p "${MODULE_BUILD_DIR}/usr/local/bin" cat > "${MODULE_BUILD_DIR}/usr/local/bin/uname" <<-EOF #!/bin/sh if [ "\$1" = "-r" ]; then @@ -121,7 +122,7 @@ build() { /bin/uname "\$@" || /usr/bin/uname "\$@" fi EOF - chmod +x "${MODULE_BUILD_DIR}/usr/local/bin/uname" + chmod +x "${MODULE_BUILD_DIR}/usr/local/bin/uname" || perror "Cannot create/chmod uname wrapper" chroot_run "${MODULE_BUILD_DIR}" <<-EOF perror() { echo "[ERROR ERROR] " "\$@" >&6 |
