summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2016-11-12 20:24:13 +0000
committerMartin Whitaker <mageia@martin-whitaker.me.uk>2016-11-12 20:24:13 +0000
commit66d7f76df255efeaf2240b16114c222e5328cab0 (patch)
tree091a403b1781bcc01eec843810af7aa2c69ce8d3
parent81e203dcfbded9880bc84c22766d67f2372d442d (diff)
downloaddrakiso-66d7f76df255efeaf2240b16114c222e5328cab0.tar
drakiso-66d7f76df255efeaf2240b16114c222e5328cab0.tar.gz
drakiso-66d7f76df255efeaf2240b16114c222e5328cab0.tar.bz2
drakiso-66d7f76df255efeaf2240b16114c222e5328cab0.tar.xz
drakiso-66d7f76df255efeaf2240b16114c222e5328cab0.zip
draklive: replace placeholder with actual disk label in EFI grub.cfg file.
-rwxr-xr-xdraklive2
1 files changed, 2 insertions, 0 deletions
diff --git a/draklive b/draklive
index ca348be..9049366 100755
--- a/draklive
+++ b/draklive
@@ -656,6 +656,8 @@ sub create_efi_boot_image {
my ($live) = @_;
my $src_dir = $live->get_builddir . $live->{prefix}{build}{files} . '/EFI';
my $dst_dir = $live->get_builddir . $live->{prefix}{build}{files} . '/boot';
+ my $label = $live->{media}->get_media_label;
+ run_("sed", "-i", "s/VOLUME_LABEL/$label/g", $src_dir . '/BOOT/grub.cfg');
mkdir_p($dst_dir);
my $boot_image = $dst_dir . '/efiboot.img';
eval { rm_rf($boot_image) };