finish: also populate these variables even when blank

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/37/head
Robert Nelson 10 years ago
parent f4bb2dd128
commit 1e33b883ad

@ -150,14 +150,26 @@ else
fi
echo "uuid=$(/sbin/blkid -c /dev/null -s UUID -o value ${FINAL_PART})" >> ${wfile}
echo "root=${FINAL_PART} ro" >> ${wfile}
echo "rootfstype=${FINAL_FSTYPE} fixrtc" >> ${wfile}
echo "cape_disable=" >> ${wfile}
echo "cape_enable=" >> ${wfile}
if [ ! "x${dtb}" = "x" ] ; then
echo "dtb=${dtb}" >> ${wfile}
else
echo "dtb=" >> ${wfile}
fi
if [ ! "x${optargs}" = "x" ] ; then
echo "optargs=${optargs}" >> ${wfile}
else
echo "optargs=" >> ${wfile}
fi
if [ ! "x${video}" = "x" ] ; then
echo "cmdline=video=${video}" >> ${wfile}
else
echo "cmdline=" >> ${wfile}
fi
fi
#

@ -120,14 +120,26 @@ else
fi
echo "uuid=$(/sbin/blkid -c /dev/null -s UUID -o value ${FINAL_PART})" >> ${wfile}
echo "root=${FINAL_PART} ro" >> ${wfile}
echo "rootfstype=${FINAL_FSTYPE} fixrtc" >> ${wfile}
echo "cape_disable=" >> ${wfile}
echo "cape_enable=" >> ${wfile}
if [ ! "x${dtb}" = "x" ] ; then
echo "dtb=${dtb}" >> ${wfile}
else
echo "dtb=" >> ${wfile}
fi
if [ ! "x${optargs}" = "x" ] ; then
echo "optargs=${optargs}" >> ${wfile}
else
echo "optargs=" >> ${wfile}
fi
if [ ! "x${video}" = "x" ] ; then
echo "cmdline=video=${video}" >> ${wfile}
else
echo "cmdline=" >> ${wfile}
fi
fi
#

Loading…
Cancel
Save