[pve-devel] [PATCH installer 2/3] explicitly mount ESP as vfat

Fabian Grünbichler f.gruenbichler at proxmox.com
Thu May 4 09:56:52 CEST 2017


otherwise "mount" might get confused by old zpool labels or
other cruft, and error out.

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 proxinstall | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proxinstall b/proxinstall
index 26fd655..e863b71 100755
--- a/proxinstall
+++ b/proxinstall
@@ -1507,7 +1507,7 @@ _EOD
 			die "unable to install the i386-pc boot loader on '$dev'\n";
 
 		if ($di->{esp}) {
-		    syscmd ("mount -n $di->{esp} $targetdir/boot/efi") == 0 ||
+		    syscmd ("mount -n $di->{esp} -t vfat $targetdir/boot/efi") == 0 ||
 			die "unable to mount $di->{esp}\n";
 		    my $rc = syscmd ("chroot $targetdir /usr/sbin/grub-install --target x86_64-efi --no-floppy --bootloader-id='proxmox' $dev");
 		    if ($rc != 0) {
-- 
2.1.4





More information about the pve-devel mailing list