From: Andrew Gaffney Date: Sat, 26 Dec 2009 22:26:21 +0000 (-0600) Subject: Apply patch to make sure loop cache directory exists for Gentoo bug #297814 X-Git-Tag: v3.4.10.908~26 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=0302b4c9e4d8a6a9c2af8a634dffdce75c095566;p=genkernel.git Apply patch to make sure loop cache directory exists for Gentoo bug #297814 --- diff --git a/ChangeLog b/ChangeLog index 5c39064..0082ccc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,10 @@ # Distributed under the GPL v2 # $Id$ + 26 Dec 2009; Andrew Gaffney defaults/initrd.scripts: + Apply patch to make sure loop cache directory exists for Gentoo bug + #297814 + 17 Dec 2009; Robin H. Johnson HACKING: Document how to roll a release for the next time. diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index c5246d5..5f611aa 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -175,6 +175,8 @@ cache_cd_contents() { # z=$(($z + $i)) ; done # echo $z good_msg "Copying loop file for caching..." + # Verify that the needed directory exists + mkdir -p "$(dirname ${NEW_ROOT}/mnt/${LOOP})" cp -a ${NEW_ROOT}/mnt/cdrom/${LOOP} ${NEW_ROOT}/mnt/${LOOP} if [ $? -ne 0 ] then