/srv/irclogs.ubuntu.com/2012/03/22/#ubuntu-arm.txt

=== Ursinha is now known as Ursinha-away
=== bivab is now known as bivab_away
=== bivab_away is now known as bivab
highvoltageis it normal for Ubuntu ARM builds to depend on having busybox in the initramfs? I disabled it and then I got a kernel panic on "init: grep: not found"11:48
=== ericm_ is now known as ericm
=== Ursinha-away is now known as Ursinha
=== bivab is now known as bivab_away
=== bivab_away is now known as bivab
=== yofel_ is now known as yofel
GrueMasterhighvoltage: Yes, it is.  All of the premount init scripts need it to run.  If you don't want that, don't use initrd.13:58
ogra_erm, *all* ubuntu initrds depend on busybox13:59
ogra_its the default shell in the initrd13:59
ogra_nothing arch specific with that13:59
=== bivab is now known as bivab_away
=== bivab_away is now known as bivab
=== bivab is now known as bivab_away
highvoltageogra_: I usually disable busybox in my initrds on ubuntu machines and they work just fine14:16
highvoltage(at least they appear to)14:16
ogra_well, how exactly do you disable it ?14:22
ogra_  /init in the initrd is a shellscript14:23
ogra_and the only shell shipped in initrd is busybox14:23
ogra_(also all local-top/bottom/premount scripts are shell)14:24
ogra_you probably found an arm specific bug14:24
ogra_(i.e. that it is actually disableable while that option is ignored on other arches or some such)14:26
=== bivab_away is now known as bivab
=== bivab is now known as bivab_away
=== bivab_away is now known as bivab
=== bivab is now known as bivab_away
=== bivab_away is now known as bivab
janimo`highvoltage, have you switched to ARM lately :) ?15:16
janimo`are you on a quest for lowpower thin clients?15:17
highvoltagejanimo`: I don't really switch to anything. I just assimilate, like the borg :)15:17
janimo`borg needs arms too15:17
highvoltageindeed.15:18
=== bivab is now known as bivab_away
GrueMasterogra_: Can you review my change to lp:ubuntu/flash-kernel (lp:~gruemaster/flash-kernel/bug-961174)?  Thanks.16:36
=== zyga is now known as zyga-food
ogra_GrueMaster, hmm, that somewhat defeats the purpose of Env.txt etc, shouldnt they override boot.scr ?17:17
GrueMasterThat's the problem.  Apparently, Orchestra  (or some provisioning tool) uses those, but our images don't.17:18
GrueMasterSo if you use that tool to tell a system to do a netboot install, the boot partition never gets overwritten.17:19
GrueMasterMaybe it should go in f-k-i?17:19
ogra_well, its still wrong imho17:20
ogra_if some tool puts a broken file in the way it should also move it away17:20
ogra_if a user puts such a file there it should do what its supposed to do17:20
ogra_(override the system default)17:21
ogra_f-k-i would surely be a better place but my complaint still  stands even there17:21
GrueMasterThe other issue (as I understand it) is if it exists and bricks the system (i.e. won't boot), you can't recover via usb boot.  For remote deployments, this will be a problem.17:22
ogra_right, still, the questions are a) why does it exist at all (why isnt boot.scr used) and b) why is its content broken17:23
ogra_if we would rm the file or mv it like you do we prevent the user from using a documented override mechanism (and imho *introduce* a bug)17:24
ogra_GrueMaster, can you ask rbasak why that file exists at all, why its broken in the bug ?17:24
ogra_removing it isnt the proper solution17:25
rbasakogra_: because it's been created by a previous tenant17:25
ogra_since that would make the overriding impossible17:25
ogra_the purpose of this file is to give the user an easy way to modify boot settings ...17:26
ogra_if your tool uses that on a system level, fix the tool to use the system file please17:26
ogra_breaking behavior for the use cant be a solution to this bug17:26
rbasakogra_: When I install Ubuntu on an Intel machine, I expect the installer to override whatever the boot configuration was previously. If the MBR was set up to boot Windows, after running the installer and confirming that I want the boot configuration changed, I expect the system to boot Ubuntu.17:27
rbasakogra_: if you want to override this, you change the boot configuration _after_ running the installer but before booting into the new system17:27
ogra_if you install on an intel system you have various possibilities to override the bootloader settings17:27
rbasakogra_: I don't see why the behaviour on a Pandaboard should be any different17:28
mahmohso that's not entirely true, you can add info. to grub for boot specifics which I don't think you can with u-boot/boot.scr at the moment17:28
rbasakIf you want to override the boot, then tell the installer that you don't want to run flash-kernel-installer17:28
ogra_if you use u-boot the only way to i.e. ebnable a serial console in the kernel cmdline is to put an uEnv.txt in place17:28
ogra_or to fiddle with the provided boot.scr ...17:28
mahmohrighjt17:28
mahmohright17:28
ogra_the .txt files were enabled for easier overriding through user action17:29
ogra_if you have any tool using that machanism, make it better use boot.scr17:29
rbasakWhat you have in there at the moment is a hack which is preventing the installer from doing its job properly. What I want is for the installer to work in all cases. If you want to add a hack later, then please don't break my use case!17:29
ogra_i dont want to add any hacks at all17:29
rbasakIt is necessary for the installer to be able to erase any configuration left by a previous tenant17:30
ogra_if your use case usues a user definable file to set system settings your use case does it wrong17:30
ogra_thats like having a package put a used rule into /etc/udev/rules.d17:30
ogra_instead of using /lib/udev/rules.d17:30
rbasakMy use case requires a machine to be able to be reinstalled regardless of what was there before17:31
ogra_you wouldnt use /etc in that case either17:31
rbasakOrchestra needs this too.17:31
ogra_still you make use of a user override mechanism on a system level17:31
rbasakI'm not making use of anything17:31
ogra_use the system mechanism for this17:31
rbasakThe user leaving a uEnv.txt is a DoS17:31
rbasakI'm not using it17:32
ogra_well, who puts the .txt file in place ?17:32
ogra_the one that got in your way i mean17:32
rbasakSomebody who has root on the machine before I remotely decide to wipe and reinstall it to give it to someone else who has root on the machine.17:32
infinityDoSing yourself isn't a DoS.17:32
ogra_rbasak, if there is a way that we can know we are in such an environment, i'm happy to add a hack for that specific env17:34
infinityMaybe it would be nice if d-i detected this odd situation and asked about it, but this isn't "just like ovewriting a windows MBR", and it would be best to not pretend it was.17:34
GrueMasterI think the root of the problem is that partman currently doesn't reformat the boot partition during netinstall.17:34
ogra_breaking documented override behavior for everyone cant be the solution for a corner usecase17:34
rbasakogra_: how about a preseed option to say "override any user overrides"?17:34
GrueMasterKnown bug.17:34
ogra_rbasak, that sounds saner at least17:34
rbasakogra_: if it sees that then it will either delete uEnv.txt or *.17:34
rbasakinfinity: it's not "yourself", it's a previous tenant DoSing a future tenant. Imagine if your EC2 instance didn't come up because a previous user left a file somewhere.17:35
ogra_i'm not opposed to hacks (if you ask others they might call me the master of bad hacks even) ... but i'm opposed to break user abilities for providing their own defined overrides at install time17:36
rbasakogra_: I think you've got the sense inverted. If the user wants to define an override at install time, he should say so using debconf!17:36
ogra_thats not possible on a u-boot level17:36
infinityrbasak: Root is you.  Calling yourself a "tenant" doesn't change things.  There are a number of ways I can mess up an Intel system for the next person I sell it to as well.17:37
infinityrbasak: And the "boot partition" on firmwareless SD system (ie: a Panda) is more akin to the BIOS than to a disk MBR.17:37
=== zyga-food is now known as zyga
=== steev_ is now known as steev
infinitydannf: f-k highbank changes sponsored.19:23
infinitydannf: Do you have a sane way to test this once it's in the archive?19:24
ogra_GrueMaster, bug 848782 looks suspiciously like a duplicate of bug 92113719:25
ubot2`Launchpad bug 848782 in flash-kernel "Serial console not enabled for passphrase prompt when using LUKS" [Medium,In progress] https://launchpad.net/bugs/84878219:25
ubot2`Launchpad bug 921137 in flash-kernel "Flash-kernel-installer doesn't support d-i debian-installer/add-kernel-opts in preseed " [Undecided,Confirmed] https://launchpad.net/bugs/92113719:25
GrueMasterSimilar, but slightly different.19:25
infinityThey can both be fixed in the same way, I think.  I had a local branch for that and got sidetracked...19:25
ogra_well, i dont see any solution for 848782 apart from using add-kernel-opt19:26
ogra_s19:26
* infinity wonders where that went.19:26
ogra_that you use LUKS doesnt reallys imply that you use a serial console, that needs to be specified anyway19:26
ogra_(luks could indeed preseed that value if it knows there is only serial)19:27
infinityNah, it should just do the same thing grub-installer does here.19:27
infinityAnd, like I said, I was working on that.  Tobin and I discussed it a while ago.  I just got sidetracked with other stuff and let it slip. :/19:28
ogra_ah, k19:28
ogra_the discussion above made me look at the f-k buglist :)19:28
infinityogra_: So, I fixed all the *sums generation for all the images... Except for ac100.bootimg.  Were you doing something abnormally hackish in how you deal with that?19:29
ogra_not that i can think of19:30
infinityHrm.19:30
infinityI'll have to investigate that further.19:30
infinityBut at least the big images are all right now, which was the major concern.19:30
ogra_look at the debian-cd code, i just added the .bootimg type to the file types19:30
ogra_it isnt generated as .raw like the others though, since it comes directly out of live-build iirc19:31
ogra_probably that gets in our way19:31
ogra_feel free to leave that issue to me though19:31
ogra_(not today anymore, but I can look at it before B2)19:31
infinityYeah, it comes from live-build, same as manifest and other files.19:32
infinityIt could just be exposing some weird assumption in cdimage, given than this is the only image that produces two files that need summing.19:32
ogra_yeah19:33
infinityI could probably paper over it by making debian-cd sum the bootimg files, but I'd like to figure out why cdimage is doing it wrong.19:33
ogra_iirc cdimage does it while renaming them from .raw to their actual filetype19:35
ogra_or do i remember wrong ?19:35
infinityNo, cdimage does it after the rename.19:35
ogra_ah19:35
infinityBut then maps certain extensions back to .raw, so it can match against the *SUMS in scratch.19:36
* ogra_ through its the same function in the makefile19:36
infinitybootimg doesn't get mapped though (which is correct), so...19:36
infinityI wonder how much of this mess I need to replicate to iterate through some local testing.19:37
ogra_pfft, just do it on nusakan and revert it if it breaks19:37
ogra_thats why we have it all in bzr :)19:38
dannfinfinity: cool - yeah, just qemu though19:38
infinityogra_: :P19:39
infinityogra_: Not doing it in production for the obvious "don't work in production" reasons, but mostly, I want to reduce this to a small enough test that I can do it in seconds, not hours. :P19:40
ogra_ah, yeah19:40
ogra_still, relpicating cdimage loacally cries for pain19:41
infinityOh, I've done that before.19:41
infinityBut in this case, it's reducing, not replicating.19:41
* ogra_ too, thats why i said that19:41

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