Debian: Install ethtool on the hosts
PATCH 1/1 Debian: Install ethtool on the hosts
It's very useful when debugging network issues.
--- Osstest/Debian.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Osstest/Debian.pm +1 -1
@@ -492,7 +492,7 @@ d-i apt-setup/another boolean false d-i apt-setup/non-free boolean false d-i apt-setup/contrib boolean false -d-i pkgsel/include string openssh-server, ntp, ntpdate, $extra_packages +d-i pkgsel/include string openssh-server, ntp, ntpdate, ethtool, $extra_packages $xopts{ExtraPreseed}
Signature · 1 line
2.1.1
PATCH 1/1 mg-debian-installer-update: Use Packages.gz
In Jessie Packages.bz2 is replaced by Packages.xz. Rather than implementing per-suite handling just fallback to lowest-common-denominator gzip.
--- mg-debian-installer-update | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-)
mg-debian-installer-update +8 -8
@@ -49,7 +49,7 @@ case ${suite}_${arch} in ;; esac -pfile=$sbase/non-free/binary-$arch/Packages.bz2 +pfile=$sbase/non-free/binary-$arch/Packages.gz dstroot=`getconfig TftpPath`/`getconfig TftpDiBase`/ date=`date +%Y-%m-%d`-$suite
@@ -66,12 +66,12 @@ for f in $files; do curl -s $src/$s >$d.new done -curl -s $pfile >Packages.bz2 +curl -s $pfile >Packages.gz for p in $packages; do set +e echo >&2 "collecting $p" - pkgfile=`bzcat Packages.bz2 | grep-dctrl -PX $p -nsFilename` + pkgfile=`zcat Packages.gz | grep-dctrl -PX $p -nsFilename` rc=$? set -e if [ $rc != 0 ]; then fail "package $p not found"; fi
@@ -89,13 +89,13 @@ done # wheezy-backports. if [ $arch = armhf ]; then bp="$sbase-backports" - pfile=$bp/main/binary-armhf/Packages.bz2 + pfile=$bp/main/binary-armhf/Packages.gz - curl -s $pfile >Packages.bz2 + curl -s $pfile >Packages.gz # Newer kernel often needs a newer initramfs-tools. Make that available echo >&2 "collecting backports initramfs-tools" - pkgfile=`bzcat Packages.bz2 | grep-dctrl -PX initramfs-tools -nsFilename | sort -n -r | head -n1` + pkgfile=`zcat Packages.gz | grep-dctrl -PX initramfs-tools -nsFilename | sort -n -r | head -n1` rc=$? set -e if [ $rc != 0 ]; then fail "initramfs-tools package not found"; fi
@@ -105,7 +105,7 @@ if [ $arch = armhf ]; then echo >&2 "collecting armmp kernel" # Be careful to pickup the actual kernel package from the 'linux' # source and not a meta package from 'linux-latest' - pkgfile=`bzcat Packages.bz2 | grep-dctrl -S linux | grep-dctrl -Pe ^linux-image-.*-armmp$ -nsFilename | sort -n -r | head -n1` + pkgfile=`zcat Packages.gz | grep-dctrl -S linux | grep-dctrl -Pe ^linux-image-.*-armmp$ -nsFilename | sort -n -r | head -n1` rc=$? set -e if [ $rc != 0 ]; then fail "armmp kernel package not found"; fi
@@ -150,7 +150,7 @@ for f in $files; do mv -f $d.new $d done -rm Packages.bz2 +rm Packages.gz #cd $dstroot/$arch #rm -rf current.new
Signature · 1 line
2.1.1
PATCH 1/1 ts-host-install: Ensure $dtbs is always a valid string
Otherwise on non-ARM platforms we get warnings about uninitialised values.
--- ts-host-install | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
ts-host-install +3 -2
@@ -196,8 +196,9 @@ SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="$ho->{Ether}", A END } - my $dtbs = "fdtdir /$d_i/dtbs" - if -e "$ho->{Tftp}{Path}/$d_i/dtbs"; + my $dtbs = ""; + $dtbs = "fdtdir /$d_i/dtbs" + if -e "fdtdir /$d_i/dtbs""$ho->{Tftp}{Path}/$d_i/dtbs"; file_simple_write_contents("$initrd_overlay.cpio", sub { contents_make_cpio($_[0], 'newc', "$initrd_overlay.d");
Signature · 1 line
2.1.1
Re: [PATCH OSSTEST] Debian: Install ethtool on the hosts [and 2 more messages]
In reply to Ian CampbellIan Campbell writes ("[PATCH OSSTEST] Debian: Install ethtool on the hosts"):
Quoted 1 line
It's very useful when debugging network issues.
Ian Campbell writes ("[PATCH OSSTEST] mg-debian-installer-update: Use Packages.gz"):
Quoted 2 lines
In Jessie Packages.bz2 is replaced by Packages.xz. Rather than implementing per-suite handling just fallback to lowest-common-denominator gzip.
Ian Campbell writes ("[PATCH OSSTEST] ts-host-install: Ensure $dtbs is always a valid string"):
Quoted 1 line
Otherwise on non-ARM platforms we get warnings about uninitialised values.
All three: