99hook: Download hook script from inside target filesystem
authorChris Lamb <chris@chris-lamb.co.uk>
Fri, 21 Mar 2008 06:17:31 +0000 (06:17 +0000)
committerDaniel Baumann <daniel@debian.org>
Wed, 9 Mar 2011 16:44:51 +0000 (17:44 +0100)
scripts/live-bottom/99hook

index dd027ab..a27a96a 100755 (executable)
@@ -32,7 +32,7 @@ log_begin_msg "Executing custom hook script..."
 # live-initramfs script
 
 cd /root
-wget "${HOOK}"
+chroot /root wget "${HOOK}"
 
 FILE="$(basename ${HOOK})"