X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive;h=3a1eb607df24180a06615ddfc4eeb3c5e5391018;hb=414dbb0e24c4e6be48524a94c11212ce2977bf86;hp=7f76f52fbd5324bbde906b544a5bc0d573abc451;hpb=b78990c495520b41ce163a55dee2d002ebba10de;p=live-boot-grml.git diff --git a/scripts/live b/scripts/live index 7f76f52..3a1eb60 100755 --- a/scripts/live +++ b/scripts/live @@ -1013,7 +1013,7 @@ setup_unionfs () local home_snapshot_label="" local root_overlay_label="" local overlay_devices="" - for media in $(find_persistent_media "${overlays}" "${snapshots}" "${blacklistdev}" "${whitelistdev}") + for media in $(find_persistent_media "${overlays}" "${snapshots}" "${whitelistdev}") do media="$(echo ${media} | tr ":" " ")" case ${media} in @@ -1219,16 +1219,16 @@ setup_unionfs () # Adding custom persistent if [ -n "${PERSISTENT}" ] && [ -z "${NOPERSISTENT}" ] then - local custom_mounts="/custom_mounts.list" + local custom_mounts="/tmp/custom_mounts.list" rm -rf ${custom_mounts} 2> /dev/null # Gather information about custom mounts from devies detected as overlays - get_custom_mounts ${overlay_devices} ${custom_mounts} ${rootmnt} + get_custom_mounts ${overlay_devices} ${custom_mounts} - [ "${DEBUG}" = "Yes" ] && cp ${custom_mounts} "${rootmnt}/live/persistent" + [ -n "${DEBUG}" ] && cp ${custom_mounts} "${rootmnt}/live/persistent" # Now we do the actual mounting (and symlinking) - do_custom_mounts ${custom_mounts} ${rootmnt} + do_custom_mounts ${custom_mounts} rm ${custom_mounts} # Look for other snapshots to copy in