Bug#789798: grub-installer: add option to _not_ install to UEFI boot order

2015-07-16 Thread Ian Campbell
Control: block 789798 by 792547

I've tested both of these patches (grub-installer [0] and grub2 [1]
together but the grub-installer one doesn't do much without the grub2
one, since it appears that the installation of the grub-* packages also
ends up running grub-install during installation.

Ian.

[0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789798#65
[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792547#5


-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/1437032065.7019.160.ca...@debian.org



Re: Fixing udev-udeb vs. net.ifnames for Stretch Alpha 1

2015-07-16 Thread Martin Pitt
Hey Cyril,

thanks for preparing the update! FTR, the debdiff below looks good to
me, +1.

Martin

Cyril Brulebois [2015-07-16  9:23 +0200]:
 diff -Nru systemd-221/debian/changelog systemd-221/debian/changelog
 --- systemd-221/debian/changelog  2015-06-28 12:05:49.0 +0200
 +++ systemd-221/debian/changelog  2015-07-16 08:24:46.0 +0200
 @@ -1,3 +1,15 @@
 +systemd (221-1+deb9u1) stretch-proposed-updates; urgency=medium
 +
 +  [ Cyril Brulebois ]
 +  * Fix net.ifnames support in d-i for the Stretch Alpha 1 release by
 +cherry-picking the relevant commits from version 222-2.
 +
 +  [ Adam Conrad ]
 +  * debian/udev-udeb.install: Install new bits for net.ifnames (LP: #1473542)
 +  * debian/extra/initramfs-tools/hooks/udev: Do the same for initramfs-tools.
 +
 + -- Cyril Brulebois k...@debian.org  Thu, 16 Jul 2015 08:13:09 +0200
 +
  systemd (221-1) unstable; urgency=medium
  
* New upstream release 221:
 diff -Nru systemd-221/debian/extra/initramfs-tools/hooks/udev 
 systemd-221/debian/extra/initramfs-tools/hooks/udev
 --- systemd-221/debian/extra/initramfs-tools/hooks/udev   2015-06-28 
 12:05:49.0 +0200
 +++ systemd-221/debian/extra/initramfs-tools/hooks/udev   2015-07-16 
 08:24:46.0 +0200
 @@ -32,8 +32,18 @@
  mkdir -p $DESTDIR/etc/udev
  cp -p /etc/udev/udev.conf $DESTDIR/etc/udev/
  
 +mkdir -p $DESTDIR/lib/systemd/network/
 +for link in 01-mac-for-usb.link 99-default.link; do
 +  if   [ -e /etc/systemd/network/$link ]; then
 +cp -p /etc/systemd/network/$link $DESTDIR/lib/systemd/network/
 +  elif [ -e /lib/systemd/network/$link ]; then
 +cp -p /lib/systemd/network/$link $DESTDIR/lib/systemd/network/
 +  fi
 +done
 +
  mkdir -p $DESTDIR/lib/udev/rules.d/
  for rules in 50-firmware.rules 50-udev-default.rules 
 60-persistent-storage.rules \
 + 70-persistent-net.rules  75-net-description.rules 
 80-net-setup-link.rules \
   61-persistent-storage-android.rules 80-drivers.rules; do
if   [ -e /etc/udev/rules.d/$rules ]; then
  cp -p /etc/udev/rules.d/$rules $DESTDIR/lib/udev/rules.d/
 diff -Nru systemd-221/debian/udev-udeb.install 
 systemd-221/debian/udev-udeb.install
 --- systemd-221/debian/udev-udeb.install  2015-06-28 12:05:49.0 
 +0200
 +++ systemd-221/debian/udev-udeb.install  2015-07-16 08:24:46.0 
 +0200
 @@ -1,3 +1,4 @@
 +lib/systemd/network/99-default.link
  lib/systemd/systemd-udevd
  bin/udevadm
  lib/udev/ata_id
 @@ -8,8 +9,11 @@
  lib/udev/rules.d/60-persistent-input.rules
  lib/udev/rules.d/60-persistent-storage.rules
  lib/udev/rules.d/64-btrfs.rules
 +lib/udev/rules.d/75-net-description.rules
  lib/udev/rules.d/75-probe_mtd.rules
  lib/udev/rules.d/80-drivers.rules
 +lib/udev/rules.d/80-net-setup-link.rules
 +../../extra/01-mac-for-usb.link lib/systemd/network/
  ../../extra/rules/50-firmware.rules lib/udev/rules.d/
  ../../extra/rules/73-idrac.rules lib/udev/rules.d/
  ../../extra/udev-helpers/*.functions lib/udev/



-- 
Martin Pitt| http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)


signature.asc
Description: Digital signature


Bug#789798: Bug#792547: Bug#789798: grub-installer: add option to _not_ install to UEFI boot order

2015-07-16 Thread Ian Campbell
On Thu, 2015-07-16 at 08:34 +0100, Ian Campbell wrote:
 Control: block 789798 by 792547
 
 I've tested both of these patches (grub-installer [0] and grub2 [1]
 together but the grub-installer one doesn't do much without the grub2
 one, since it appears that the installation of the grub-* packages also
 ends up running grub-install during installation.

To clarify, I rebuilt the Jessie d-i version with this modified
grub-installer included in the initrd and did two tests:

A normal x86/UEFI install, from mini.iso, which showed no change in
behaviour (i.e. Debian was added to the boot order as expected). In the
installed system I then installed the updated version of grub2 and
manually confirmed that /var/cache/debconf/config.dat had the new option
set to true and that having deleted Debian from the boot order
dpkg-reconfigure grub-efi-amd64 put it back and that dpkg-reconfigure
-plow grub-efi-amd64 asked me the question and it behaved as expected
(i.e. didn't add the entry if I deselected the new option).

I then reinstalled using my patched d-i but with
grub-installer/install-to-nvram=false added tothe kernel command line. I
ran through the install and observed in syslog that grub-installer had
passed --no-nvram but that Debian was added to the boot order by the
existing grub2 packages from the archive (not my patched version) as
they were installed. Then in the installed system I confirmed
that /var/cache/debconf/config.dat had the new question in it set to
false. Deleting the boot order and then installing my patched grub2
packages then correctly obeyed that setting, leading me to conclude that
if it had been present in the archive during install then the right
thing would have happened.

Ian.

 
 Ian.
 
 [0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789798#65
 [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792547#5
 
 ___
 Pkg-grub-devel mailing list
 pkg-grub-de...@lists.alioth.debian.org
 http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-grub-devel
 


-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/1437037142.32371.141.ca...@debian.org



Bug#789798: Updated patch to add option to _not_ install to UEFI boot order

2015-07-16 Thread Ian Campbell
Attached new patch inverts the sense of the option after review of the
wording by debian-l10n-english and fixes the propagation of the setting
to the installed grub2 package.

Ian.
From 4e038e33ea681dde7cccb05ba5a1a6b1e3ae8d6f Mon Sep 17 00:00:00 2001
From: Ian Campbell i...@hellion.org.uk
Date: Fri, 19 Jun 2015 15:17:40 +0100
Subject: [PATCH] Allow avoiding installation to NVRAM on EFI or IEEE1275
 systems

On systems which demand greater control over the boot order (e.g. ones which
PXE boot) it is useful to avoid messing with this during installation.

(Closes: #789798)
---
 debian/changelog|  2 ++
 debian/grub-installer.templates | 12 
 grub-installer  | 12 
 3 files changed, 26 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 24873db..87f4d17 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ grub-installer (1.125) UNRELEASED; urgency=medium
   [ Ian Campbell ]
   * Correctly propagate grub-installer/force-efi-extra-removable to installed
 system. (Closes: #792247).
+  * Add preseedable option to allow avoiding installation to NVRAM.
+(Closes: #789798)
 
  -- Ian Campbell i...@debian.org  Mon, 13 Jul 2015 09:01:46 +0100
 
diff --git a/debian/grub-installer.templates b/debian/grub-installer.templates
index e294afb..73cbff0 100644
--- a/debian/grub-installer.templates
+++ b/debian/grub-installer.templates
@@ -285,3 +285,15 @@ _Description: Force GRUB installation to the EFI removable media path?
  installing GRUB there will make that operating system temporarily
  unbootable. GRUB can be manually configured later to boot it if
  necessary.
+
+Template: grub-installer/install-to-nvram
+Type: boolean
+Default: true
+# :sl4:
+_Description: Add GRUB to firmware NVRAM configuration?
+ By default, GRUB will be registered into NVRAM on platforms where this is
+ required, such as UEFI Boot Manager or OpenFirmware boot devices.
+ .
+ Occasionally this is not desired (for instance on systems that PXE boot
+ and then chainload). If you reject this option, the NVRAM will be left
+ untouched.
diff --git a/grub-installer b/grub-installer
index c407cd1..296419e 100755
--- a/grub-installer
+++ b/grub-installer
@@ -813,6 +813,18 @@ $grub_package grub2/force_efi_extra_removable boolean true
 EOF
 		fi
 
+		# Should we avoid installing/registering GRUB in NVRAM?
+		db_input low grub-installer/install-to-nvram || [ $? -eq 30 ]
+		db_go || exit 10
+		db_get grub-installer/install-to-nvram
+		if [ $RET = false ]; then
+			grub_install_params=$grub_install_params --no-nvram
+			# Make sure this happens on upgrades too
+			$chroot $ROOT 'debconf-set-selections' EOF
+$grub_package grub2/install_to_nvram boolean false
+EOF
+		fi
+
 		if [ $ARCH = powerpc/chrp_pegasos ] ; then
 			# nvram is broken here
 			grub_install_params=$grub_install_params --no-nvram
-- 
2.1.4



Re: Fixing udev-udeb vs. net.ifnames for Stretch Alpha 1

2015-07-16 Thread Cyril Brulebois
Hi,

Michael Biebl bi...@debian.org (2015-07-16):
 Am 15.07.2015 um 19:08 schrieb Martin Pitt:
  Cyril Brulebois [2015-07-15 18:03 +0200]:
  Bottom line(s):
  ---
  I'll be testing 221-1 to make sure I reproduce the issue with a full
  install, then 221-1 + two patches to make sure it goes away. If that
  works fine, it might be a good idea to tpu 221-1+deb9u1 so that we
  get d-i Stretch Alpha 1 unstuck ASAP, while not having to figure out
  what new joy the 222 release would bring.

Testing with libvirt led me to the expected issues: eth0 in /e/n/i vs.
ens3 on the kernel side. Applying both patches to systemd and rebuilding
d-i against its updated udebs gave me proper support for a basic
installation (with ens3 in /e/n/i), and also for a desktop-based
installation (xfce with network-manager, nothing but loopback in
/e/n/i).

So that looks good to me!


  I would recommend to only put the debian/udev-udeb.install parts of
  http://anonscm.debian.org/cgit/pkg-systemd/systemd.git/commit/?id=7b5eb265bbb2
  into the t-p-u upload. Or both of the above patches. Either is safe
  against 221-1, the former is less intrusive.

Yeah, I felt like getting part of the first commit would do, but it
feels a bit better to avoid cutting patches in halves, and to simply
merge both of them. As long as you're OK with it, and testing agrees…
I've done that and published the debian/221-1+deb9u1 tag on my stretch
branch here:

  https://mraw.org/git/?p=systemd-debian.git
  git://git.mraw.org/systemd-debian.git

  I need to run for today, but I can prepare an upload tomorrow early
  morning if you want to; if you would like to do that yourself, please
  go ahead with a direct NMU.
 
 I decided to upload 222-2 to unstable with the aforementioned fixes.
 This should give at least the initramfs-tools bits a bit of testing,
 even if you decide in the end to only include the udeb bits.

Looks great, thanks!

 As for doing a t-p-u: sounds fine with me.
 I'll be around today/Thursday but then away until Monday. But systemd is
 in more then capable hands with Martin.

I'm attaching the source debdiff against the version in testing to this
mail, so that Niels can (possibly) give me a green light for an upload.

Mraw,
KiBi.
diff -Nru systemd-221/debian/changelog systemd-221/debian/changelog
--- systemd-221/debian/changelog	2015-06-28 12:05:49.0 +0200
+++ systemd-221/debian/changelog	2015-07-16 08:24:46.0 +0200
@@ -1,3 +1,15 @@
+systemd (221-1+deb9u1) stretch-proposed-updates; urgency=medium
+
+  [ Cyril Brulebois ]
+  * Fix net.ifnames support in d-i for the Stretch Alpha 1 release by
+cherry-picking the relevant commits from version 222-2.
+
+  [ Adam Conrad ]
+  * debian/udev-udeb.install: Install new bits for net.ifnames (LP: #1473542)
+  * debian/extra/initramfs-tools/hooks/udev: Do the same for initramfs-tools.
+
+ -- Cyril Brulebois k...@debian.org  Thu, 16 Jul 2015 08:13:09 +0200
+
 systemd (221-1) unstable; urgency=medium
 
   * New upstream release 221:
diff -Nru systemd-221/debian/extra/initramfs-tools/hooks/udev systemd-221/debian/extra/initramfs-tools/hooks/udev
--- systemd-221/debian/extra/initramfs-tools/hooks/udev	2015-06-28 12:05:49.0 +0200
+++ systemd-221/debian/extra/initramfs-tools/hooks/udev	2015-07-16 08:24:46.0 +0200
@@ -32,8 +32,18 @@
 mkdir -p $DESTDIR/etc/udev
 cp -p /etc/udev/udev.conf $DESTDIR/etc/udev/
 
+mkdir -p $DESTDIR/lib/systemd/network/
+for link in 01-mac-for-usb.link 99-default.link; do
+  if   [ -e /etc/systemd/network/$link ]; then
+cp -p /etc/systemd/network/$link $DESTDIR/lib/systemd/network/
+  elif [ -e /lib/systemd/network/$link ]; then
+cp -p /lib/systemd/network/$link $DESTDIR/lib/systemd/network/
+  fi
+done
+
 mkdir -p $DESTDIR/lib/udev/rules.d/
 for rules in 50-firmware.rules 50-udev-default.rules 60-persistent-storage.rules \
+	70-persistent-net.rules  75-net-description.rules 80-net-setup-link.rules \
 	61-persistent-storage-android.rules 80-drivers.rules; do
   if   [ -e /etc/udev/rules.d/$rules ]; then
 cp -p /etc/udev/rules.d/$rules $DESTDIR/lib/udev/rules.d/
diff -Nru systemd-221/debian/udev-udeb.install systemd-221/debian/udev-udeb.install
--- systemd-221/debian/udev-udeb.install	2015-06-28 12:05:49.0 +0200
+++ systemd-221/debian/udev-udeb.install	2015-07-16 08:24:46.0 +0200
@@ -1,3 +1,4 @@
+lib/systemd/network/99-default.link
 lib/systemd/systemd-udevd
 bin/udevadm
 lib/udev/ata_id
@@ -8,8 +9,11 @@
 lib/udev/rules.d/60-persistent-input.rules
 lib/udev/rules.d/60-persistent-storage.rules
 lib/udev/rules.d/64-btrfs.rules
+lib/udev/rules.d/75-net-description.rules
 lib/udev/rules.d/75-probe_mtd.rules
 lib/udev/rules.d/80-drivers.rules
+lib/udev/rules.d/80-net-setup-link.rules
+../../extra/01-mac-for-usb.link lib/systemd/network/
 ../../extra/rules/50-firmware.rules lib/udev/rules.d/
 ../../extra/rules/73-idrac.rules lib/udev/rules.d/
 ../../extra/udev-helpers/*.functions lib/udev/


signature.asc
Description: 

Processed: Bug#789798: grub-installer: add option to _not_ install to UEFI boot order

2015-07-16 Thread Debian Bug Tracking System
Processing control commands:

 block 789798 by 792547
Bug #789798 [grub-installer] grub-installer: add option to _not_ install to 
UEFI boot order
789798 was blocked by: 792547
789798 was not blocking any bugs.
Ignoring request to alter blocking bugs of bug #789798 to the same blocks 
previously set

-- 
789798: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789798
792547: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=792547
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/handler.s.b792547.143703206822296.transcr...@bugs.debian.org



Processed: Bug#789798: grub-installer: add option to _not_ install to UEFI boot order

2015-07-16 Thread Debian Bug Tracking System
Processing control commands:

 block 789798 by 792547
Bug #789798 [grub-installer] grub-installer: add option to _not_ install to 
UEFI boot order
789798 was not blocked by any bugs.
789798 was not blocking any bugs.
Added blocking bug(s) of 789798: 792547

-- 
789798: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789798
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/handler.s.b789798.143703206822287.transcr...@bugs.debian.org



Re: Fixing udev-udeb vs. net.ifnames for Stretch Alpha 1

2015-07-16 Thread Cyril Brulebois
Niels Thykier ni...@thykier.net (2015-07-16):
 On 2015-07-16 09:23, Cyril Brulebois wrote:
   As for doing a t-p-u: sounds fine with me.
   I'll be around today/Thursday but then away until Monday. But systemd is
   in more then capable hands with Martin.
  I'm attaching the source debdiff against the version in testing to this
  mail, so that Niels can (possibly) give me a green light for an upload.
  
  Mraw,
  KiBi.
  
  
  systemd+tpu.diff
  
  
  diff -Nru systemd-221/debian/changelog systemd-221/debian/changelog
  --- systemd-221/debian/changelog2015-06-28 12:05:49.0 +0200
  +++ systemd-221/debian/changelog2015-07-16 08:24:46.0 +0200
  @@ -1,3 +1,15 @@
  +systemd (221-1+deb9u1) stretch-proposed-updates; urgency=medium
  +
  +  [ Cyril Brulebois ]
  +  * Fix net.ifnames support in d-i for the Stretch Alpha 1 release by
  +cherry-picking the relevant commits from version 222-2.
  +
  +  [ Adam Conrad ]
  +  * debian/udev-udeb.install: Install new bits for net.ifnames (LP: 
  #1473542)
  +  * debian/extra/initramfs-tools/hooks/udev: Do the same for 
  initramfs-tools.
  +
  + -- Cyril Brulebois k...@debian.org  Thu, 16 Jul 2015 08:13:09 +0200
  +
   systemd (221-1) unstable; urgency=medium
 
 Ok with me. :)

Uploaded and accepted into tpu, thanks.

Also, thanks to Martin for the confirmation earlier today.

Mraw,
KiBi.


signature.asc
Description: Digital signature


Re: Fixing udev-udeb vs. net.ifnames for Stretch Alpha 1

2015-07-16 Thread Niels Thykier
On 2015-07-16 09:23, Cyril Brulebois wrote:
  As for doing a t-p-u: sounds fine with me.
  I'll be around today/Thursday but then away until Monday. But systemd is
  in more then capable hands with Martin.
 I'm attaching the source debdiff against the version in testing to this
 mail, so that Niels can (possibly) give me a green light for an upload.
 
 Mraw,
 KiBi.
 
 
 systemd+tpu.diff
 
 
 diff -Nru systemd-221/debian/changelog systemd-221/debian/changelog
 --- systemd-221/debian/changelog  2015-06-28 12:05:49.0 +0200
 +++ systemd-221/debian/changelog  2015-07-16 08:24:46.0 +0200
 @@ -1,3 +1,15 @@
 +systemd (221-1+deb9u1) stretch-proposed-updates; urgency=medium
 +
 +  [ Cyril Brulebois ]
 +  * Fix net.ifnames support in d-i for the Stretch Alpha 1 release by
 +cherry-picking the relevant commits from version 222-2.
 +
 +  [ Adam Conrad ]
 +  * debian/udev-udeb.install: Install new bits for net.ifnames (LP: #1473542)
 +  * debian/extra/initramfs-tools/hooks/udev: Do the same for initramfs-tools.
 +
 + -- Cyril Brulebois k...@debian.org  Thu, 16 Jul 2015 08:13:09 +0200
 +
  systemd (221-1) unstable; urgency=medium

Ok with me. :)

~Niels





signature.asc
Description: OpenPGP digital signature


Bug#791794: Detecting a d-i context from within /target? (was: Bug#791794: UUID not found for root)

2015-07-16 Thread Cyril Brulebois
Hi,

Colin Watson cjwat...@debian.org (2015-07-16):
 On Thu, Jul 16, 2015 at 10:05:48AM -0400, Martin Michlmayr wrote:
  On a related note, flash-kernel waits for user input when the UUID of
  root is not found, which makes sense in an installed system, but not
  in d-i -- for the user, d-i will just hang with no obvious error.  Is
  there a good way to solve this?  In particular, is there a way for a
  postinst in /target to detect that it's run from within d-i?  KiBi
  doesn't know a way.  I guess a debconf prompt is the way to go?
 
 I think trying to add debconf prompting to an initramfs hook would
 probably be unwise.  flash-kernel already seems to check for
 DEBIAN_FRONTEND=noninteractive, so you could just set that in
 flash-kernel-installer.postinst when calling flash-kernel.

I'm not aware of other use cases right now, but maybe we could or should
standardize on an environment variable we would set in { all | most |
a particular set of } calls to let scripts know they're being executed
within an installer context?

Right now, provided /proc is mounted within /target, looking at /proc/1
might help one figure out that one /might/ might running within d-i; or
looking for main-menu in ps; both approaches look very fragile.


If adding support for a variable looks like a good idea, how should we
name it?

Using sources.debian.net, looking for DEBIAN_INSTALLER returns 3 hits:
 - obs-build
 - live-build
 - libdebian-installer

live-build actually uses longer variable names, so not an issue:
| LB_DEBIAN_INSTALLER
| LB_MIRROR_DEBIAN_INSTALLER
| LB_PARENT_DEBIAN_INSTALLER
| LB_PARENT_MIRROR_DEBIAN_INSTALLER

obs-build uses the same variables.

libdebian-installer uses DEBIAN_INSTALLER__* for define/#include guards,
plus a LIBDEBIAN_INSTALLER_MAP_REAL #define.

So DEBIAN_INSTALLER shouldn't be an issue. Maybe something more specific
would make it easier to check for later…


Thoughts?

Mraw,
KiBi.


signature.asc
Description: Digital signature


Bug#767880: Debien-installer does not install lvm

2015-07-16 Thread Steve McIntyre
On Wed, Jul 15, 2015 at 10:29:29PM +0200, neonknight wrote:
Package: debian-installer
Version: 20150422+deb8u1
Followup-For: Bug #767880

Same problem here, though it only seems to appear in the graphical installer 
but not in text installer. And cryptsetup is also missing in initramfs.

Steps to reproduce:

I just reinstalled a system using a currently downloaded version  
debian-live-8.1.0-amd64-xfce-desktop.iso from USB stick. 

I tried setting up the system using the graphical installer by
clicking the installer icon on the desktop of the live system. I
could create my encrypted disks (with LVM on top) using the partition
tool provided by the installer. After the installation finished
successfully I was unable to boot because initramfs was missing both
LVM and cryptsetup.

OK, that sounds like another bug in the live-installer package or
setup. Thanks for confirming.

I then tried the text installer provided on the same installation
media, erased all data on the disk. I again created an encrypted disk
with LVM on top. After installation Iwas able to boot the system
without any trouble.

OK, great.

-- 
Steve McIntyre, Cambridge, UK.st...@einval.com
  Getting a SCSI chain working is perfectly simple if you remember that there
  must be exactly three terminations: one on one end of the cable, one on the
  far end, and the goat, terminated over the SCSI chain with a silver-handled
  knife whilst burning *black* candles. --- Anthony DeBoer


-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150716142815.ga...@einval.com



Bug#791794: UUID not found for root

2015-07-16 Thread Martin Michlmayr
* Peter Nagel peter.na...@kit.edu [2015-07-08 15:12]:
 The problem seems to appear only when jessie is installed to RAID (e.g.
 RAID1)!
 Error message:
 flash-kernel-installer does not find UUID (see the two lines of syslog
 below):
   in-target: UUID eeb34bbe-375a-4dc1-939d-f56b801a4c75 doesn't exist in
 /dev/disk/by-uuid in-target:
   Warning: root device
 /dev/disk/by-uuid/eeb34bbe-375a-4dc1-939d-f56b801a4c75 does not exist

I received several reports about this recently.  I'm surprised because
this used to work just fine.

I didn't have time to investigate, but I noticed the following partman
errors in the syslog of those affected.  Colin, do you know what this
is about?

Jul  1 10:22:40 partman: mke2fs 1.42.12 (29-Aug-2014)
Jul  1 10:22:45 kernel: [ 8083.996693] EXT4-fs (md0): mounted filesystem with 
ordered data mode. Opts: errors=remount-ro
Jul  1 10:22:47 apt-install: Queueing package e2fsprogs for later installation
Jul  1 10:22:47 main-menu[1537]: (process:5300): 
/lib/partman/choose_partition/60partition_tree/do_option: 
Jul  1 10:22:47 main-menu[1537]: (process:5300): line 88: 
Jul  1 10:22:47 main-menu[1537]: (process:5300): 
/lib/partman/active_partition/copy/choices: not found
Jul  1 10:22:47 main-menu[1537]: (process:5300): 
Jul  1 10:22:47 main-menu[1537]: (process:5300): sh: 4194304: unknown operand
Jul  1 10:22:47 main-menu[1537]: (process:5300): 
/lib/partman/choose_partition/60partition_tree/do_option: 
Jul  1 10:22:47 main-menu[1537]: (process:5300): line 88: 
Jul  1 10:22:47 main-menu[1537]: (process:5300): 
/lib/partman/active_partition/copy/choices: not found
Jul  1 10:22:47 main-menu[1537]: (process:5300): 
Jul  1 10:22:47 main-menu[1537]: (process:5300): 
/lib/partman/choose_partition/60partition_tree/do_option: 
Jul  1 10:22:47 main-menu[1537]: (process:5300): line 88: 
Jul  1 10:22:47 main-menu[1537]: (process:5300): 
/lib/partman/active_partition/copy/choices: not found
Jul  1 10:22:47 main-menu[1537]: (process:5300): 
Jul  1 10:22:47 main-menu[1537]: (process:5300): 
/lib/partman/choose_partition/60partition_tree/do_option: 
Jul  1 10:22:47 main-menu[1537]: (process:5300): line 88: 
Jul  1 10:22:47 main-menu[1537]: (process:5300): 
/lib/partman/active_partition/copy/choices: not found
Jul  1 10:22:47 main-menu[1537]: (process:5300): 
Jul  1 10:22:47 main-menu[1537]: (process:5300): 
/lib/partman/choose_partition/60partition_tree/do_option: 
Jul  1 10:22:47 main-menu[1537]: (process:5300): line 88: 
Jul  1 10:22:47 main-menu[1537]: (process:5300): 
/lib/partman/active_partition/copy/choices: not found
Jul  1 10:22:47 main-menu[1537]: (process:5300): 
Jul  1 10:22:47 main-menu[1537]: (process:5300): 
/lib/partman/choose_partition/60partition_tree/do_option: 
Jul  1 10:22:47 main-menu[1537]: (process:5300): line 88: 
Jul  1 10:22:47 main-menu[1537]: (process:5300): 
/lib/partman/active_partition/copy/choices: not found
Jul  1 10:22:47 main-menu[1537]: (process:5300): 
Jul  1 10:25:35 main-menu[1537]: INFO: Menu item 'bootstrap-base' selected

On a related note, flash-kernel waits for user input when the UUID of
root is not found, which makes sense in an installed system, but not
in d-i -- for the user, d-i will just hang with no obvious error.  Is
there a good way to solve this?  In particular, is there a way for a
postinst in /target to detect that it's run from within d-i?  KiBi
doesn't know a way.  I guess a debconf prompt is the way to go?

 PROBLEM:
 When I shutdown the system and remove any (active) harddisk (from RAID1) the
 system has problems to boot again.
 Error message (from bootlog at serial console)

Just for the record, this was not d-i related and there's another bug
report about this.

-- 
Martin Michlmayr
http://www.cyrius.com/


-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150716140548.gb19...@jirafa.cyrius.com



Bug#791794: UUID not found for root

2015-07-16 Thread Colin Watson
On Thu, Jul 16, 2015 at 10:05:48AM -0400, Martin Michlmayr wrote:
 * Peter Nagel peter.na...@kit.edu [2015-07-08 15:12]:
  The problem seems to appear only when jessie is installed to RAID (e.g.
  RAID1)!
  Error message:
  flash-kernel-installer does not find UUID (see the two lines of syslog
  below):
in-target: UUID eeb34bbe-375a-4dc1-939d-f56b801a4c75 doesn't exist in
  /dev/disk/by-uuid in-target:
Warning: root device
  /dev/disk/by-uuid/eeb34bbe-375a-4dc1-939d-f56b801a4c75 does not exist
 
 I received several reports about this recently.  I'm surprised because
 this used to work just fine.
 
 I didn't have time to investigate, but I noticed the following partman
 errors in the syslog of those affected.  Colin, do you know what this
 is about?
 
 Jul  1 10:22:40 partman: mke2fs 1.42.12 (29-Aug-2014)
 Jul  1 10:22:45 kernel: [ 8083.996693] EXT4-fs (md0): mounted filesystem with 
 ordered data mode. Opts: errors=remount-ro
 Jul  1 10:22:47 apt-install: Queueing package e2fsprogs for later installation
 Jul  1 10:22:47 main-menu[1537]: (process:5300): 
 /lib/partman/choose_partition/60partition_tree/do_option: 
 Jul  1 10:22:47 main-menu[1537]: (process:5300): line 88: 
 Jul  1 10:22:47 main-menu[1537]: (process:5300): 
 /lib/partman/active_partition/copy/choices: not found

The copy operation was removed from partman because parted 3 no longer
supports filesystem operations.  However, I can't find any references to
it in partman code any more.  Is this perhaps coming from a preseeded
partman recipe or something?  Do you have a more complete syslog,
preferably with DEBCONF_DEBUG=developer?

 On a related note, flash-kernel waits for user input when the UUID of
 root is not found, which makes sense in an installed system, but not
 in d-i -- for the user, d-i will just hang with no obvious error.  Is
 there a good way to solve this?  In particular, is there a way for a
 postinst in /target to detect that it's run from within d-i?  KiBi
 doesn't know a way.  I guess a debconf prompt is the way to go?

I think trying to add debconf prompting to an initramfs hook would
probably be unwise.  flash-kernel already seems to check for
DEBIAN_FRONTEND=noninteractive, so you could just set that in
flash-kernel-installer.postinst when calling flash-kernel.

Cheers,

-- 
Colin Watson   [cjwat...@debian.org]


-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150716142722.gk23...@riva.ucam.org



Re: Fixing udev-udeb vs. net.ifnames for Stretch Alpha 1

2015-07-16 Thread Cyril Brulebois
Cyril Brulebois k...@debian.org (2015-07-16):
 Uploaded and accepted into tpu, thanks.

And binary builds are getting rejected due to the python3-systemd binary
which was split out of src:systemd, and has a higher version in testing
(230-1  221-1+deb9u1).

I've therefore cherry-picked:
| commit 3eabc6e72657015863d77039dcb64ae62c2ef0b2
| Author: Michael Biebl bi...@debian.org
| Date:   Wed Jul 8 01:07:53 2015 +0200
| 
| Stop building the Python 3 bindings
| 
| They were split into a separate source package upstream and are now
| built from src:python-systemd. See
| http://lists.freedesktop.org/archives/systemd-devel/2015-July/033443.html
| 
| We keep a Build-Depends on python3 which is required to build the
| documentation.

I'm attaching the matching git format-patch and seeking a go from
systemd maintainers and release team for a new attempt at t-p-u…

(FWIW, mipsel and ppc64el lacked proper buildd foo to build stretch
packages; Kurt fixed that part, and reported back the REJECTs to me.)

Mraw,
KiBi.
From 64b82708273a480eca7ac17ca14a358faaa122c1 Mon Sep 17 00:00:00 2001
From: Michael Biebl bi...@debian.org
Date: Wed, 8 Jul 2015 01:07:53 +0200
Subject: [PATCH] Stop building the Python 3 bindings

They were split into a separate source package upstream and are now
built from src:python-systemd. See
http://lists.freedesktop.org/archives/systemd-devel/2015-July/033443.html

We keep a Build-Depends on python3 which is required to build the
documentation.

(cherry picked from commit 3eabc6e72657015863d77039dcb64ae62c2ef0b2)

Signed-off-by: Cyril Brulebois k...@debian.org
---
 debian/changelog   | 13 +
 debian/control | 13 +
 debian/python3-systemd.install |  1 -
 debian/rules   |  3 ++-
 debian/tests/control   |  3 ---
 debian/tests/python3   |  9 -
 6 files changed, 16 insertions(+), 26 deletions(-)
 delete mode 100644 debian/python3-systemd.install
 delete mode 100755 debian/tests/python3

diff --git a/debian/changelog b/debian/changelog
index 1feb3e0..43ce986 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,16 @@
+systemd (221-1+deb9u2) stretch-proposed-updates; urgency=medium
+
+  [ Cyril Brulebois ]
+  * Additionally cherry-pick the following commit to avoid REJECTs since
+stretch already has python3-systemd version 230-1.
+
+  [ Michael Biebl ]
+  * Stop building the Python 3 bindings. They were split into a separate
+source package upstream and are now built from src:python-systemd. See
+http://lists.freedesktop.org/archives/systemd-devel/2015-July/033443.html
+
+ -- Cyril Brulebois k...@debian.org  Thu, 16 Jul 2015 20:56:18 +0200
+
 systemd (221-1+deb9u1) stretch-proposed-updates; urgency=medium
 
   [ Cyril Brulebois ]
diff --git a/debian/control b/debian/control
index 86a19f3..0bda9c9 100644
--- a/debian/control
+++ b/debian/control
@@ -10,7 +10,6 @@ Uploaders: Michael Biebl bi...@debian.org,
 Standards-Version: 3.9.6
 Vcs-Git: git://anonscm.debian.org/pkg-systemd/systemd.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-systemd/systemd.git
-X-Python3-Version: = 3.1
 Homepage: http://www.freedesktop.org/wiki/Software/systemd
 Build-Depends: debhelper (= 9),
pkg-config,
@@ -37,7 +36,7 @@ Build-Depends: debhelper (= 9),
libblkid-dev (= 2.24),
libmount-dev (= 2.20),
libseccomp-dev (= 1.0.0) [amd64 arm64 armel armhf i386 mips mipsel],
-   python3-all-dev,
+   python3,
python3-lxml
 
 Package: systemd
@@ -338,16 +337,6 @@ Description: libudev shared library
  .
  This is a minimal version, only for use in the installation system.
 
-Package: python3-systemd
-Section: python
-Priority: optional
-Architecture: linux-any
-Depends: ${shlibs:Depends},
- ${misc:Depends},
- ${python3:Depends}
-Description: Python 3 bindings for systemd
- This package contains Python 3 bindings for the systemd libraries.
-
 Package: systemd-dbg
 Architecture: linux-any
 Section: debug
diff --git a/debian/python3-systemd.install b/debian/python3-systemd.install
deleted file mode 100644
index ac58d1f..000
--- a/debian/python3-systemd.install
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/python*/*-packages/systemd
diff --git a/debian/rules b/debian/rules
index 63b7767..d727557 100755
--- a/debian/rules
+++ b/debian/rules
@@ -36,6 +36,7 @@ CONFFLAGS = \
 	--disable-importd \
 	--disable-libiptc \
 	--disable-silent-rules \
+	--disable-python-devel \
 	--with-ntp-servers=$(DEFAULT_NTP_SERVERS)  \
 	--with-system-uid-max=999 \
 	--with-system-gid-max=999
@@ -285,4 +286,4 @@ dh_options = -Nudev-udeb -Nlibudev1-udeb
 endif
 
 %:
-	dh $@ $(dh_options) --with autoreconf,python3 --parallel
+	dh $@ $(dh_options) --with autoreconf --parallel
diff --git a/debian/tests/control b/debian/tests/control
index 7ea349b..ccc1960 100644
--- a/debian/tests/control
+++ 

Bug#792540: Wifi netinstall fails with flashing screen on Lenovo X220

2015-07-16 Thread W. Martin Borgert
On 2015-07-16 05:48, Cyril Brulebois wrote:
 Are you using the text mode installer or the graphical installer?

Text mode.

 There's no X in the former,

You are right, it is not X. Something else that makes the screen
flash. Flashing frequency is about 2 Hz, way to fast for failing
X :~) I can see two ps entries with permanently changing pids:

{debian-installe} /bin/sh /sbin/debian-installer
/usr/share/debconf/frontend -- /bin/debconf-get debian-installer/theme


-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150716191932.GA29044@fama



Bug#792540: Wifi netinstall fails with flashing screen on Lenovo X220

2015-07-16 Thread W. Martin Borgert
On 2015-07-15 23:47, Steve McIntyre wrote:
 regularly on various X220 machines for *ages* and never seen this. Is
 there anything special at all about your SD card? Is the machine
 locked, or can you get to logs?

I'm so much used to a perfectly working d-i, that I didn't even
remember the 4th console :~)

It says more or less:

Jul 16 19:28:10 kernel: [  110.811848] main-menu[9666]: segfault at 1 ip 
7f16b6dccd8 sp 7f
fe7cd124e8 error 4 in libc-2.19.so[7f1202d825000+19f000]

The SD card had - according to GParted a small unallocated area
first, and then an almost 4 GB fat32 partition. I changed this
to one partition and the problem is gone!

Thanks for the hint with the SD card - it was the real culprit.


-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150716193903.GB29044@fama



Re: Fixing udev-udeb vs. net.ifnames for Stretch Alpha 1

2015-07-16 Thread Martin Pitt
Hey all,

Cyril Brulebois [2015-07-16 21:09 +0200]:
 And binary builds are getting rejected due to the python3-systemd binary
 which was split out of src:systemd, and has a higher version in testing
 (230-1  221-1+deb9u1).

Argh pain!

 I'm attaching the matching git format-patch and seeking a go from
 systemd maintainers and release team for a new attempt at t-p-u…

+1, thanks!

Martin
-- 
Martin Pitt| http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)


signature.asc
Description: Digital signature


Bug#792241: Installation on HP 450 G2 full UEFI - workaround

2015-07-16 Thread Andon Totev
Manged to install with CSM enabled. None of the before mentioned 
problems occur. After installation switched back to pure UEFI and was 
able to boot the new installation.



--
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/55a88328.3060...@gmail.com