Package: debian-installer
Version: 20150107
Severity: minor
Dear Maintainer,
I'm setting up an automatic installation process with hands-off.
Version of “debian-installer” package is “netboot-20150107”
I found an interesting issue where 60auto-install[1] does not
use boot options[2], which results in:
- “/var/run/auto-install.active” contains “0”
- “/var/run/preseed_unspecified_at_boot” is present
I fist thought it may be some kind of aliases[3] problem.
Then, I made several tries with pausing the installation to run a little
script, attached to this email, with several combination of boot
options/aliases:
- auto=false url=http://192.168.1.2/preseed/./start.cfg
File 'auto-install.active' contains '0'
Does not exist '/var/run/preseed_unspecified_at_boot'
Debconf 'auto-install' is 'false'
Debconf 'preseed/url' is 'http://192.168.1.2/preseed/./start.cfg'
Debconf 'preseed/file' is ''
- auto=true url=http://192.168.1.2/preseed/./start.cfg
File 'auto-install.active' contains '0'
Exists '/var/run/preseed_unspecified_at_boot'
Debconf 'auto-install' is 'true'
Debconf 'preseed/url' is 'http://192.168.1.2/preseed/./start.cfg'
Debconf 'preseed/file' is ''
- auto=true preseed/url=http://192.168.1.2/preseed/./start.cfg
File 'auto-install.active' contains '0'
Exists '/var/run/preseed_unspecified_at_boot'
Debconf 'auto-install' is 'true'
Debconf 'preseed/url' is 'http://192.168.1.2/preseed/./start.cfg'
Debconf 'preseed/file' is ''
- auto-install/enable=true url=http://192.168.1.2/preseed/./start.cfg
File 'auto-install.active' contains '0'
Exists '/var/run/preseed_unspecified_at_boot'
Debconf 'auto-install' is 'true'
Debconf 'preseed/url' is 'http://192.168.1.2/preseed/./start.cfg'
Debconf 'preseed/file' is ''
- auto-install/enable=true preseed/url=http://192.168.1.2/preseed/./start.cfg
File 'auto-install.active' contains '0'
Exists '/var/run/preseed_unspecified_at_boot'
Debconf 'auto-install' is 'true'
Debconf 'preseed/url' is 'http://192.168.1.2/preseed/./start.cfg'
Debconf 'preseed/file' is ''
The “/var/run/auto-install.active” file always contains “0”, but should
contains “1” as soon as “auto=true” or “auto-install/enabled=true” is
passed.
When “auto=true” is passed, the “/var/run/preseed_unspecified_at_boot”
files should only exists if no “url=”, “file=” or their full name
“preseed/url=” and “preseed/file=” was specified.
Regards.
-- System Information:
Debian Release: 8.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (90, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Footnotes:
[1] http://anonscm.debian.org/cgit/d-i/preseed.git/tree/debian-installer-startup.d/S60auto-install
[2] https://www.debian.org/releases/stable/amd64/apbs02.html.en#preseed-bootparms
[3] https://www.debian.org/releases/stable/amd64/apbs02.html.en#preseed-aliases
--
Daniel Dehennin
Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF
Fingerprint: 3E69 014E 5C23 50E8 9ED6 2AAD CC1E 9E5B 7A6F E2DF
#!/bin/sh
. /usr/share/debconf/confmodule
get_pkg_version() {
sed -ne '/^Package: '${1}'$/,/^$/s/^Version: \(.*\)$/\1/p' \
/var/lib/dpkg/status
}
echo "Package 'debian-installer' version is '$(get_pkg_version debian-installer)'"
echo "Package 'preseed-common' version is '$(get_pkg_version preseed-common)'"
echo "File 'auto-install.active' contains '$(cat /var/run/auto-install.active)'"
if [ -e /var/run/preseed_unspecified_at_boot ]
then
echo "Exists '/var/run/preseed_unspecified_at_boot'"
else
echo "Does not exist '/var/run/preseed_unspecified_at_boot'"
fi
if db_get auto-install/enable
then
echo "Debconf 'auto-install' is '${RET}'"
else
echo "Error getting auto-install"
fi
if db_get preseed/url
then
echo "Debconf 'preseed/url' is '${RET}'"
else
echo "Error getting preseed/url"
fi
if db_get preseed/file
then
echo "Debconf 'preseed/file' is '${RET}'"
else
echo "Error getting preseed/file"
fi
Attachment:
signature.asc
Description: PGP signature