From: ms Date: Sun, 14 Oct 2007 09:58:02 +0000 (+0000) Subject: Ein Fix fuer die Verwendung von Loop-Devices. X-Git-Tag: v3.0-alpha1~1238 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0abbeef660268fce091cbf147cff0400f2a9745f;p=ipfire-3.x.git Ein Fix fuer die Verwendung von Loop-Devices. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@968 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8 --- diff --git a/lfs/usb-stick b/lfs/usb-stick index 3f863b11a..6a62e2719 100644 --- a/lfs/usb-stick +++ b/lfs/usb-stick @@ -51,6 +51,7 @@ IMGfs := /install/images/fs define COPY_TO_IMG mkdosfs -n IPFIRE -F 16 -I $$IMAGE && \ for i in /0 `seq 0 7`; do \ + [ -e /dev/loop$${i} ] || continue; \ if (! losetup /dev/loop$${i} >/dev/null 2>&1 ); then \ LOOPDEV="/dev/loop$${i}"; \ break; \