Commit 56232376 authored by Christian Perrier's avatar Christian Perrier

Commit changes from 3.12 that hadn't been committed to git

parent 0f233de1
oldsys-preseed (3.12) unstable; urgency=low
* Team upload
* Replace XC-Package-Type by Package-Type
[ Hector Oron ]
* debian/rules: enable depends on devio-udeb for armhf
* debian/rules: enable depends on devio-udeb for armhf
[ Martin Michlmayr ]
* Add support for Linkstation LiveV3 and Mini, thanks Benjamin Cama.
Closes: #616326
-- Christian Perrier <bubulle@debian.org> Sat, 07 Jul 2012 21:24:34 +0200
-- Martin Michlmayr <tbm@cyrius.com> Wed, 04 May 2011 21:28:44 +0100
oldsys-preseed (3.11) unstable; urgency=low
......
......@@ -8,7 +8,7 @@ Vcs-Browser: http://git.debian.org/?p=d-i/oldsys-preseed.git
Vcs-Git: git://git.debian.org/d-i/oldsys-preseed.git
Package: oldsys-preseed
Package-Type: udeb
XC-Package-Type: udeb
Architecture: any
Depends: ${depends}
Description: Preseed debian-installer from an existing device
......
......@@ -5,9 +5,6 @@
# This code is covered by the GNU General Public License (version 2
# or higher)
# NB: Some functions ultimately call db_set or db_fset, so make sure you
# provide them e.g. by importing the debconf shell module
# Reading
# Check if a file exists and exit if it doesn't
......@@ -174,86 +171,72 @@ parse_sib_conf() {
# Generating
# Preseed a debconf question to a value and set it as seen
# $1 = question
# $2 = value
op_db_set() {
log "Setting $1 to \"$2\""
if ! db_set "$1" "$2"; then
db_register debian-installer/dummy "$1"
db_set "$1" "$2"
fi
db_fset "$1" "seen" "true"
}
# Preseed a debconf question as seen, but don't set its value
# $1 = question
op_db_seen() {
log "Setting $1 as seen"
if ! db_fset "$1" "seen" "true"; then
db_register debian-installer/dummy "$1"
db_fset "$1" "seen" "true"
fi
}
# Set a debconf question if its value isn't empty
# $1 = question
# $2 = value
# Output a variable to a preseed file if the variable has a value
# $1 = file name (stdout if this is empty)
# $2 = debconf variable name
# $3 = debconf variable type
# $4 = variable
add() {
if [ -n "$2" ]; then
op_db_set "$1" "$2"
if [ -n "$4" -o "$3" = "note" ]; then
if [ -n "$1" ]; then
echo "d-i $2 $3 $4" | sed 's/ *$//' >> "$1"
else
echo "d-i $2 $3 $4" | sed 's/ *$//'
fi
fi
}
# Set a debconf question as seen if its value is empty, otherwise set its value
# $1 = question
# $2 = value
# Output a variable to a preseed file or, iv the variable is empty, mark
# the debconf variable as seen.
# $1 = file name (stdout if this is empty)
# $2 = debconf variable name
# $3 = debconf variable type
# $4 = variable
add_or_set_seen() {
if [ -z "$2" ]; then
op_db_seen "$1"
if [ -z "$4" -a "$NONINTERACTIVE" = "yes" ]; then
add "$1" "$2" "seen" "true"
else
op_db_set "$1" "$2"
add "$1" "$2" "$3" "$4"
fi
}
# Mark a debconf note as seen
# $1 = question
skip_debconf_note() {
op_db_set "$1" ""
}
# Preseed a static network configuration
# Write a static network configuration to the preseed file
# $1 = file name (stdout if this is empty)
write_static_network() {
add "netcfg/get_ipaddress" "$IPADDRESS"
add_or_set_seen "netcfg/get_netmask" "$NETMASK"
add "$1" "netcfg/get_ipaddress" "string" "$IPADDRESS"
add_or_set_seen "$1" "netcfg/get_netmask" "string" "$NETMASK"
if [ -z "$GATEWAY" ]; then
GATEWAY=none
fi
add "netcfg/get_gateway" "$GATEWAY"
add "netcfg/get_nameservers" "$NAMESERVERS"
add "$1" "netcfg/get_gateway" "string" "$GATEWAY"
add "$1" "netcfg/get_nameservers" "string" "$NAMESERVERS"
}
# Fall back to a static address if DHCP fails
# $1 = file name (stdout if this is empty)
dhcp_fallback() {
skip_debconf_note "netcfg/dhcp_failed"
add "netcfg/dhcp_options" "Configure network manually"
write_static_network
add "$1" "netcfg/dhcp_failed" "note"
add "$1" "netcfg/dhcp_options" "select" "Configure network manually"
write_static_network "$1"
}
# Do the actual preseeding
do_oldsys_preseed() {
add "netcfg/choose_interface" "$INTERFACE"
# Generate a preseed file
# $1 = filename
generate_preseed_file() {
add "$1" "netcfg/choose_interface" "select" "$INTERFACE"
if [ "$NET_CONFIG" = "static" ]; then
write_static_network
add "netcfg/confirm_static" "true"
add "netcfg/disable_dhcp" "true"
write_static_network "$1"
add "$1" "netcfg/confirm_static" "boolean" "true"
add "$1" "netcfg/disable_dhcp" "boolean" "true"
else
add "netcfg/use_dhcp" "true"
add "$1" "netcfg/use_dhcp" "boolean" "true"
fi
if verify_hostname "$HOSTNAME"; then
add "netcfg/get_hostname" "$HOSTNAME"
if [ "$NONINTERACTIVE" = "yes" -o "$HOSTNAME" != "$DEFAULT_HOSTNAME" ]; then
if verify_hostname "$HOSTNAME"; then
add "$1" "netcfg/get_hostname" "string" "$HOSTNAME"
fi
fi
add "netcfg/get_domain" "$DOMAIN"
add "$1" "netcfg/get_domain" "string" "$DOMAIN"
}
......@@ -316,7 +299,7 @@ address_is_in () {
sanity_check_static_config() {
# netcfg will prompt for an IP address and nameserver if they are
# not set, so use DHCP in that case.
if [ -z "$IPADDRESS" -o -z "$NAMESERVERS" ]; then
if [ "$NONINTERACTIVE" = "yes" ] && [ -z "$IPADDRESS" -o -z "$NAMESERVERS" ]; then
NET_CONFIG=dhcp
fi
# Replicate the "gateway is unreachable" check from netcfg.
......
......@@ -8,10 +8,6 @@
set -e
# for db_set and db_fset
export DEBIAN_FRONTEND=noninteractive
. /usr/share/debconf/confmodule
. /usr/lib/oldsys-preseed/functions
log() {
......@@ -19,10 +15,17 @@ log() {
}
exit_unknown() {
log "Unknown system - skipping oldsys-preseed"
log "Unknown system - not writing preseed file"
exit 0
}
# If this is set to "yes", the user *absolutely* cannot input anything
# before network-console comes up. Therefore, preseed some info which
# is not optimal but which will ensure that network-console is reached
# without prompting for user input.
NONINTERACTIVE="yes"
FILE=/preseed.cfg
case "`archdetect`" in
arm*/ixp4xx)
machine=$(grep "^Hardware" /proc/cpuinfo | sed 's/Hardware\s*:\s*//')
......@@ -41,7 +44,9 @@ case "`archdetect`" in
INTERFACE=eth0
else
INTERFACE=eth1
add "hw-detect/load_firmware" "false"
if [ "$NONINTERACTIVE" = "yes" ]; then
add "$FILE" "hw-detect/load_firmware" "boolean" "false"
fi
fi
sanity_check_static_config
if [ "$NET_CONFIG" != "static" ]; then
......@@ -49,9 +54,11 @@ case "`archdetect`" in
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
[ -z "$NAMESERVERS" ] && NAMESERVERS=192.168.1.1
dhcp_fallback
dhcp_fallback $FILE
fi
if [ "$NONINTERACTIVE" = "yes" ]; then
add "$FILE" "ethdetect/use_firewire_ethernet" "boolean" "false"
fi
add "ethdetect/use_firewire_ethernet" "false"
fi
;;
arm*/iop32x)
......@@ -87,7 +94,7 @@ case "`archdetect`" in
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
[ -z "$NAMESERVERS" ] && NAMESERVERS=192.168.1.1
dhcp_fallback
dhcp_fallback $FILE
fi
HOSTNAME=$(cut -d . -f 1 $path/mnt/etc/HOSTNAME)
# work around a bug in busybox's cut
......@@ -142,18 +149,20 @@ case "`archdetect`" in
NETMASK=255.255.255.0
GATEWAY=192.168.11.1
[ -z "$NAMESERVERS" ] && NAMESERVERS=192.168.11.1
dhcp_fallback
dhcp_fallback $FILE
fi
umount $path/rootfs || true
rmdir $path/rootfs $path || true
elif echo "$machine" | grep -q "^Buffalo Linkstation Pro/Live"; then
elif echo "$machine" | grep -q "^Buffalo Linkstation Pro/Live" ||
echo "$machine" | grep -q "^Buffalo Linkstation LiveV3 (LS-CHL)" ||
echo "$machine" | grep -q "^Buffalo Linkstation Mini"; then
# the default filesystem for the system partition is XFS, which isn't included
# in our startup environment. However, customized boxes might have ext3
# instead, so try to mount anyway.
rootdev=/dev/sda2
path=/tmp/oldsys-preseed
mkdir -p $path/rootfs
mount -o ro $rootdev $path/rootfs || true
mount -o ro /dev/sda2 $path/rootfs ||
mount -o ro /dev/md1 $path/rootfs || true
INTERFACE=eth0
parse_unix_tree $path/rootfs
info=$path/rootfs/etc/melco/info
......@@ -178,7 +187,7 @@ case "`archdetect`" in
NETMASK=255.255.255.0
GATEWAY=192.168.11.1
[ -z "$NAMESERVERS" ] && NAMESERVERS=192.168.11.1
dhcp_fallback
dhcp_fallback $FILE
fi
umount $path/rootfs || true
rmdir $path/rootfs $path || true
......@@ -204,7 +213,7 @@ case "`archdetect`" in
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
[ -z "$NAMESERVERS" ] && NAMESERVERS=192.168.0.1
dhcp_fallback
dhcp_fallback $FILE
fi
elif echo "$machine" | grep -q "^HP Media Vault mv2120"; then
path=/tmp/oldsys-preseed
......@@ -237,7 +246,7 @@ case "`archdetect`" in
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
[ -z "$NAMESERVERS" ] && NAMESERVERS=192.168.1.1
dhcp_fallback
dhcp_fallback $FILE
fi
umount $path/sda5 || true
rmdir $path/sda5 $path || true
......@@ -280,7 +289,7 @@ case "`archdetect`" in
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
[ -z "$NAMESERVERS" ] && NAMESERVERS=192.168.1.1
dhcp_fallback
dhcp_fallback $FILE
fi
umount $path/sda1 || true
rmdir $path/sda1 $path || true
......@@ -293,23 +302,25 @@ case "`archdetect`" in
;;
esac
# Just continue if d-i enters lowmem mode
skip_debconf_note "lowmem/low"
# Any hostname and domain names assigned from DHCP take precedence
# over values set here. However, setting the values still prevents
# the questions from being shown, even if values come from dhcp.
add "netcfg/get_hostname" "debian"
add "netcfg/get_domain" "example.org"
# I'm not terribly happy to preseed a generic password but I guess
# there's no other way on some machines.
add "network-console/password" "install"
add "network-console/password-again" "install"
# Continue if there is missing firmware at ethdetect, and hope that
# it is not actually needed to get on the network.
add "ethdetect/prompt_missing_firmware" "false"
if [ "$NONINTERACTIVE" = "yes" ]; then
# Just continue if d-i enters lowmem mode
add "$FILE" "lowmem/low" "note"
# Any hostname and domain names assigned from DHCP take precedence
# over values set here. However, setting the values still prevents
# the questions from being shown, even if values come from dhcp.
add "$FILE" "netcfg/get_hostname" "string" "debian"
add "$FILE" "netcfg/get_domain" "string" "example.org"
# I'm not terribly happy to preseed a generic password but I guess
# there's no other way on some machines.
add "$FILE" "network-console/password" "password" "install"
add "$FILE" "network-console/password-again" "password" "install"
# Continue if there is missing firmware at ethdetect, and hope that
# it is not actually needed to get on the network.
add "$FILE" "ethdetect/prompt_missing_firmware" "boolean" "false"
fi
# Workaround for broken partconf
add "partconf/already-mounted" "false"
add "$FILE" "partconf/already-mounted" "boolean" "false"
do_oldsys_preseed
generate_preseed_file $FILE
op_db_set netcfg/choose_interface eth0
op_db_set netcfg/use_dhcp true
op_db_set netcfg/dhcp_failed
op_db_set netcfg/dhcp_options Configure network manually
op_db_set netcfg/get_ipaddress 192.168.0.32
op_db_set netcfg/get_netmask 255.255.255.0
op_db_set netcfg/get_gateway 192.168.0.1
op_db_set netcfg/get_nameservers 192.168.0.254 192.168.0.255
d-i netcfg/choose_interface select eth0
d-i netcfg/use_dhcp boolean true
d-i netcfg/dhcp_failed note
d-i netcfg/dhcp_options select Configure network manually
d-i netcfg/get_ipaddress string 192.168.0.32
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.0.1
d-i netcfg/get_nameservers string 192.168.0.254 192.168.0.255
......@@ -3,12 +3,12 @@ parse_sib_conf $TEST_DIR/dns323-dhcp_sib.conf
unset_matching_var "HOSTNAME" "DNS-323"
unset_matching_var "HOSTNAME" "CH3SNAS"
sanity_check_static_config
do_oldsys_preseed
generate_preseed_file "$1"
if [ "$NET_CONFIG" != "static" ]; then
IPADDRESS=192.168.0.32
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
[ -z "$NAMESERVERS" ] && NAMESERVERS=192.168.0.1
dhcp_fallback
dhcp_fallback "$1"
fi
op_db_set netcfg/choose_interface eth0
op_db_set netcfg/get_ipaddress 192.168.0.2
op_db_set netcfg/get_netmask 255.255.255.0
op_db_set netcfg/get_gateway 192.168.0.254
op_db_set netcfg/get_nameservers 192.168.0.254 192.168.0.255
op_db_set netcfg/confirm_static true
op_db_set netcfg/disable_dhcp true
op_db_set netcfg/get_hostname home
d-i netcfg/choose_interface select eth0
d-i netcfg/get_ipaddress string 192.168.0.2
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.0.254
d-i netcfg/get_nameservers string 192.168.0.254 192.168.0.255
d-i netcfg/confirm_static boolean true
d-i netcfg/disable_dhcp boolean true
d-i netcfg/get_hostname string home
......@@ -3,12 +3,12 @@ parse_sib_conf $TEST_DIR/dns323-static_sib.conf
unset_matching_var "HOSTNAME" "DNS-323"
unset_matching_var "HOSTNAME" "CH3SNAS"
sanity_check_static_config
do_oldsys_preseed
generate_preseed_file "$1"
if [ "$NET_CONFIG" != "static" ]; then
IPADDRESS=192.168.0.32
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
[ -z "$NAMESERVERS" ] && NAMESERVERS=192.168.0.1
dhcp_fallback
dhcp_fallback "$1"
fi
op_db_set netcfg/dhcp_failed
op_db_set netcfg/dhcp_options Configure network manually
op_db_set netcfg/get_ipaddress 192.168.11.150
op_db_set netcfg/get_netmask 255.255.255.0
op_db_set netcfg/get_gateway 192.168.11.1
op_db_set netcfg/get_nameservers 83.255.249.10 83.255.245.10
op_db_set netcfg/choose_interface eth0
op_db_set netcfg/use_dhcp true
d-i netcfg/dhcp_failed note
d-i netcfg/dhcp_options select Configure network manually
d-i netcfg/get_ipaddress string 192.168.11.150
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.11.1
d-i netcfg/get_nameservers string 83.255.249.10 83.255.245.10
d-i netcfg/choose_interface select eth0
d-i netcfg/use_dhcp boolean true
......@@ -25,7 +25,7 @@ if [ "$NET_CONFIG" != "static" ]; then
NETMASK=255.255.255.0
GATEWAY=192.168.11.1
[ -z "$NAMESERVERS" ] && NAMESERVERS=192.168.11.1
dhcp_fallback
dhcp_fallback "$1"
fi
do_oldsys_preseed
generate_preseed_file $1
rm -rf $path
op_db_set netcfg/choose_interface eth0
op_db_set netcfg/get_ipaddress 192.168.0.22
op_db_set netcfg/get_netmask 255.255.255.0
op_db_set netcfg/get_gateway 192.168.0.10
op_db_set netcfg/get_nameservers 192.168.0.10
op_db_set netcfg/confirm_static true
op_db_set netcfg/disable_dhcp true
op_db_set netcfg/get_hostname test
d-i netcfg/choose_interface select eth0
d-i netcfg/get_ipaddress string 192.168.0.22
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.0.10
d-i netcfg/get_nameservers string 192.168.0.10
d-i netcfg/confirm_static boolean true
d-i netcfg/disable_dhcp boolean true
d-i netcfg/get_hostname string test
......@@ -25,7 +25,7 @@ if [ "$NET_CONFIG" != "static" ]; then
NETMASK=255.255.255.0
GATEWAY=192.168.11.1
[ -z "$NAMESERVERS" ] && NAMESERVERS=192.168.11.1
dhcp_fallback
dhcp_fallback "$1"
fi
do_oldsys_preseed
generate_preseed_file $1
rm -rf $path
op_db_set netcfg/dhcp_failed
op_db_set netcfg/dhcp_options Configure network manually
op_db_set netcfg/get_ipaddress 192.168.11.150
op_db_set netcfg/get_netmask 255.255.255.0
op_db_set netcfg/get_gateway 192.168.11.1
op_db_set netcfg/get_nameservers 192.168.1.1
op_db_set netcfg/choose_interface eth0
op_db_set netcfg/use_dhcp true
d-i netcfg/dhcp_failed note
d-i netcfg/dhcp_options select Configure network manually
d-i netcfg/get_ipaddress string 192.168.11.150
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.11.1
d-i netcfg/get_nameservers string 192.168.1.1
d-i netcfg/choose_interface select eth0
d-i netcfg/use_dhcp boolean true
......@@ -25,7 +25,7 @@ if [ "$NET_CONFIG" != "static" ]; then
NETMASK=255.255.255.0
GATEWAY=192.168.11.1
[ -z "$NAMESERVERS" ] && NAMESERVERS=192.168.11.1
dhcp_fallback
dhcp_fallback "$1"
fi
do_oldsys_preseed
generate_preseed_file $1
rm -rf $path
op_db_set netcfg/choose_interface eth0
op_db_set netcfg/get_ipaddress 192.168.1.51
op_db_set netcfg/get_netmask 255.255.255.0
op_db_set netcfg/get_gateway 192.168.1.1
op_db_set netcfg/get_nameservers 192.168.1.1
op_db_set netcfg/confirm_static true
op_db_set netcfg/disable_dhcp true
op_db_set netcfg/get_hostname test
d-i netcfg/choose_interface select eth0
d-i netcfg/get_ipaddress string 192.168.1.51
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.1.1
d-i netcfg/get_nameservers string 192.168.1.1
d-i netcfg/confirm_static boolean true
d-i netcfg/disable_dhcp boolean true
d-i netcfg/get_hostname string test
......@@ -25,7 +25,7 @@ if [ "$NET_CONFIG" != "static" ]; then
NETMASK=255.255.255.0
GATEWAY=192.168.11.1
[ -z "$NAMESERVERS" ] && NAMESERVERS=192.168.11.1
dhcp_fallback
dhcp_fallback "$1"
fi
do_oldsys_preseed
generate_preseed_file $1
rm -rf $path
op_db_set netcfg/dhcp_failed
op_db_set netcfg/dhcp_options Configure network manually
op_db_set netcfg/get_ipaddress 192.168.1.100
op_db_set netcfg/get_netmask 255.255.255.0
op_db_set netcfg/get_gateway 192.168.1.1
op_db_set netcfg/get_nameservers 192.168.1.1
op_db_set netcfg/use_dhcp true
d-i netcfg/dhcp_failed note
d-i netcfg/dhcp_options select Configure network manually
d-i netcfg/get_ipaddress string 192.168.1.100
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.1.1
d-i netcfg/get_nameservers string 192.168.1.1
d-i netcfg/use_dhcp boolean true
......@@ -17,6 +17,6 @@ if [ "$NET_CONFIG" != "static" ]; then
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
[ -z "$NAMESERVERS" ] && NAMESERVERS=192.168.1.1
dhcp_fallback
dhcp_fallback $1
fi
do_oldsys_preseed
generate_preseed_file "$1"
op_db_set netcfg/get_ipaddress 192.168.1.132
op_db_set netcfg/get_netmask 255.255.255.0
op_db_set netcfg/get_gateway 192.168.1.1
op_db_set netcfg/get_nameservers 195.3.96.69 192.168.1.1
op_db_set netcfg/confirm_static true
op_db_set netcfg/disable_dhcp true
op_db_set netcfg/get_hostname test
op_db_set netcfg/get_domain cyrius.com
d-i netcfg/get_ipaddress string 192.168.1.132
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.1.1
d-i netcfg/get_nameservers string 195.3.96.69 192.168.1.1
d-i netcfg/confirm_static boolean true
d-i netcfg/disable_dhcp boolean true
d-i netcfg/get_hostname string test
d-i netcfg/get_domain string cyrius.com
......@@ -20,6 +20,6 @@ if [ "$NET_CONFIG" != "static" ]; then
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
[ -z "$NAMESERVERS" ] && NAMESERVERS=192.168.1.1
dhcp_fallback
dhcp_fallback $1
fi
do_oldsys_preseed
generate_preseed_file "$1"
op_db_set netcfg/choose_interface eth0
op_db_set netcfg/get_ipaddress 192.168.0.2
op_db_set netcfg/get_netmask 255.255.255.0
op_db_set netcfg/get_gateway 192.168.0.254
op_db_set netcfg/get_nameservers 192.168.0.254 192.168.0.255 192.168.0.259
op_db_set netcfg/confirm_static true
op_db_set netcfg/disable_dhcp true
op_db_set netcfg/get_hostname home
d-i netcfg/choose_interface select eth0
d-i netcfg/get_ipaddress string 192.168.0.2
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.0.254
d-i netcfg/get_nameservers string 192.168.0.254 192.168.0.255 192.168.0.259
d-i netcfg/confirm_static boolean true
d-i netcfg/disable_dhcp boolean true
d-i netcfg/get_hostname string home
......@@ -6,7 +6,7 @@ if [ "$NET_CONFIG" != "static" ]; then
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
[ -z "$NAMESERVERS" ] && NAMESERVERS=192.168.1.1
dhcp_fallback
dhcp_fallback "$1"
fi
do_oldsys_preseed
generate_preseed_file "$1"
op_db_set netcfg/choose_interface eth0
op_db_set netcfg/get_ipaddress 192.168.0.2
op_db_set netcfg/get_netmask 255.255.255.0
op_db_set netcfg/get_gateway 192.168.0.254
op_db_set netcfg/get_nameservers 192.168.0.254 192.168.0.255 192.168.0.259
op_db_set netcfg/confirm_static true
op_db_set netcfg/disable_dhcp true
d-i netcfg/choose_interface select eth0
d-i netcfg/get_ipaddress string 192.168.0.2
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.0.254
d-i netcfg/get_nameservers string 192.168.0.254 192.168.0.255 192.168.0.259
d-i netcfg/confirm_static boolean true
d-i netcfg/disable_dhcp boolean true
......@@ -6,7 +6,7 @@ if [ "$NET_CONFIG" != "static" ]; then
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
[ -z "$NAMESERVERS" ] && NAMESERVERS=192.168.1.1
dhcp_fallback
dhcp_fallback "$1"
fi
do_oldsys_preseed
generate_preseed_file "$1"
op_db_set netcfg/choose_interface eth0
op_db_set netcfg/get_ipaddress 192.168.1.77
op_db_set netcfg/get_netmask 255.255.255.0
op_db_set netcfg/get_gateway 192.168.1.1
op_db_set netcfg/get_nameservers 213.33.99.70
op_db_set netcfg/confirm_static true
op_db_set netcfg/disable_dhcp true
op_db_set netcfg/get_hostname foobar
d-i netcfg/choose_interface select eth0
d-i netcfg/get_ipaddress string 192.168.1.77
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.1.1
d-i netcfg/get_nameservers string 213.33.99.70
d-i netcfg/confirm_static boolean true
d-i netcfg/disable_dhcp boolean true
d-i netcfg/get_hostname string foobar
......@@ -6,7 +6,7 @@ if [ "$NET_CONFIG" != "static" ]; then
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
[ -z "$NAMESERVERS" ] && NAMESERVERS=192.168.1.1
dhcp_fallback
dhcp_fallback "$1"
fi
do_oldsys_preseed
generate_preseed_file "$1"
op_db_set netcfg/dhcp_failed
op_db_set netcfg/dhcp_options Configure network manually
op_db_set netcfg/get_ipaddress 192.168.1.77
op_db_set netcfg/get_netmask 255.255.255.0
op_db_set netcfg/get_gateway 192.168.1.1
op_db_set netcfg/get_nameservers 192.168.1.1
op_db_set netcfg/choose_interface eth0
op_db_set netcfg/use_dhcp true
op_db_set netcfg/get_hostname foobar
d-i netcfg/dhcp_failed note
d-i netcfg/dhcp_options select Configure network manually
d-i netcfg/get_ipaddress string 192.168.1.77
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.1.1
d-i netcfg/get_nameservers string 192.168.1.1
d-i netcfg/choose_interface select eth0
d-i netcfg/use_dhcp boolean true
d-i netcfg/get_hostname string foobar
......@@ -6,7 +6,7 @@ if [ "$NET_CONFIG" != "static" ]; then
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
[ -z "$NAMESERVERS" ] && NAMESERVERS=192.168.1.1
dhcp_fallback
dhcp_fallback "$1"
fi
do_oldsys_preseed
generate_preseed_file "$1"
op_db_set netcfg/choose_interface eth0
op_db_set netcfg/get_ipaddress 192.168.0.2
op_db_set netcfg/get_netmask 255.255.255.0
op_db_set netcfg/get_gateway none
op_db_set netcfg/get_nameservers 192.168.0.254 192.168.0.255 192.168.0.259
op_db_set netcfg/confirm_static true
op_db_set netcfg/disable_dhcp true
op_db_set netcfg/get_hostname home
d-i netcfg/choose_interface select eth0
d-i netcfg/get_ipaddress string 192.168.0.2
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string none
d-i netcfg/get_nameservers string 192.168.0.254 192.168.0.255 192.168.0.259
d-i netcfg/confirm_static boolean true
d-i netcfg/disable_dhcp boolean true
d-i netcfg/get_hostname string home
......@@ -6,7 +6,7 @@ if [ "$NET_CONFIG" != "static" ]; then
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
[ -z "$NAMESERVERS" ] && NAMESERVERS=192.168.1.1
dhcp_fallback
dhcp_fallback "$1"
fi
do_oldsys_preseed
generate_preseed_file "$1"
op_db_set netcfg/dhcp_failed
op_db_set netcfg/dhcp_options Configure network manually
op_db_set netcfg/get_ipaddress 192.168.1.77
op_db_set netcfg/get_netmask 255.255.255.0
op_db_set netcfg/get_gateway 192.168.1.1
op_db_set netcfg/get_nameservers 213.33.99.70
op_db_set netcfg/choose_interface eth0
op_db_set netcfg/use_dhcp true
op_db_set netcfg/get_hostname foobar
d-i netcfg/dhcp_failed note
d-i netcfg/dhcp_options select Configure network manually
d-i netcfg/get_ipaddress string 192.168.1.77
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.1.1
d-i netcfg/get_nameservers string 213.33.99.70
d-i netcfg/choose_interface select eth0
d-i netcfg/use_dhcp boolean true
d-i netcfg/get_hostname string foobar
......@@ -6,7 +6,7 @@ if [ "$NET_CONFIG" != "static" ]; then
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
[ -z "$NAMESERVERS" ] && NAMESERVERS=192.168.1.1
dhcp_fallback
dhcp_fallback "$1"
fi
do_oldsys_preseed
generate_preseed_file "$1"
op_db_set netcfg/dhcp_failed
op_db_set netcfg/dhcp_options Configure network manually
op_db_set netcfg/get_ipaddress 192.168.1.77
op_db_set netcfg/get_netmask 255.255.255.0
op_db_set netcfg/get_gateway 192.168.1.1
op_db_set netcfg/get_nameservers 192.168.1.1
op_db_set netcfg/choose_interface eth0
op_db_set netcfg/use_dhcp true