X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=usr_sbin%2Fgrml2ram;fp=usr_sbin%2Fgrml2ram;h=0806383316aae8ee541155ce7d8e8681b2131ad3;hb=2d82a9d638ed96f953dda1707ab6922f91d0b3e4;hp=a4e119ebd4c358111343c35b5d8cf0908254740f;hpb=0ac4551b01b478003597737ae214a763144a3b98;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, '