diff options
Diffstat (limited to 'sys-fs/loop-aes/files')
-rw-r--r-- | sys-fs/loop-aes/files/loop-aes-3.7w-build-initrd_explicit-losetup.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sys-fs/loop-aes/files/loop-aes-3.7w-build-initrd_explicit-losetup.patch b/sys-fs/loop-aes/files/loop-aes-3.7w-build-initrd_explicit-losetup.patch new file mode 100644 index 000000000000..2cf2976b71fe --- /dev/null +++ b/sys-fs/loop-aes/files/loop-aes-3.7w-build-initrd_explicit-losetup.patch @@ -0,0 +1,28 @@ +--- loop-AES-v3.7v.orig/build-initrd.sh 2012-11-12 09:42:58.000000000 -0700 ++++ loop-AES-v3.7v/build-initrd.sh 2022-01-05 18:27:49.410016729 -0700 +@@ -884,7 +884,8 @@ + + dd if=/dev/zero of=tmp-i-$$ bs=1024 count=${y} + /sbin/mkfs -t minix -i 32 tmp-i-$$ ${y} +- mount -t minix tmp-i-$$ tmp-d-$$ -o loop=/dev/loop${DEVFSSLASH2}${TEMPLOOPINDEX} ++ losetup /dev/loop${DEVFSSLASH2}${TEMPLOOPINDEX} tmp-i-$$ ++ mount -t minix /dev/loop${DEVFSSLASH2}${TEMPLOOPINDEX} tmp-d-$$ + fi + cd tmp-d-$$ + +@@ -978,6 +979,7 @@ + if [ ${USEPIVOT} != 2 ] ; then + umount tmp-d-$$ + rmdir tmp-d-$$ ++ losetup -d /dev/loop${DEVFSSLASH2}${TEMPLOOPINDEX} + rm tmp-i-$$ + else + rm -rf tmp-d-$$ +@@ -1002,6 +1004,7 @@ + cd .. + df tmp-d-$$ + umount tmp-d-$$ ++ losetup -d /dev/loop${DEVFSSLASH2}${TEMPLOOPINDEX} + rmdir tmp-d-$$ + sync ; sync ; sync + gzip -9 tmp-i-$$ |