From 69cdaea5e1fe4856bd47515c75c95d05d449749c Mon Sep 17 00:00:00 2001 From: henning Date: Tue, 21 Apr 2015 10:58:28 +0000 Subject: [PATCH] append the setdir ("5.7/amd64", "snapshots/vax") as get-parameter "path" when fetching the autoinstall response file. a webserver that serves static files doesn't give a damn. if I map that to something that dynamically creates the response file, i can use that to construct the sets path, or play other arch and/or version dependent games. ok krw uwe --- distrib/miniroot/install.sub | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 7f85eb15080..99768823a3b 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.831 2015/04/20 15:31:15 krw Exp $ +# $OpenBSD: install.sub,v 1.832 2015/04/21 10:58:28 henning Exp $ # # Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback # Copyright (c) 2015, Robert Peichaer @@ -337,7 +337,7 @@ get_responsefile() { if [[ -n $_server && -n $_mode ]]; then _mac=$(ifconfig $_ifdev | sed 's/.*lladdr \(.*\)/\1/p;d') for _rf in {$_mac-,}$_mode; do - _url=http://$_server/$_rf.conf + _url="http://$_server/$_rf.conf?path=$HTTP_SETDIR" echo "Fetching $_url" if ftp -Vo "/ai.$_mode.conf" "$_url" 2>/dev/null; then action=$_mode -- 2.20.1