diff options
author | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2016-11-12 20:24:13 +0000 |
---|---|---|
committer | Martin Whitaker <mageia@martin-whitaker.me.uk> | 2016-11-12 20:24:13 +0000 |
commit | 66d7f76df255efeaf2240b16114c222e5328cab0 (patch) | |
tree | 091a403b1781bcc01eec843810af7aa2c69ce8d3 | |
parent | 81e203dcfbded9880bc84c22766d67f2372d442d (diff) | |
download | drakiso-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-x | draklive | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) }; |