From 8cfe4eb1aa1ae2f3f357267b5e495e2819bde644 Mon Sep 17 00:00:00 2001 From: Frederick Grose Date: Fri, 31 Aug 2018 19:47:01 -0400 Subject: [PATCH] livesys: continue instead of return in cmdline do loops. return is an improper exit command for do loops. From dracut.cmdline(7): "The last value in the kernel command line is the value .. honored." --- fedora-live-base.ks | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fedora-live-base.ks b/fedora-live-base.ks index 2929c7d..4fb8358 100644 --- a/fedora-live-base.ks +++ b/fedora-live-base.ks @@ -95,11 +95,10 @@ livedir="LiveOS" for arg in \`cat /proc/cmdline\` ; do if [ "\${arg##rd.live.dir=}" != "\${arg}" ]; then livedir=\${arg##rd.live.dir=} - return + continue fi if [ "\${arg##live_dir=}" != "\${arg}" ]; then livedir=\${arg##live_dir=} - return fi done @@ -154,7 +153,6 @@ findPersistentHome() { for arg in \`cat /proc/cmdline\` ; do if [ "\${arg##persistenthome=}" != "\${arg}" ]; then homedev=\${arg##persistenthome=} - return fi done }