Commit 852eac98 authored by Cyril Brulebois's avatar Cyril Brulebois

Make sure to disable interactivity in “apt-cdrom ident” calls.

Achieve that by adding “< /dev/null” as done in some “apt-cdrom add”
calls. This command became interactive in some apt versions (See:
parent 0bc86e82
......@@ -4,6 +4,12 @@ apt-setup (1:0.86) UNRELEASED; urgency=low
* Handle proxy and timeout configuration appropriately when installing
over HTTPS (LP: #1135163).
[ Cyril Brulebois ]
* Make sure to disable interactivity in “apt-cdrom ident” calls, by adding
“< /dev/null” as done in some “apt-cdrom add” calls. This command became
interactive in some apt versions (See: #740673), so be explicit about
what we want, which should avoid hanging.
[ Updated translations ]
* Belarusian (be.po) by Viktar Siarheichyk
* Bosnian (bs.po) by Amila Valjevčić
......
......@@ -85,7 +85,7 @@ bail_out() {
save_label() {
local ident
if ! ident="$(LC_ALL=C $logoutput_pass $chroot $ROOT apt-cdrom ident)"; then
if ! ident="$(LC_ALL=C $logoutput_pass $chroot $ROOT apt-cdrom ident < /dev/null)"; then
bail_out
fi
echo "$ident" | grep "^Identifying" | head -n1 | cut -d" " -f2 \
......
......@@ -46,7 +46,7 @@ fi
get_label() {
LC_ALL=C $logoutput --pass-stdout $chroot $ROOT \
apt-cdrom ident | grep "^Stored label:" | head -n1 | \
apt-cdrom ident < /dev/null | grep "^Stored label:" | head -n1 | \
sed "s/^[^:]*: //"
}
......
......@@ -12,7 +12,7 @@ logoutput="log-output -t load-install-cd"
check_id() {
cd_ids=$(LC_ALL=C $logoutput --pass-stdout chroot $ROOT \
apt-cdrom ident | grep "^Identifying" | cut -d" " -f2)
apt-cdrom ident < /dev/null | grep "^Identifying" | cut -d" " -f2)
for cd_id in $cd_ids; do
if [ "$cd_id" = "$(head -n1 /var/lib/install-cd.id)" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment