aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Gaffney <agaffney@gentoo.org>2009-12-26 16:26:21 -0600
committerAndrew Gaffney <agaffney@gentoo.org>2009-12-26 16:26:21 -0600
commit0302b4c9e4d8a6a9c2af8a634dffdce75c095566 (patch)
tree034ce1e25f64d8cb98cc99955beafd393d322931 /defaults/initrd.scripts
parentDocument how to roll a release for the next time. (diff)
downloadgenkernel-0302b4c9e4d8a6a9c2af8a634dffdce75c095566.tar.gz
genkernel-0302b4c9e4d8a6a9c2af8a634dffdce75c095566.tar.bz2
genkernel-0302b4c9e4d8a6a9c2af8a634dffdce75c095566.zip
Apply patch to make sure loop cache directory exists for Gentoo bug #297814
Diffstat (limited to 'defaults/initrd.scripts')
-rwxr-xr-xdefaults/initrd.scripts2
1 files changed, 2 insertions, 0 deletions
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts
index c5246d5f..5f611aa9 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