Your message dated Mon, 21 Nov 2016 12:48:34 +0000
with message-id <[email protected]>
and subject line Bug#843593: fixed in fai 5.3
has caused the Debian Bug report #843593,
regarding Please add support for ESP partitions
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.)
--
843593: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=843593
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
package: fai
version: 5.2
tags: patch
severity: wishlist
It's impossible to use FAI to install for a platform/system that
requires UEFI because FAI does not currently support setting up a
extended system partition as required by the UEFI spec.
This patch adds code to do that.
I did not update the documentation in this patch, because I'm not that
familiar with all the documentation I'd need to touch.
An example disk_config might look something like:
#
# <type> <mountpoint> <size> <fs type> <mount options> <misc options>
disk_config disk1 disklabel:gpt bootable:1 esp:1 fstabkey:uuid align-at:1M
primary /boot/efi 300 vfat defaults
primary / 300- ext4 rw,barrier=0,noatime,errors=remount-ro
tuneopts="-c 0 -i 0"
>From 06a30575b8c473da89a031587debd8f6f350ba6b Mon Sep 17 00:00:00 2001
From: Sam Hartman <[email protected]>
Date: Mon, 7 Nov 2016 16:41:12 -0500
Subject: [PATCH] Add support for ESP partitions
UEFI requires a special vfat partition on which the boot loader and
potentially other UEFI information lives. Parted represents this with
an esp flag. Add support for this in setup-storage.
---
lib/setup-storage/Commands.pm | 2 ++
lib/setup-storage/Parser.pm | 8 ++++++++
2 files changed, 10 insertions(+)
diff --git a/lib/setup-storage/Commands.pm b/lib/setup-storage/Commands.pm
index 31898ca..6190343 100755
--- a/lib/setup-storage/Commands.pm
+++ b/lib/setup-storage/Commands.pm
@@ -1344,6 +1344,8 @@ sub setup_partitions {
if ($part->{size}->{preserve} || $part->{size}->{resize});
# set the bootable flag, if requested at all
$flags .= ",boot" if($FAI::configs{$config}{bootable} == $part_id);
+ # set the ESP flag, if requested at all
+ $flags .= ",esp" if($FAI::configs{$config}{esp} == $part_id);
# set the bios_grub flag on BIOS compatible GPT tables
$flags .= ",bios_grub" if($FAI::configs{$config}{disklabel} eq "gpt-bios"
&& $FAI::configs{$config}{gpt_bios_part} == $part_id);
diff --git a/lib/setup-storage/Parser.pm b/lib/setup-storage/Parser.pm
index 943eaa5..d58afe9 100755
--- a/lib/setup-storage/Parser.pm
+++ b/lib/setup-storage/Parser.pm
@@ -144,6 +144,7 @@ sub init_disk_config {
virtual => 0,
disklabel => "msdos",
bootable => -1,
+ esp => 0,
fstabkey => "device",
preserveparts => 0,
partitions => {},
@@ -690,6 +691,13 @@ $FAI::Parser = Parse::RecDescent->new(
($FAI::device =~ /^PHY_(.+)$/) or
&FAI::internal_error("unexpected device name");
}
+ | /^esp:(\d+)/
+ {
+ # specify a partition that should get the ESP flag set
+ $FAI::configs{$FAI::device}{esp} = $1;
+ ($FAI::device =~ /^PHY_(.+)$/) or
+ &FAI::internal_error("unexpected device name");
+ }
| 'virtual'
{
# this is a configuration for a virtual disk
--
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 ---