Your message dated Mon, 21 Nov 2016 12:48:34 +0000
with message-id <[email protected]>
and subject line Bug#843639: fixed in fai 5.3
has caused the Debian Bug report #843639,
regarding Please add EFI support
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
843639: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=843639
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
package: fai
version: 5.2
tags: patch
severity: wishlist
This patch adds EFI support to the simple configuration space. I've
tested in my configuration space but it's possible I mangled something
transforming to the default config space.
to test, set up a disk_config with an ESP say in the EFI_DISK class and
run something like
fai-diskimage -c DEBIAN,EFI_DISK,GRUB_EFI,AMD64 /tmp/image.raw
Then to boot
apt-get install ovmf #from non-free:-(
kvm -drive file=/usr/share/ovmf/OVMF.fd,readonly,if=pflash -snapshot -m
1024 -hda /tmp/image.raw
>From 62a518ac2cf6a6911483c55aa2a4961911fa93da Mon Sep 17 00:00:00 2001
From: Sam Hartman <[email protected]>
Date: Tue, 8 Nov 2016 08:42:01 -0500
Subject: [PATCH] Add GRUB_EFI class
Add a class to install an EFI boot loader on a GPT-partitioned system
with an ESP.
Change the class misc logic not to assert GRUB_PC if GRUB_EFI is
defined. For now, though, prefer GRUB_PC to GRUB_EFI.
---
examples/simple/class/60-misc | 4 +-
examples/simple/package_config/DEBIAN | 3 ++
examples/simple/scripts/GRUB_EFI/10-setup | 67 +++++++++++++++++++++++++++++++
3 files changed, 73 insertions(+), 1 deletion(-)
create mode 100755 examples/simple/scripts/GRUB_EFI/10-setup
diff --git a/examples/simple/class/60-misc b/examples/simple/class/60-misc
index 22a30c0..9733dcb 100755
--- a/examples/simple/class/60-misc
+++ b/examples/simple/class/60-misc
@@ -1,4 +1,6 @@
#! /bin/bash
ifclass -o CENTOS SLC && exit 0
-ifclass -o I386 AMD64 && echo GRUB_PC
+if ifclass -o I386 AMD64 ; then
+ ifclass -o GRUB_PC GRUB_EFI ||echo GRUB_PC
+fi
diff --git a/examples/simple/package_config/DEBIAN
b/examples/simple/package_config/DEBIAN
index d5730e9..bdec0d6 100644
--- a/examples/simple/package_config/DEBIAN
+++ b/examples/simple/package_config/DEBIAN
@@ -16,6 +16,9 @@ isc-dhcp-client
PACKAGES install GRUB_PC
grub-pc
+PACKAGES install GRUB_EFI
+grub-efi
+
PACKAGES install LVM
lvm2
diff --git a/examples/simple/scripts/GRUB_EFI/10-setup
b/examples/simple/scripts/GRUB_EFI/10-setup
new file mode 100755
index 0000000..0f8d9e6
--- /dev/null
+++ b/examples/simple/scripts/GRUB_EFI/10-setup
@@ -0,0 +1,67 @@
+#! /bin/bash
+# support for GRUB version 2
+
+error=0; trap 'error=$(($?>$error?$?:$error))' ERR # save maximum error code
+
+# This script assumes that fthe disk has a GPT partition table and
+# that the extended system partition (ESP) is mounted on /boot/esp.
+# When building a disk image, we don't change the NVRAM to point at
+# the boot image we made available, because the disk image is likely
+# not installed on the current system. As a result, we force
+# installation into the removable media paths as well as the standard
+# debian path.
+
+set -a
+
+# do not set up grub during dirinstall
+if [ "$FAI_ACTION" = "dirinstall" ] ; then
+ exit 0
+fi
+# during softupdate use this file
+[ -r $LOGDIR/disk_var.sh ] && . $LOGDIR/disk_var.sh
+
+if [ -z "$BOOT_DEVICE" ]; then
+ exit 189
+fi
+
+# disable os-prober because of #788062
+ainsl /etc/default/grub 'GRUB_DISABLE_OS_PROBER=true'
+
+# skip the rest, if not an initial installation
+if [ $FAI_ACTION != "install" ]; then
+ $ROOTCMD update-grub
+ exit $error
+fi
+
+$ROOTCMD grub-mkdevicemap --no-floppy
+GROOT=$($ROOTCMD grub-probe -tdrive -d $BOOT_DEVICE)
+
+
+# Check if RAID is used for the boot device
+if [[ $BOOT_DEVICE =~ '/dev/md' ]]; then
+ raiddev=${BOOT_DEVICE#/dev/}
+ # install grub on all members of RAID
+ for device in `LC_ALL=C perl -ne 'if(/^'$raiddev'\s.+raid\d+\s(.+)/){
$_=$1; s/\d+\[\d+\]//g; print }' /proc/mdstat`; do
+ echo Install grub on /dev/$device
+ $ROOTCMD grub-install --no-floppy --force-extra-removable "/dev/$device"
+ done
+
+elif [[ $GROOT =~ 'hostdisk' ]]; then
+ cat > $target/boot/grub/device.map <<EOF
+(hd0) $BOOT_DEVICE
+EOF
+ $ROOTCMD grub-install --no-floppy --force-extra-removable
--modules=part_gpt --no-nvram $BOOT_DEVICE
+ if [ $? -eq 0 ]; then
+ echo "Grub installed on hostdisk $BOOT_DEVICE"
+ fi
+ rm $target/boot/grub/device.map
+
+else
+ $ROOTCMD grub-install --no-floppy --modules=part_gpt "$GROOT"
+ if [ $? -eq 0 ]; then
+ echo "Grub installed on $BOOT_DEVICE = $GROOT"
+ fi
+fi
+$ROOTCMD update-grub
+
+exit $error
--
2.9.3
--- End Message ---
--- Begin Message ---
Source: fai
Source-Version: 5.3
We believe that the bug you reported is fixed in the latest version of
fai, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Thomas Lange <[email protected]> (supplier of updated fai package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Mon, 21 Nov 2016 13:10:38 +0100
Source: fai
Binary: fai-client fai-doc fai-server fai-quickstart fai-nfsroot
fai-setup-storage
Architecture: source all
Version: 5.3
Distribution: unstable
Urgency: high
Maintainer: Thomas Lange <[email protected]>
Changed-By: Thomas Lange <[email protected]>
Description:
fai-client - Fully Automatic Installation client package
fai-doc - Documentation for FAI
fai-nfsroot - Fully Automatic Installation nfsroot package
fai-quickstart - Fully Automatic Installation quickstart package
fai-server - Fully Automatic Installation server package
fai-setup-storage - automatically prepare storage devices
Closes: 842083 843209 843593 843639 843716 843780
Changes:
fai (5.3) unstable; urgency=high
.
[ Thomas Lange ]
* install_packages: add new keyword install-norec,
calling apt-get without recommends, remove option -N
remove check for packages names using AptPkg::Cache
* control: add Depends, Breaks, Closes: #842083
* fai-diskimage: add -N, which is passed to the fai call,
Closes: #843209, do not run if host uses LVM
* fai: allow -N and -c at the same time
* package_config/DEBIAN: add locales-all for class CLOUD
* packages_config/*: use install-norec instead of aptitude
* disk_config/CLOUD: use only one partition
* init.d/expand-root: new script used at first time boot up
* class/*/GCE: improve class GCE, add expand-root
* fai-mirror: remove test that prevents it to call multiple times
* fai, config space: remove $action and use $FAI_ACTION from the very
beginning
* class/[01-classes,02-classes]: new scripts for defining classes from
$cmdlineclasses
* subroutines: save dmesg only if running on a client host
* 10-misc: add test if localtime is a symlink, Closes: #843780
* setup-storage.8: add EFI/ESP example, Closes: #843593
.
[ Josef Lusticky ]
* fai-make-nfsroot: use apt-key to export gpg key for fai-project.org
package repository
.
[ Sam Hartman ]
* add EFI suppoort, Closes: #843639
* Commands.pm: Fix handling of btrfs single volume devices,
Closes: #843716
Checksums-Sha1:
64346a1b771ed666db6270aba05c002201e0e5b0 1887 fai_5.3.dsc
b3562fc5b2be950a8ef51f01542fc620e73336eb 10156228 fai_5.3.tar.xz
93ee5bc237d4403b9148378e6f27cc6cac3af392 140780 fai-client_5.3_all.deb
70f1c6589fb1a78878615382ee2cba67c76d946d 757486 fai-doc_5.3_all.deb
692646e3ed468674d6676d2a8bc9abfa2dcb2a88 67052 fai-server_5.3_all.deb
7a4423644dc6c79cc76b8eb0481d5513a833aa67 1524 fai-quickstart_5.3_all.deb
6619b430010901e51da509aeb5ac77a458095c7c 84658 fai-nfsroot_5.3_all.deb
4b31d639e8cb301cbf04f8b519bcdd7dec36f06c 123706 fai-setup-storage_5.3_all.deb
Checksums-Sha256:
6da1f3249ffd184046bb02ae1319dc5caaf817f48e3296fe307f1075d628cc77 1887
fai_5.3.dsc
f670d702e2c9fda588ed47671775b0b263889e18b11547cfae8bf62a47af5c55 10156228
fai_5.3.tar.xz
cb15e506e960884aaf7ca9cbec79753dbfd097438c16a01f62656285330ae4c9 140780
fai-client_5.3_all.deb
a2cefbeb6a7331109c16b296889698bd7b0380664b7ae5191cffdcc29faf8fb5 757486
fai-doc_5.3_all.deb
7b8ef2f60e9bed9cb6405793e8fa2c9a02a64dee041ac2fd4b283c9cf2afe29d 67052
fai-server_5.3_all.deb
34997bbc4a25d8596ac80631efd775575b3543e816b0f5dcf99ff3352e82c05c 1524
fai-quickstart_5.3_all.deb
680b304bcfd8f507e266df6607b2973466b5501b864f1f3755e3fc0c31b9cbae 84658
fai-nfsroot_5.3_all.deb
0c8b72e87d1cbda6949ebddc427208a7878a92aad1319ae99877cb4ee46880b3 123706
fai-setup-storage_5.3_all.deb
Files:
b01d26a6fb84a6977680b8221ae66724 1887 admin extra fai_5.3.dsc
adb0fb5a4321a6656fac4ca07c268b66 10156228 admin extra fai_5.3.tar.xz
d506e22a8c78a1bcc7223c06a54fb2d0 140780 admin extra fai-client_5.3_all.deb
438274b95efdc0ee175d4a0a8bbd7ffc 757486 doc extra fai-doc_5.3_all.deb
d34abfd2c9a6ee8f007633e72ba42661 67052 admin extra fai-server_5.3_all.deb
9ca57255cbac7eba877070c371a1ef16 1524 admin extra fai-quickstart_5.3_all.deb
dde39ffe246b3ccb9388dc62f7ff530d 84658 admin extra fai-nfsroot_5.3_all.deb
60e3738482a6f8a3af031f5f699b0cb2 123706 admin extra
fai-setup-storage_5.3_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBCAAGBQJYMua2AAoJECv42f4HS83kL34QAJRzQMWAqX6cXN6EfteLe8q8
8fFgmYETwym4qudO5LIkvq619dos+dbs1UkkhXQvFaibRdLstA5NLQpcVq57I32C
yIDAH3yQVQnGRXho3pf2RLyBjgdRnGsjuj9tcAHjObphu6mFQKVMHYcrt9QsD6wO
h859i4flXSyc+rAk5V8t/NCagMyU9GnZCTi1qTP2xgzLnxYnA0K3S2wgdGgoiC6R
gLYE8+UR35VmAcrvK/aC3pjr7IeKSAM+N9WC54vU6ZW2Xio4qZkYzFUz28/035gp
DBL7+xpNbcXo/yhP6H+s4+VRiHCZv0xWLd27j/Qkpt1scopjUl8FlvGtWY+gIqiD
l9jZPw7w03RJkVofUnTL50fDPyXHcR828rlfbHnAAJvJUafKcmaMs99Gf9OOxN7Z
hzcMINXCnfJ/WEryukZqLSggOfbLycWLYrASsNQUndL9yuTBQWfGd8EVa9Pbud1Y
EpFiDld9g11kkR/RVB27L4CPHqOqvuj9X4XuuUYrTguExZ8Meel34x/gaeBH3qlU
Qv6yOTS9ENPiFVqqG8fj7vEXxO0d1ElB5XobNah76rCevfn9PGW2FAv+OZCQPUW2
el0dqmBz5UFju757mzFjFtJjtijb8Afz3i0OvU+GV8A3CPaQBlcUqdSJZ4B8LcEK
wGKNb13nxWqMK4Rh7u22
=MVPY
-----END PGP SIGNATURE-----
--- End Message ---