FOUND=""
if [ -n "${ROOTSNAP}" ]; then
"${EXECUTABLE}" --resync-string="${ROOTSNAP}"
- FOUND="Yes"
+ FOUND="true"
fi
if [ -n "${HOMESNAP}" ]; then
"${EXECUTABLE}" --resync-string="${HOMESNAP}"
- FOUND="Yes"
+ FOUND="true"
fi
if [ -z "${FOUND}" ]
# disabled for now
#rm -f /root/etc/rcS.d/S*checkroot.sh
-if [ "${NOFASTBOOT}" != "Yes" ]
+if [ "${NOFASTBOOT}" != "true" ]
then
touch root/fastboot
fi
;;
skipconfig)
- NOACCESSIBILITY="Yes"
- NOFASTBOOT="Yes"
- NOFSTAB="Yes"
- NONETWORKING="Yes"
+ NOACCESSIBILITY="true"
+ NOFASTBOOT="true"
+ NOFSTAB="true"
+ NONETWORKING="true"
export NOACCESSIBILITY NOFASTBOOT NOFSTAB NONETWORKING
;;
;;
debug)
- DEBUG="Yes"
+ DEBUG="true"
export DEBUG
set -x
;;
forcepersistencefsck)
- FORCEPERSISTENCEFSCK="Yes"
+ FORCEPERSISTENCEFSCK="true"
export FORCEPERSISTENCEFSCK
;;
;;
ignore_uuid)
- IGNORE_UUID="Yes"
+ IGNORE_UUID="true"
export IGNORE_UUID
;;
integrity-check)
- INTEGRITY_CHECK="Yes"
+ INTEGRITY_CHECK="true"
export INTEGRITY_CHECK
;;
;;
noaccessibility)
- NOACCESSIBILITY="Yes"
+ NOACCESSIBILITY="true"
export NOACCESSIBILITY
;;
nofastboot)
- NOFASTBOOT="Yes"
+ NOFASTBOOT="true"
export NOFASTBOOT
;;
nofstab)
- NOFSTAB="Yes"
+ NOFSTAB="true"
export NOFSTAB
;;
nonetworking)
- NONETWORKING="Yes"
+ NONETWORKING="true"
export NONETWORKING
;;
;;
swapon)
- SWAPON="Yes"
+ SWAPON="true"
export SWAPON
;;
persistence)
- PERSISTENCE="Yes"
+ PERSISTENCE="true"
export PERSISTENCE
;;
export PERSISTENCE_PATH
;;
persistence-read-only)
- PERSISTENCE_READONLY="Yes"
+ PERSISTENCE_READONLY="true"
export PERSISTENCE_READONLY
;;
;;
nopersistence)
- NOPERSISTENCE="Yes"
+ NOPERSISTENCE="true"
export NOPERSISTENCE
;;
noprompt)
- NOPROMPT="Yes"
+ NOPROMPT="true"
export NOPROMPT
;;
;;
quickusbmodules)
- QUICKUSBMODULES="Yes"
+ QUICKUSBMODULES="true"
export QUICKUSBMODULES
;;
;;
nopreseed)
- NOPRESEED="Yes"
+ NOPRESEED="true"
export NOPRESEED
;;
;;
showmounts)
- SHOWMOUNTS="Yes"
+ SHOWMOUNTS="true"
export SHOWMOUNTS
;;
silent)
- SILENT="Yes"
+ SILENT="true"
export SILENT
;;
;;
toram)
- TORAM="Yes"
+ TORAM="true"
export TORAM
;;
toram=*)
- TORAM="Yes"
+ TORAM="true"
MODULETORAM="${ARGUMENT#toram=}"
export TORAM MODULETORAM
;;
exposedroot)
- EXPOSED_ROOT="Yes"
+ EXPOSED_ROOT="true"
export EXPOSED_ROOT
;;
plainroot)
- PLAIN_ROOT="Yes"
+ PLAIN_ROOT="true"
export PLAIN_ROOT
;;
skipunion)
- SKIP_UNION_MOUNTS="Yes"
+ SKIP_UNION_MOUNTS="true"
export SKIP_UNION_MOUNTS
;;
then
if [ -z "${want_usb}" ]
then
- dev_ok="yes"
+ dev_ok="true"
else
if readlink ${sysblock} | grep -q usb
then
- dev_ok="yes"
+ dev_ok="true"
fi
fi
fi
- if [ "${dev_ok}" = "yes" ]
+ if [ "${dev_ok}" = "true" ]
then
case "${output_format}" in
sys)
opt_source=${opt#source=}
;;
link)
- opt_link="yes"
+ opt_link="true"
;;
union|bind)
;;
while read device source dest options # < ${custom_mounts}
do
- local opt_bind="yes"
+ local opt_bind="true"
local opt_link=""
local opt_union=""
for opt in $(echo ${options} | tr ',' ' ');
do
case "${opt}" in
bind)
- opt_bind="yes"
+ opt_bind="true"
unset opt_link opt_union
;;
link)
- opt_link="yes"
+ opt_link="true"
unset opt_bind opt_union
;;
union)
- opt_union="yes"
+ opt_union="true"
unset opt_bind opt_link
;;
esac
#modprobe ib_iser
modprobe iscsi_tcp
local debugopt=""
- [ "${DEBUG}" = "Yes" ] && debugopt="-d 8"
+ [ "${DEBUG}" = "true" ] && debugopt="-d 8"
#FIXME this name is supposed to be unique - some date + ifconfig hash?
ISCSI_INITIATORNAME="iqn.1993-08.org.debian.live:01:$(echo "${HWADDR}" | sed -e s/://g)"
export ISCSI_INITIATORNAME