summaryrefslogtreecommitdiffstats
path: root/client/engine/Boot.lib
diff options
context:
space:
mode:
authorIrina Gómez <irinagomez@us.es>2019-05-22 10:04:01 +0200
committerIrina Gómez <irinagomez@us.es>2019-05-22 10:04:01 +0200
commitd7d1ec812ec9e02c30cfa7d32b8d130d17207ebc (patch)
tree300d89c5ec0b3b191fa5ac1e0d66965a044d05e1 /client/engine/Boot.lib
parentf097c21f1d1be5e6e396ba0687f237d8543ba076 (diff)
#802 #888 refind: options parameter cannot include string 'initrd', to start ogLive we exclude option 'ogupdateinitrd'
Diffstat (limited to 'client/engine/Boot.lib')
-rwxr-xr-xclient/engine/Boot.lib5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/engine/Boot.lib b/client/engine/Boot.lib
index 47a3ee33..ef1fa01e 100755
--- a/client/engine/Boot.lib
+++ b/client/engine/Boot.lib
@@ -2731,8 +2731,9 @@ if [ $? -eq 0 ]; then
CACHEDEVICE=$(ogDiskToDev $(ogFindCache))
OGLIVE=$(find $OGCAC/boot -name ogvmlinuz|head -1)
# Obtenemos parametros del kernel y sustituimos root
- #CMDLINE="$(cat /proc/cmdline)"
- CMDLINE="$(cat /proc/cmdline|sed -e s/^.*ogvmlinuz.efi//g -e s/^.*ogvmlinuz//g -e "s|root=/dev/....||g")"
+ # La línea de opciones no puede contener la cadena initrd.
+ CMDLINE="$(cat /proc/cmdline|sed -e 's/^.*ogvmlinuz.efi //g' -e 's/^.*ogvmlinuz //g' -e 's|root=/dev/[a-z]* ||g' \
+ -e 's/ogupdateinitrd=[a-z]* //g')"
CMDLINE="root=$CACHEDEVICE ${CMDLINE#*ogvmlinuz}"
# Icono para la entrada de menú