From 3ac66a0add9f028b9b9d1084a20616a074d3b8f9 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: May 08 2012 19:38:11 +0000 Subject: put back escaping, revert other unjustified syntax changes from fgrose --- diff --git a/fedora-live-base.ks b/fedora-live-base.ks index 54df915..7f3bafe 100644 --- a/fedora-live-base.ks +++ b/fedora-live-base.ks @@ -103,9 +103,8 @@ if ! strstr "\`cat /proc/cmdline\`" noswap && [ -n "\$swaps" ] ; then action "Enabling swap partition \$s" swapon \$s done fi -if ! strstr "$(cat /proc/cmdline)" noswap && - [[ -f /run/initramfs/live/${livedir}/swap.img ]] ; then - action "Enabling swap file" swapon /run/initramfs/live/${livedir}/swap.img +if ! strstr "\`cat /proc/cmdline\`" noswap && [ -f /run/initramfs/live/\${livedir}/swap.img ] ; then + action "Enabling swap file" swapon /run/initramfs/live/\${livedir}/swap.img fi mountPersistentHome() { @@ -120,7 +119,7 @@ mountPersistentHome() { mountopts="-t jffs2" elif [ ! -b "\$homedev" ]; then loopdev=\`losetup -f\` - if [[ ${homedev##/run/initramfs/live} != ${homedev} ]]; then + if [ "\${homedev##/run/initramfs/live}" != "\${homedev}" ]; then action "Remounting live store r/w" mount -o remount,rw /run/initramfs/live fi losetup \$loopdev \$homedev @@ -155,8 +154,8 @@ findPersistentHome() { if strstr "\`cat /proc/cmdline\`" persistenthome= ; then findPersistentHome -elif [[ -e /run/initramfs/live/${livedir}/home.img ]]; then - homedev=/run/initramfs/live/${livedir}/home.img +elif [ -e /run/initramfs/live/\${livedir}/home.img ]; then + homedev=/run/initramfs/live/\${livedir}/home.img fi # if we have a persistent /home, then we want to go ahead and mount it