Apply patch to make sure loop cache directory exists for Gentoo bug #297814
authorAndrew Gaffney <agaffney@gentoo.org>
Sat, 26 Dec 2009 22:26:21 +0000 (16:26 -0600)
committerAndrew Gaffney <agaffney@gentoo.org>
Sat, 26 Dec 2009 22:26:21 +0000 (16:26 -0600)
ChangeLog
defaults/initrd.scripts

index 5c39064685d2e9ec56aca615c95de950098f7a53..0082ccc3b84ff554bf0a77b325b9094048f6bfd9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,10 @@
 # Distributed under the GPL v2
 # $Id$
 
+  26 Dec 2009; Andrew Gaffney <agaffney@gentoo.org> defaults/initrd.scripts:
+  Apply patch to make sure loop cache directory exists for Gentoo bug
+  #297814
+
   17 Dec 2009; Robin H. Johnson <robbat2@gentoo.org> HACKING:
   Document how to roll a release for the next time.
 
index c5246d5f57c8358a396bb15bde9ea6126ca8590d..5f611aa903b1723555103de57d7d37e4011f9ba6 100755 (executable)
@@ -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