X-Git-Url: http://git.grml.org/?p=grml-scripts.git;a=blobdiff_plain;f=usr_sbin%2Fgrml2ram;fp=usr_sbin%2Fgrml2ram;h=3482bdb8a4db42acb4ac13bc4d0ede0263e6b7cd;hp=37c36a3256c680c1a78ca4b6d49ea89f2ef0c6c6;hb=34819b81d79e260d1fca486316806bc1b2e33896;hpb=e4fd749bd1f6f7cedba039ded188868e57b9e69e diff --git a/usr_sbin/grml2ram b/usr_sbin/grml2ram index 37c36a3..3482bdb 100755 --- a/usr_sbin/grml2ram +++ b/usr_sbin/grml2ram @@ -19,12 +19,10 @@ if ! isgrmlcd ; then exit 1 fi -# old linuxrc version: -[ -d /cdrom ] && export LIVECD_PATH=/cdrom -# initramfs layout until around December 2012: -[ -d /live/image ] && export LIVECD_PATH=/live/image -# initramfs layout since around December 2012: -[ -d /lib/live/mount/medium ] && export LIVECD_PATH=/lib/live/mount/medium +# initramfs layout since December 2012, backwards compatibility: +[ -d /lib/live/mount/medium ] && export LIVECD_PATH='/lib/live/mount/medium' +# initramfs layout since December 2018: +[ -d /run/live/medium ] && export LIVECD_PATH='/run/live/medium' if [ -z "$CMDLINE" ]; then # if CMDLINE was set from the outside, we're debugging.