X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=usr_sbin%2Fgrml2ram;h=0806383316aae8ee541155ce7d8e8681b2131ad3;hb=refs%2Ftags%2Fv2.13.0;hp=a4e119ebd4c358111343c35b5d8cf0908254740f;hpb=54e2502b301f2220e49e619b263be0e015d807cc;p=grml-scripts.git diff --git a/usr_sbin/grml2ram b/usr_sbin/grml2ram index a4e119e..0806383 100755 --- a/usr_sbin/grml2ram +++ b/usr_sbin/grml2ram @@ -65,6 +65,7 @@ fi GRMLSIZE="$(du $IMAGE | awk '{print $1}')" RAM=$(/usr/bin/gawk '/MemFree/{print $2}' /proc/meminfo) +LOOPDEV=$(/sbin/losetup -j "${IMAGE}" -n -O NAME) case "$*" in -f|--force) ewarn "Forcing copy process for grml-image (${GRMLSIZE}kB) as requested via force option." ; eend 0 @@ -80,7 +81,7 @@ esac einfo "Copying $IMAGE to RAM, this might take a while." rsync -a --progress $IMAGE /tmp/GRML LANGUAGE=C LANG=C LC_ALL=C perl << EOF -open LOOP, '