summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Bortoletto Vaz <tiagovaz@safernet.org.br>2008-08-12 22:21:40 +0200
committerDaniel Baumann <daniel@debian.org>2008-08-14 05:44:22 +0200
commitefe08ed9252755de9136ab79f0ead3d8aaa150bf (patch)
tree43eb4a1c6c6cf4cbca508c9a1fbc2b4fdb2c7b43
parent2585f5591e672859ccc9159b2ab51747f91c7381 (diff)
downloadvyos-live-build-efe08ed9252755de9136ab79f0ead3d8aaa150bf.tar.gz
vyos-live-build-efe08ed9252755de9136ab79f0ead3d8aaa150bf.zip
Supporting remote preseeding files.
-rwxr-xr-xfunctions/defaults.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index 892f1f3e2..65e20ff72 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -565,7 +565,15 @@ Set_defaults ()
;;
net)
- LH_BOOTAPPEND_PRESEED="file=/${LH_DEBIAN_INSTALLER_PRESEEDFILE}"
+ case "${LH_DEBIAN_INSTALLER_PRESEEDFILE}" in
+ *://*)
+ LH_BOOTAPPEND_PRESEED="file=${LH_DEBIAN_INSTALLER_PRESEEDFILE}"
+ ;;
+
+ *)
+ LH_BOOTAPPEND_PRESEED="file=/${LH_DEBIAN_INSTALLER_PRESEEDFILE}"
+ ;;
+ esac
;;
esac
fi