|
@@ -64,10 +64,6 @@ while [ $# -gt 0 ]; do
|
|
|
SECURITY=$2
|
|
SECURITY=$2
|
|
|
shift
|
|
shift
|
|
|
;;
|
|
;;
|
|
|
- -g)
|
|
|
|
|
- UPGRADE=$2
|
|
|
|
|
- shift
|
|
|
|
|
- ;;
|
|
|
|
|
-l)
|
|
-l)
|
|
|
LINKED=true
|
|
LINKED=true
|
|
|
;;
|
|
;;
|
|
@@ -97,7 +93,6 @@ SUITE=${SUITE:-stretch}
|
|
|
USERNAME=${USERNAME:-debian}
|
|
USERNAME=${USERNAME:-debian}
|
|
|
TIMEZONE=${TIMEZONE:-UTC}
|
|
TIMEZONE=${TIMEZONE:-UTC}
|
|
|
NTPSERVER=${NTPSERVER:-pool.ntp.org}
|
|
NTPSERVER=${NTPSERVER:-pool.ntp.org}
|
|
|
-UPGRADE=${UPGRADE:-full-upgrade}
|
|
|
|
|
LINKED=${LINKED:-false}
|
|
LINKED=${LINKED:-false}
|
|
|
|
|
|
|
|
if [ -z "$PASSWORD" ]; then
|
|
if [ -z "$PASSWORD" ]; then
|
|
@@ -134,7 +129,6 @@ cat >> preseed.cfg << EOF
|
|
|
# TIMEZONE: 5
|
|
# TIMEZONE: 5
|
|
|
# NTPSERVER: 5
|
|
# NTPSERVER: 5
|
|
|
# SECURITY: 8
|
|
# SECURITY: 8
|
|
|
-# UPGRADE: 9
|
|
|
|
|
|
|
|
|
|
# 1. Localization: COUNTRY
|
|
# 1. Localization: COUNTRY
|
|
|
|
|
|
|
@@ -202,10 +196,10 @@ d-i apt-setup/services-select multiselect updates
|
|
|
d-i apt-setup/local0/repository string {{-SECURITY-}} {{-SUITE-}}/updates main
|
|
d-i apt-setup/local0/repository string {{-SECURITY-}} {{-SUITE-}}/updates main
|
|
|
d-i apt-setup/local0/source boolean true
|
|
d-i apt-setup/local0/source boolean true
|
|
|
|
|
|
|
|
-# 9. Package selection: TASKS, UPGRADE
|
|
|
|
|
|
|
+# 9. Package selection: TASKS
|
|
|
|
|
|
|
|
tasksel tasksel/first multiselect ssh-server
|
|
tasksel tasksel/first multiselect ssh-server
|
|
|
-d-i pkgsel/upgrade select {{-UPGRADE-}}
|
|
|
|
|
|
|
+d-i pkgsel/upgrade select none
|
|
|
popularity-contest popularity-contest/participate boolean false
|
|
popularity-contest popularity-contest/participate boolean false
|
|
|
|
|
|
|
|
# 10. Boot loader installation
|
|
# 10. Boot loader installation
|
|
@@ -225,7 +219,6 @@ sed -i 's/{{-PASSWORD-}}/'$(echo "$PASSWORD" | sed 's/\//\\\//g')'/g' preseed.cf
|
|
|
sed -i 's/{{-TIMEZONE-}}/'$(echo "$TIMEZONE" | sed 's/\//\\\//g')'/g' preseed.cfg
|
|
sed -i 's/{{-TIMEZONE-}}/'$(echo "$TIMEZONE" | sed 's/\//\\\//g')'/g' preseed.cfg
|
|
|
sed -i 's/{{-NTPSERVER-}}/'"$NTPSERVER"'/g' preseed.cfg
|
|
sed -i 's/{{-NTPSERVER-}}/'"$NTPSERVER"'/g' preseed.cfg
|
|
|
sed -i 's/{{-SECURITY-}}/'$(echo "$SECURITY" | sed 's/\//\\\//g')'/g' preseed.cfg
|
|
sed -i 's/{{-SECURITY-}}/'$(echo "$SECURITY" | sed 's/\//\\\//g')'/g' preseed.cfg
|
|
|
-sed -i 's/{{-UPGRADE-}}/'"$UPGRADE"'/g' preseed.cfg
|
|
|
|
|
|
|
|
|
|
wget "$URL/linux" "$URL/initrd.gz"
|
|
wget "$URL/linux" "$URL/initrd.gz"
|
|
|
gunzip initrd.gz
|
|
gunzip initrd.gz
|