aboutsummaryrefslogtreecommitdiffstats
path: root/iso2usb.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--iso2usb.sh12
1 files changed, 9 insertions, 3 deletions
diff --git a/iso2usb.sh b/iso2usb.sh
index ad118f9..b551623 100644
--- a/iso2usb.sh
+++ b/iso2usb.sh
@@ -187,17 +187,23 @@ update_initrd() {
echo "$OLDLUKS" >> luksdev
if [ "${PERSISTENCE}" != "${DEF_PERSISTENCE}" ]; then
# If the user specified a nonstandard persistence, use that:
+ echo "--- Updating persistence from '$OLDPERSISTENCE' to '$PERSISTENCE'"
sed -i -e "s,^PERSISTENCE=.*,PERSISTENCE=\"${PERSISTENCE}\"," init
elif ["${PERSISTENCE}" != "${OLDPERSISTENCE}" ]; then
- # The user did not specify persistence, re-use the custome value:
+ # The user did not specify persistence, re-use the retrieved value:
sed -i -e "s,^PERSISTENCE=.*,PERSISTENCE=\"${OLDPERSISTENCE}\"," init
- echo "--- Updating 'persistence' from '$PERSISTENCE' to '$OLDPERSISTENCE':"
+ echo "--- Updating persistence from '$PERSISTENCE' to '$OLDPERSISTENCE'"
PERSISTENCE="${OLDPERSISTENCE}"
fi
else
- echo "--- Updating 'waitforroot' time from '$OLDWAIT' to '$WAIT':"
+ if [ "${PERSISTENCE}" != "${DEF_PERSISTENCE}" ]; then
+ # If the user specified a nonstandard persistence, use that:
+ echo "--- Updating persitence from '$DEF_PERSISTENCE' to '$PERSISTENCE'"
+ sed -i -e "s,^PERSISTENCE=.*,PERSISTENCE=\"${PERSISTENCE}\"," init
+ fi
fi
+ echo "--- Updating 'waitforroot' time from '$OLDWAIT' to '$WAIT'"
echo ${WAIT} > wait-for-root
if [ $DOLUKS -eq 1 -a -n "${LUKSHOME}" ]; then