summaryrefslogtreecommitdiffstats
path: root/draklive
diff options
context:
space:
mode:
Diffstat (limited to 'draklive')
-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) };