99hook: Download hook script from inside target filesystem
[live-boot-grml.git] / 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})"