summaryrefslogtreecommitdiffstats
path: root/client/engine
diff options
context:
space:
mode:
authorIrina Gómez <irinagomez@us.es>2019-08-21 12:20:22 +0200
committerIrina Gómez <irinagomez@us.es>2019-08-21 12:20:22 +0200
commite3b1b1e2a90629eff6d42d0004a8c1b9ae2f1cda (patch)
tree19ffcdde550bf8daa9fb4354ba3562746ced6354 /client/engine
parentaceea316040e27f6ce272e637a21f9c42e1974b8 (diff)
#922 Fixes create of grub.cfg by ogGrubInstall: In '/etc/grub.d/00_header' when 'pkgdatadir' is empty it takes same value than other ogLive.
Diffstat (limited to 'client/engine')
-rwxr-xr-xclient/engine/OgLiveAdapter.lib4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/engine/OgLiveAdapter.lib b/client/engine/OgLiveAdapter.lib
index 44f49534..f6cc9373 100755
--- a/client/engine/OgLiveAdapter.lib
+++ b/client/engine/OgLiveAdapter.lib
@@ -13,3 +13,7 @@ shopt -s expand_aliases
# read: Configura el salto de línea como delimintador por defecto.
alias read='read -d\n'
+
+# Creación del menú grub.cfg.
+# En /etc/grub.d/00_header si 'pkgdatadir' está vacía ponemos valor otros ogLive
+sed -i '/grub-mkconfig_lib/i\pkgdatadir=${pkgdatadir:-"${datarootdir}/grub"}' /etc/grub.d/00_header