curtin-dev team mailing list archive
-
curtin-dev team
-
Mailing list archive
-
Message #00574
[Merge] ~ltrager/curtin:lp1881977 into curtin:master
Lee Trager has proposed merging ~ltrager/curtin:lp1881977 into curtin:master.
Commit message:
LP: #1881977 - Install realpath on Trusty UEFI.
Requested reviews:
curtin developers (curtin-dev)
Related bugs:
Bug #1881977 in curtin: "Ubuntu 14.04 failing to deploy on UEFI"
https://bugs.launchpad.net/curtin/+bug/1881977
For more details, see:
https://code.launchpad.net/~ltrager/curtin/+git/curtin/+merge/385079
--
Your team curtin developers is requested to review the proposed merge of ~ltrager/curtin:lp1881977 into curtin:master.
diff --git a/curtin/commands/curthooks.py b/curtin/commands/curthooks.py
index d66afa7..11c718a 100644
--- a/curtin/commands/curthooks.py
+++ b/curtin/commands/curthooks.py
@@ -1176,6 +1176,11 @@ def install_missing_packages(cfg, target, osfamily=DISTROS.debian):
# AMD64 has shim-signed for SecureBoot support
if arch == "amd64":
uefi_pkgs.append("shim-signed")
+
+ # realpath is part of coreutils in Xenial+, older versions need
+ # the package to be installed.
+ if not util.which("realpath"):
+ uefi_pkgs.append("realpath")
else:
raise ValueError('Unknown grub2 package list for distro: %s' %
osfamily)
Follow ups