From c1d6f456d9efe70a687683eba56ba39427c975dc Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 15 Jul 2020 15:11:38 -0500 Subject: install: Integrate suggestions from cb --- src/install/7_scripts.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/install/7_scripts.xml') diff --git a/src/install/7_scripts.xml b/src/install/7_scripts.xml index c21855a..06a1ba3 100644 --- a/src/install/7_scripts.xml +++ b/src/install/7_scripts.xml @@ -44,6 +44,7 @@ network true netaddress eth0 static 10.1.9.8 255.255.0.0 10.1.0.1 nameserver 9.9.9.9 +rootpw ... hostname test-web pkginstall adelie-base-posix dash-binsh easy-kernel easy-kernel-modules lighttpd openrc ruby-full uwsgi-rack # Enable lighttpd on startup: @@ -54,6 +55,19 @@ svcenable lighttpd
Using JSON If you have a properly-formatted JSON file, for example from a vendor-provided tool, you can use it to generate a HorizonScript file. + + A simple JSON file + +{ + "hostname": "horizon-json-testmachine.adelielinux.org", + "packages": ["adelie-base-posix", "easy-kernel", "easy-kernel-modules", "netifrc", "openrc", "s6-linux-init"], + "rootpw": "...", + "root": "/dev/sda1", + "netaddresses": [{"id":"eth0", "interface":"eth0", "addr-type":"dhcp"}], + "nameservers": ["9.9.9.9"] +} + + Generating a HorizonScript from a JSON file Locate the JSON file on your computer. -- cgit v1.2.3-70-g09d2