X-Git-Url: http://git.grml.org/?a=blobdiff_plain;ds=sidebyside;f=scripts%2Flive;h=84924c96c7abbafc2b7e136bb90bd4029b2b69fb;hb=38757eb448bd7e7725085047434df1a4664ddfe2;hp=6f0dc48483843537b6e1e71956c10a2c37572595;hpb=931f580302ca3a121d3be602a49e732d5189b667;p=live-boot-grml.git diff --git a/scripts/live b/scripts/live index 6f0dc48..84924c9 100755 --- a/scripts/live +++ b/scripts/live @@ -988,9 +988,9 @@ do_nfsmount () modprobe -q nfs - if [ -z "${NFSOPTS}" ] + if [ -n "${NFSOPTS}" ] then - NFSOPTS="" + NFSOPTS="-o ${NFSOPTS}" fi log_begin_msg "Trying nfsmount -o nolock -o ro ${NFSOPTS} ${NFSROOT} ${mountpoint}" @@ -1017,7 +1017,7 @@ do_cifsmount () then CIFSOPTS="-ouser=root,password=" else - CIFSOPTS="${NFSOPTS}" + CIFSOPTS="-o ${NFSOPTS}" fi log_begin_msg "Trying mount.cifs ${NFSROOT} ${mountpoint} ${CIFSOPTS}" @@ -1403,23 +1403,35 @@ setup_unionfs () snapshots="${root_snapshot_label} ${home_snapshot_label}" fi - overlay_devices="" + local root_snapdata="" + local home_snapshot_label="" + local root_overlay_label="" + local overlay_devices="" for media in $(find_persistent_media "${overlays}" "${snapshots}" "${blacklistdev}" "${whitelistdev}") do media="$(echo ${media} | tr ":" " ")" case ${media} in ${root_snapshot_label}=*) - root_snapdata="${media#*=}" + if [ -z "${root_snapdata}" ] + then + root_snapdata="${media#*=}" + fi ;; ${home_snapshot_label}=*) # This second type should be removed when snapshot will get smarter, # hence when "/etc/live-snapshot*list" will be supported also by # ext2|ext3|ext4|jffs2 snapshot types. - home_snapdata="${media#*=}" + if [ -z "${home_snapdata}" ] + then + home_snapdata="${media#*=}" + fi ;; ${root_overlay_label}=*) - device="${media#*=}" - root_overlay_device="${device}" + if [ -z "${root_overlay_device}" ] + then + device="${media#*=}" + root_overlay_device="${device}" + fi ;; ${custom_overlay_label}=*) device="${media#*=}"