Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Fiat Tux
Hat softwares
preseed-creator
Commits
605f3bd9
Commit
605f3bd9
authored
Dec 13, 2017
by
Luc Didry
Browse files
Add option to download preseed example
parent
9a39daff
Changes
1
Hide whitespace changes
Inline
Side-by-side
preseed_creator.sh
View file @
605f3bd9
...
...
@@ -8,6 +8,7 @@ Preseed Creator (c) Luc Didry 2017, WTFPL
-i <image.iso> ISO image to preseed. If not provided, the script will download and use the latest Debian amd64 netinst ISO image
-o <preseeded_image.iso> output preseeded ISO image. Default to preseed_creator/debian-netinst-latest-preseed.ISO
-p <preseed_file.cfg> preseed file. If not provided, the script will put "d-i debian-installer/locale string fr_BE" in the preseed.cfg file
-g download the latest Debian stable example preseed file into preseed_example.cfg and exit
-h print this help and exit
EOF
exit
...
...
@@ -17,7 +18,7 @@ INPUT=""
PRESEED
=
""
MYPWD
=
$(
pwd
)
OUTPUT
=
""
while
getopts
":i:o:p:h"
opt
;
do
while
getopts
":i:o:p:
g
h"
opt
;
do
case
$opt
in
i
)
INPUT
=
$OPTARG
...
...
@@ -28,6 +29,12 @@ while getopts ":i:o:p:h" opt; do
p
)
PRESEED
=
$OPTARG
;;
g
)
echo
"Downloading latest Debian stable example preseed file into preseed_example.cfg"
wget
-q
http://www.debian.org/releases/stable/example-preseed.txt
-O
preseed_example.cfg
echo
"Done"
exit
;;
h
)
usage
;;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment