diff options
author | Irina Gómez <irinagomez@us.es> | 2019-03-05 14:28:58 +0100 |
---|---|---|
committer | Irina Gómez <irinagomez@us.es> | 2019-03-05 14:28:58 +0100 |
commit | 36737376fa003acf129dd69be02cbc1ac2bc049c (patch) | |
tree | ec903a6ec1e125ea0e791f1826e8bfd9cd6eed59 /client/shared | |
parent | 40bd9f5d30a2de8ac5293616f786a8dbdcc7ed34 (diff) |
#890 #802 ogGrubInstall: To get kernel parameters we need the original grub.cfg: it\'s move at the end. grubSyntax: In kernel parameters, replaces UUID for DEVICE.
Diffstat (limited to 'client/shared')
-rwxr-xr-x | client/shared/scripts/grubSyntax | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/shared/scripts/grubSyntax b/client/shared/scripts/grubSyntax index 209cfc00..2c82e2e9 100755 --- a/client/shared/scripts/grubSyntax +++ b/client/shared/scripts/grubSyntax @@ -7,6 +7,7 @@ set -e #basado en scripts del paquete de grub #Antonio Doblas Viso #Universidad de Málaga +#@version 1.1.1 - En los parámetros del kernel se sustituye el UUID por el dispositivo. DISK= PART= @@ -358,6 +359,9 @@ EOF LKERNEL="`echo ${LINUX} | cut -d ':' -f 4`" LINITRD="`echo ${LINUX} | cut -d ':' -f 5`" LPARAMS="`echo ${LINUX} | cut -d ':' -f 6- | tr '^' ' '`" + # En los parámetros cambiamos el UUID por el valor de LROOT + UUID=$(blkid -s UUID -o value $LROOT) + LPARAMS="$(echo $LPARAMS | sed "s|UUID=$UUID|$LROOT|g")" if [ -z "${LLABEL}" ] ; then LLABEL="${LONGNAME}" fi |