Index: b/scripts/casper =================================================================== --- a/scripts/casper 2010-06-28 17:54:49.000000000 +0200 +++ b/scripts/casper 2011-02-02 17:24:02.000000000 +0100 @@ -29,6 +29,8 @@ touch /casper.vars fi +export IMAGE_NAME + parse_cmdline() { for x in $(cat /proc/cmdline); do case $x in @@ -48,6 +50,8 @@ export STATICIP ;; ignore_uuid) IGNORE_UUID="Yes" ;; + imagename=*) + IMAGE_NAME="${x#imagename=}" ;; live-media-path=*) LIVE_MEDIA_PATH="${x#live-media-path=}" export LIVE_MEDIA_PATH @@ -398,7 +402,7 @@ # it is a plain directory: do nothing rofsstring="${image}=${roopt}:${rofsstring}" rofslist="${image} ${rofslist}" - elif [ -f "${image}" ]; then + elif [ -f "${image}" ] && [ -z "$IMAGE_NAME" -o "${imagename}" = "$IMAGE_NAME" ] ; then backdev=$(get_backing_device "$image") fstype=$(get_fstype "${backdev}") if [ "${fstype}" = "unknown" ]; then