/srv/irclogs.ubuntu.com/2014/02/01/#ubuntu-devel.txt

tkamppeterslangasek, where are you flying to? Are available on IRC next week?00:00
xnoxslangasek: cjwatson: jdstrand: mdeslaur: with updated ovmf, SecureBoot keys survive OVMF cold-boot. Also efi manager "ubuntu" entry is set/saved, but fails to boot -> investigating.00:51
xnoxslangasek: cjwatson: mdeslaur: we should be able to automate smoketesting in uefi / SecureBoot / modes, once boot entry is sorted.00:52
xnoxslangasek: cjwatson: filed bug #1275162 with boot entries that generated update-grub and don't work + working entries as added from efi shell using "fs1:\EFI\ubuntu\shimx64.efi" and the mapping that resulted from doing that.01:18
ubottubug 1275162 in grub2 (Ubuntu) "incorrect efibootmgr command is set by update-grub under OVMF" [Undecided,New] https://launchpad.net/bugs/127516201:18
xnoxstgraber: ^ might find interesting as well =)01:18
=== j_f-f_ is now known as j_f-f
=== schmidtm_ is now known as schmidtm
jhenkeHi!13:00
jhenkeis by chance anybody here feeling responsible for the boot process/uefi boot entries/grub?13:00
=== freeflying_away is now known as freeflying
=== JanC is now known as Guest88834
=== tkamppeter_ is now known as tkamppeter
=== timrc is now known as timrc-afk
=== timrc-afk is now known as timrc
=== freeflying is now known as freeflying_away
=== Guest23318 is now known as shadeslayer_
slangasektkamppeter: flying to> I'm flying home from a sprint; so yes, I'll be on IRC next week, in my usual timezone (US/Pacific)18:51
slangasekxnox: ovmf> huzzah! what options do we need to pass to give the qemu session somewhere to write the nvram to?18:51
slangasek(and can we make it COW so that we can distribute a pre-configured nvram blob?)18:52
xnoxslangasek: cp /usr/share/ovmf/OVMF.fd .; qemu -pflash OVMF.fd -cdrom ubuntu-desktop.iso18:52
slangasekso you have to copy the whole firmware image?  Not ideal18:53
xnoxslangasek: you can "boot" ovmf.fd and enroll keys the usual way.18:53
* slangasek nods18:53
xnoxslangasek: yeah, parts of the firmware image is reserved memory for nvram.18:53
xnoxslangasek: not sure if one can make it a qcow2 image with 3 snapshots (empry, microsoft keys, custom keys)18:54
xnoxbut due to efibootmgr / update-grub bug it doesn't generate the correct boot entry on install.18:54
xnoxmaybe we should ship keys in the installer and allow pre-seeding key enrollment at install time.18:55
TJ-xnox: So with some jigging about with loop and md linear we could create a writable firmware that puts the NVRAM in a separate file... cool!18:55
xnoxTJ-: interesting idea. let me talk to #edk2 people on OFTC about it.18:55
TJ-xnox: I use that approach for repairing broken block devices; create a 1MB file and chain the file-system onto it, to enable booting block devices that do not contain partition tables.18:57
slangasekxnox: was that bug reproducible when using a *not* nvme disk?19:02
xnoxslangasek: correct.19:02
slangasekok19:02
xnoxslangasek: ubuntu-custom -> is the working nvme disk; ubuntu-custom-normal -> is the working -hda qemu default disk; ubuntu is the entry that update-grub generated.19:03
slangasekok19:03
xnoxslangasek: since update-grub does work correctly on real uefi laptops, i wonder if OVMF is being funny here.19:03
xnoxi guess there a multiple ways of addressing UEFI hardware, cause my laptop is using Boot0000* ubuntuHD(1,800,8e800,ad01ebb3-3866-4648-b8a0-e126abbc6817)File(\EFI\ubuntu\shimx64.efi)19:05
xnoxwhich is partuuid addressed HD.19:05
slangasekmultiple ways> indeed19:08
xnoxslangasek: so for some reason update-grub is using "short fs-uuid" (mbr style), instead of "full gpt partition uuid" (gpt style)19:09
xnoxunder ovmf.19:09
* slangasek nods19:09
slangasekactually, that should be all efibootmgr, shouldn't it?  I didn't think update-grub did the calculation19:10
tkamppeterslangasek, I am flying to a sprint tomorrow. I have tested socket triggered CUPS start with Upstart, CUPS gets actually started, but is not able to overtake the socket FD.19:21
slangasektkamppeter: you know that the upstart and systemd socket activation protocols are different?19:22
slangasek(this is something we intend to fix on the upstart side, but not immediately)19:23
tkamppeterslangasek, did not know that and started systemd-like, now I have seen in the man page that one has to accept() the FD and so I have done an upstart_checkin function like this: http://paste.ubuntu.com/6856965/19:24
tkamppeterslangasek, but this still not works and I get "upstart_checkin: Unable to get local address - bad file descriptor", so the accept() failed.19:26
slangasektkamppeter: ok.  I don't know the answer offhand; I've never written code to use upstart's socket activation (and didn't write the upstart code either), I would have to dig into it19:28
tkamppeterslangasek, the original author is Scott James Remnant?19:29
slangasektkamppeter: yes, and he's no longer involved in upstart development.  I believe jodh did the landing of the code in upstart upstream, so he might be able to help19:30
xnoxtkamppeter: i did write code that successfully used upstart-socket activation.19:44
xnoxtkamppeter: it was a python daemon however, but semantics are the same across any language.19:44
tkamppeterxnox, can you send me the code or a link to it?19:45
tkamppeterslangasek, thank you very much, will talk with jodh (James Hunt?) and xnox. I will come back to you next week if needed.19:46
xnoxtkamppeter: http://cheesehead-techblog.blogspot.co.uk/2013/12/upstart-socket-bridge.html19:46
xnoxtkamppeter: article was updated with my patches, so all should be good.19:47
xnoxtkamppeter: i'll be in Bluefin on monday, if you are there as well.19:47
xnoxtkamppeter: yeah, jodh is James Hunt.19:47
xnoxhere is uwsgi support for using socket activation with upstart19:48
xnoxhttp://uwsgi-docs.readthedocs.org/en/latest/Upstart.html19:49
tkamppeterxnox, thank you very much!19:50
tkamppeterxnox, I will be in Bluefin next week, too. So we can meet and get it working.19:50
xnoxtkamppeter: i'm there on monday only, not all week.19:51
tkamppeterxnox, no problem, we can meet on Monday.20:13
tkamppeterxnox, I have looked in your C code and it seems to be the same as I did in CUPS (see http://paste.ubuntu.com/6856965/) but in CUPS it does not work.20:43
xnoxtkamppeter: i'm not in the mood to dive into it, can you push a branch with it and i will look into it on monday?20:44
xnoxtkamppeter: i'm deep in python3 porting at the moment.20:45
tkamppeterxnox, we should also talk about HPLIP then ...21:13
xnoxtkamppeter: ha, yeah =) doko was at bluefin last week.21:15
Noskcajxnox, on the topic of python3, the new pidgin is out. I've made a basic debdiff, but there's probably extra changes needed21:15
jhenkehi, is by chance somebody here who could take a look at a bug related to efibootmgr/grub? bug #127266421:19
ubottubug 1272664 in efibootmgr (Ubuntu) "Installing UEFI boot entry on Hyper-V gen 2 corrupts VM configuration, making the VM unuseable" [Undecided,Confirmed] https://launchpad.net/bugs/127266421:19
xnoxNoskcaj: well, have you fixed Bug #1272455 yet?21:19
ubottubug 1272455 in xchat-gnome (Ubuntu) "multiple issues with git20131003" [High,Confirmed] https://launchpad.net/bugs/127245521:19
xnoxjhenke: is the VM booted in UEFI?21:20
jhenkeaffirm21:20
jhenkethe problem is the creation of the uefi boot entry21:20
xnoxjhenke: it creates a wrong one or overrides existing ones?21:20
xnoxjhenke: i found with OVMF that wrong entries are generated.21:20
xnoxjhenke: so efibootmgr "manages" "ubuntu" boot entry, i've successfully created a different one, e.g. "ubuntu-custom" that works and those tend to persist.21:21
jhenkenot sure, as soon as an entry is generated the VM configuration becomes corrupted so you cannot access the VMs properties anymore nor does Hyper-V recognize it21:21
Noskcajxnox, no, sorry. I barely know C, let alone gtk21:21
NoskcajI'd not been able to reproduce the bug locally as i understood it, but i'm not sure there's anything i can do to that package21:22
jhenke*not does Hyper-V recognize the VM any longer, sorry21:23
xnoxjhenke: i see. I'll ask cjwatson about it.  it's best not to corrupt VMs just because a package gets installed (abeit called efibootmgr)21:23
jhenkeindeed it is21:23
jhenkebasically right now you cannot properly install ubuntu in a gen 2 VM, which I think is very bad21:24
jhenkethanks for pinging the right person :)21:25
xnoxcjwatson: assigned Bug #1272664 to you based on ^ maybe you can take a look at it.21:25
ubottubug 1272664 in efibootmgr (Ubuntu) "Installing UEFI boot entry on Hyper-V gen 2 corrupts VM configuration, making the VM unuseable" [High,Confirmed] https://launchpad.net/bugs/127266421:25
wgrantIt's a bit of a worry that a VM can affect the hypervisor like that.21:28
wgrantSounds like a Hyper-V bug...21:28
xnoxslangasek: edk upstream says that they are working with qemu to provide external variable storage, but it's not implemented in qemu yet. So current storage arrangement is the current state of the art.21:30
jhenkeI guess it is proably due to the facct that efibootmgr interacts slightly differently with the uefi than windows does21:35
jhenkesince installing windows 2012r2 works well and the uefi boot entry is created correctly21:36
jhenkeso efibootmgr must doing it a bit differently which causes this problem21:36
tkamppeterxnox, doko, reported HPLIP upstream bug https://bugs.launchpad.net/hplip/+bug/1275353.21:55
ubottuLaunchpad bug 1275353 in HPLIP "Make HPLIP working with Python 3" [Undecided,New]21:55
xnoxtkamppeter: that bug is not new.21:56
xnoxtkamppeter: some dependencies are ported but not all, and needs further investigation.21:56
tkamppeterxnox, but is it already reported to HPLIP upstream?21:56
xnoxtkamppeter: barry was involved it in.21:56
xnoxtkamppeter: i believe doko did talk with hplip upstream about it, yes.21:56
xnoxtkamppeter: you need hplip urgently on the phone?21:57
tkamppeterxnox, important is that we do not carry a huge Debian/Ubuntu patch but upstream switches over.21:57
tkamppeterxnox, HPLIP is not needed on the phone at all, I thought they talked to me because of getting rid of Python 2 in general, also on the normal desktop.21:58
tkamppeterxnox, on the phone printing will only be done to network printers with known standard languages, not with tons of printer-model-specific drivers.21:59
xnoxtkamppeter: cool. yeah getting off python2 is a general goal on touch/server/desktop.22:02
xnoxtkamppeter: so any help on that front is greatly appreciated.22:02
slangasekxnox: ack22:16

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!