Skip to content

Commit

Permalink
Only try copying snapshots if we actually found any.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tails developers committed Apr 9, 2012
1 parent adbd339 commit c857e16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/live
Expand Up @@ -1215,9 +1215,9 @@ setup_unionfs ()
done

# Look for other snapshots to copy in
try_snap "${root_snapdata}" "${rootmnt}" "ROOT"
[ -n "${root_snapdata}" ] && try_snap "${root_snapdata}" "${rootmnt}" "ROOT"
# This second type should be removed when snapshot grow smarter
try_snap "${home_snapdata}" "${rootmnt}" "HOME" "/home"
[ -n "${home_snapdata}" ] && try_snap "${home_snapdata}" "${rootmnt}" "HOME" "/home"
fi

mkdir -p "${rootmnt}/live"
Expand Down

0 comments on commit c857e16

Please sign in to comment.