X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-helpers;fp=scripts%2Flive-helpers;h=58613d5251ea260ec4dcf4e143f0225d0eff9c3f;hb=0622a98c98d454e80118d00ec76226ff209e1bc1;hp=0e1b6916628b2c2d7d6d24ccf839d0953b2b93f3;hpb=1e821c21107dc36f071659f8b2d7c8d95048b4d1;p=live-boot-grml.git diff --git a/scripts/live-helpers b/scripts/live-helpers index 0e1b691..58613d5 100644 --- a/scripts/live-helpers +++ b/scripts/live-helpers @@ -1317,15 +1317,15 @@ get_custom_mounts () fi local opt_source="" - local opt_linkfiles="" + local opt_link="" for opt in $(echo ${options} | tr ',' ' '); do case "${opt}" in source=*) opt_source=${opt#source=} ;; - linkfiles) - opt_linkfiles="yes" + link) + opt_link="yes" ;; union|bind) ;; @@ -1350,7 +1350,7 @@ get_custom_mounts () local full_source="$(trim_path ${backing}/${source})" local full_dest="$(trim_path ${rootmnt}/${dir})" - if [ -n "${opt_linkfiles}" ] + if [ -n "${opt_link}" ] then echo "${device} ${full_source} ${full_dest} ${options}" >> ${links} else @@ -1394,22 +1394,22 @@ activate_custom_mounts () while read device source dest options # < ${custom_mounts} do local opt_bind="yes" - local opt_linkfiles="" + local opt_link="" local opt_union="" for opt in $(echo ${options} | tr ',' ' '); do case "${opt}" in bind) opt_bind="yes" - unset opt_linkfiles opt_union + unset opt_link opt_union ;; - linkfiles) - opt_linkfiles="yes" + link) + opt_link="yes" unset opt_bind opt_union ;; union) opt_union="yes" - unset opt_bind opt_linkfiles + unset opt_bind opt_link ;; esac done @@ -1454,10 +1454,10 @@ activate_custom_mounts () if [ -n "${PERSISTENCE_READONLY}" ] then continue - elif [ -n "${opt_union}" ] || [ -n "${opt_linkfiles}" ] + elif [ -n "${opt_union}" ] || [ -n "${opt_link}" ] then # unions and don't need to be bootstrapped - # linkfiles dirs can't be bootstrapped in a sensible way + # link dirs can't be bootstrapped in a sensible way mkdir -p "${source}" chown_ref "${dest}" "${source}" chmod_ref "${dest}" "${source}" @@ -1472,7 +1472,7 @@ activate_custom_mounts () # XXX: If CONFIG_AUFS_ROBR is added to the Debian kernel we can # ignore the loop below and set rofs_dest_backing=$dest local rofs_dest_backing="" - if [ -n "${opt_linkfiles}"] + if [ -n "${opt_link}"] then for d in ${rootmnt}/live/rofs/* do @@ -1491,10 +1491,10 @@ activate_custom_mounts () done fi - if [ -n "${opt_linkfiles}" ] && [ -z "${PERSISTENCE_READONLY}" ] + if [ -n "${opt_link}" ] && [ -z "${PERSISTENCE_READONLY}" ] then link_files ${source} ${dest} ${rootmnt} - elif [ -n "${opt_linkfiles}" ] && [ -n "${PERSISTENCE_READONLY}" ] + elif [ -n "${opt_link}" ] && [ -n "${PERSISTENCE_READONLY}" ] then mkdir -p ${rootmnt}/live/persistence local links_source=$(mktemp -d ${rootmnt}/live/persistence/links-source-XXXXXX) @@ -1537,7 +1537,7 @@ activate_custom_mounts () # post boot local cow_dir="/live/overlay/${dest}" fi - if [ -e "${cow_dir}" ] && [ -z "${opt_linkfiles}" ] + if [ -e "${cow_dir}" ] && [ -z "${opt_link}" ] then # If an earlier custom mount has files here # it will "block" the current mount's files