summaryrefslogtreecommitdiffstats
path: root/lib/MGA/DrakISO
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2018-12-19 15:39:58 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2018-12-19 15:39:58 +0000
commita5428197dbdaa5c8b2369f111d548e4d3a866cc1 (patch)
tree0a618cfdb065aafb9c891e2986d8a9e050099a32 /lib/MGA/DrakISO
parentdb7a5a220b913eff9b0e7b49746bf922ebbc7df4 (diff)
downloaddrakiso-a5428197dbdaa5c8b2369f111d548e4d3a866cc1.tar
drakiso-a5428197dbdaa5c8b2369f111d548e4d3a866cc1.tar.gz
drakiso-a5428197dbdaa5c8b2369f111d548e4d3a866cc1.tar.bz2
drakiso-a5428197dbdaa5c8b2369f111d548e4d3a866cc1.tar.xz
drakiso-a5428197dbdaa5c8b2369f111d548e4d3a866cc1.zip
Give the ESP partition a volume label, to work round mga#23939.
Diffstat (limited to 'lib/MGA/DrakISO')
-rw-r--r--lib/MGA/DrakISO/BuildBoot.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/MGA/DrakISO/BuildBoot.pm b/lib/MGA/DrakISO/BuildBoot.pm
index 95c1a10..2775203 100644
--- a/lib/MGA/DrakISO/BuildBoot.pm
+++ b/lib/MGA/DrakISO/BuildBoot.pm
@@ -270,9 +270,10 @@ sub prepare_iso_bootloader {
mkdir_p($images_dir);
# Construct an ESP image. This is needed for USB boot.
+ # Give it a label, to try to work around mga#23939.
my $esp_image = $images_dir . '/esp.img';
eval { rm_rf($esp_image) };
- run_('/sbin/mkdosfs', '-F12', '-C', $esp_image, '4096');
+ run_('/sbin/mkdosfs', '-n', 'MGALIVE-ESP', '-F12', '-C', $esp_image, '4096');
run_('mcopy', '-s', '-i', $esp_image, $efi_root_dir, '::');
# Now we've built the ESP image, we can delete the grub2 image. We need