From 66d7f76df255efeaf2240b16114c222e5328cab0 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 12 Nov 2016 20:24:13 +0000 Subject: draklive: replace placeholder with actual disk label in EFI grub.cfg file. --- draklive | 2 ++ 1 file changed, 2 insertions(+) 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) }; -- cgit v1.2.1