diff options
| author | intrigeri <intrigeri@boum.org> | 2010-09-25 22:43:33 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:54:20 +0100 |
| commit | 74f22b03cd13d3be5a3dc56e90b587227c27eef0 (patch) | |
| tree | 56a664ce1ecfba1b0bf08602c516c1407a60251c /scripts | |
| parent | e5179b2cb253210b31c07ff6bb59c2bd5c1823d5 (diff) | |
| download | live-boot-74f22b03cd13d3be5a3dc56e90b587227c27eef0.tar.gz live-boot-74f22b03cd13d3be5a3dc56e90b587227c27eef0.zip | |
Fixing find_snap to take its second argument into account.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/live | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/live b/scripts/live index 0e1b2f4..f257218 100755 --- a/scripts/live +++ b/scripts/live @@ -944,16 +944,17 @@ find_snap () { # Look for ${snap_label}.* in block devices snap_label="${1}" + black_listed_devices="${2}" if [ "${PERSISTENT}" != "nofiles" ] then # search for image files - snapdata=$(find_files "${PERSISTENT_PATH}${snap_label}.squashfs ${PERSISTENT_PATH}${snap_label}.cpio.gz ${PERSISTENT_PATH}${snap_label}.ext2 ${PERSISTENT_PATH}${snap_label}.ext3 ${PERSISTENT_PATH}${snap_label}.ext4 ${PERSISTENT_PATH}${snap_label}.jffs2") + snapdata=$(find_files "${PERSISTENT_PATH}${snap_label}.squashfs ${PERSISTENT_PATH}${snap_label}.cpio.gz ${PERSISTENT_PATH}${snap_label}.ext2 ${PERSISTENT_PATH}${snap_label}.ext3 ${PERSISTENT_PATH}${snap_label}.ext4 ${PERSISTENT_PATH}${snap_label}.jffs2" "${black_listed_devices}") fi if [ -z "${snapdata}" ] then - snapdata=$(find_cow_device "${snap_label}") + snapdata=$(find_cow_device "${snap_label}" "${black_listed_devices}") fi echo "${snapdata}" } |
