From 0302b4c9e4d8a6a9c2af8a634dffdce75c095566 Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Sat, 26 Dec 2009 16:26:21 -0600 Subject: [PATCH] Apply patch to make sure loop cache directory exists for Gentoo bug #297814 --- ChangeLog | 4 ++++ defaults/initrd.scripts | 2 ++ 2 files changed, 6 insertions(+) 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 -- 2.26.2