/srv/irclogs.ubuntu.com/2005/12/04/#ubuntu-boot.txt

fabbioneshould work fine for me12:05
fabbioneit's nothing extremely urgent.. so if we can't make it, tough, we can always reschedule it12:05
fabbionegood night Kamion :)12:06
Kamionsure, night :)12:06
fabbionebah08:02
fabbioneit looks like that libselinux in lvm2-udeb is not lvm2 fault08:03
fabbionethere is something wrong with the build environment08:03
=== pitti [n=pitti@ubuntu/member/pitti] has joined #ubuntu-boot
=== sivang wonders if this channel shares any of the properties of #debian-boot :)
infinityWell, it has -boot in the name.08:32
fabbioneyeah but here there are only a bunch of bastards08:32
fabbione:)08:32
sivanghehe08:33
sivangwell, it's probably specially created for speeding up the boot process?08:33
sivangerr,08:33
sivangthqat is for discussing that stuff08:33
fabbioneKamion: ok the problem is way more complicated than it did look in the beginning08:46
fabbionelvm2-udeb manages to link to libselinux via libdevmapper08:46
fabbioneeven if --disable-selinux is forced08:46
fabbioneso libselinux is pulled in indirectly08:46
fabbionehttp://bugs.debian.org/cgi-bin/bugreport.cgi?bug=315505 <-08:47
fabbionebut they didn't realize that device mapper will still break the world08:47
fabbioneKamion: ok.. i got lvm2 back to normal.. just waiting for the packages/dep-wait & co to propagate09:57
Kamionsivang: #debian-boot's name is historical, from boot-floppies; it should really be #debian-installer now, but we can't be bothered to move10:06
sivangKamion: ofcourse :)10:07
Kamionwe created this channel primarily to coordinate the move to 2.6.15 and the new udev and co. for dapper; no doubt it will be used for other related things10:07
infinity(on unrelated ones)10:11
infinitySide note: The only thing worse than not being able to make something work for hours on end is MAKING IT WORK, BUT NOT BEING SURE HOW.10:13
infinityI think  Ineed a brain-break.10:13
=== Mithrandir break infty's brane
Mithrandirs/break/&s/10:17
sivanginfinity: indeed.10:37
fabbioneyeah11:10
fabbionegood new steps forward11:10
fabbioneKamion: pal is still broken on ppc :).. but at least it seems that manual LVM works.. so that makes my life still very simple. I think i am hitting a very stupid problem but i will work on it after the dentist11:11
Mithrandirso, I suck.  This won't work, since cdrom-checker complains about not finding the cdrom device.11:49
Kamionoh yeah, you'll need to make cdrom-detect run first11:51
Kamion   * Make ext2=m on all arch's.11:53
Kamionoh great, more d-i changes ...11:53
Mithrandirhmm, should I add a hack to cdrom-chooser for that, or should I wrap it in a small shell script which just does udpkg --configure cdrom-detect ; udpkg --configure cdrom-checker?11:54
Kamioncdrom-chooser depends on cdrom-detect ...11:56
Kamionso perhaps if your menu hook is udpkg --configure cdrom-checker rather than running /var/lib/dpkg/info/cdrom-checker.postinst directly, it'll work?11:56
Kamions/chooser/checker/ above11:56
MithrandirI'll try.11:57
Kamion(can't remember if udpkg --configure follows dependencies)11:58
Mithrandirit does, iirc11:58
Kamionhm, doesn't seem to11:59
Kamionmaybe udpkg --configure cdrom-checker cdrom-detect12:00
Kamioner, other way round12:00
Mithrandirif DODEPENDS is #defined, it should12:01
Mithrandirwhich is not default12:04
Mithrandir        ./configure --without-depends --without-debug \12:04
Mithrandir                --without-remove --with-admindir=/var/lib/dpkg12:04
Kamiononly for --install12:04
Kamionnot --configure12:04
Kamion(in the current code)12:04
Mithrandiryeah, and it's compiled out anyway, so..12:05
Mithrandir"export: 5: --configre: bad variable name"12:07
Mithrandirconfigure, even12:07
Kamionquoting?12:08
Mithrandiryeah, in rootskel12:08
MithrandirI'm sure joeyh is going to love me for first breaking rootskel, then uploading it twice in a day.12:08
Mithrandiroh, boot faster, xoog12:09
Mithrandirheh, debconf complains about --configure.  I think I'll just write a tiny wrapper in cdrom-checker instead.12:20
Kamionok12:36
Mithrandirgnnr, I just get a black screen with a single grey line on it.01:17
Mithrandirhw-detect seems to be hanging.01:18
MithrandirKamion: any great ideas?  Running it by hand works, but well, is kinda wrong.01:23
KamionI'd boot with BOOT_DEBUG=3, use the "before init" debugshell to replace /sbin/debian-installer in /etc/inittab with /bin/sh, and then run through it step by step01:42
Kamionmaybe debconf isn't connected up right01:43
Mithrandirit blows up when I run debconf -o d-i /bin/cdrom-detect-menu (which just runs udpkg --configure cdrom-checker cdrom-detect)01:44
Mithrandireven from tty201:44
=== jbailey [n=jbailey@modemcable139.249-203-24.mc.videotron.ca] has joined #ubuntu-boot
Kamionyou'd want UDPKG_QUIET=y in cdrom-detect-menu at least01:47
Kamion(perhaps the witter is confusing debconf)01:47
Mithrandiryeah, I'll try that01:48
KamionI dunno, in general I'd be trying to imitate what main-menu does01:49
Kamionhmm, you might also like to look at the setup/* scripts in kickseed; they're run using MENU01:50
Kamionexport UDPKG_QUIET=y01:50
Kamionudpkg --force-configure --configure "$1" 2>&1 | logger -t kickseed01:50
Kamionthat could become log-output these days, but otherwise that works in a MENU in kickseed01:50
Kamion# without this, debconf clients will talk debconf protocol to syslog01:50
Kamion. /usr/share/debconf/confmodule01:50
Kamionhah, right01:51
KamionMithrandir: source the confmodule at the top of cdrom-detect-menu; that's probably your problem01:51
Mithrandirdoh.01:51
KamionI knew I'd solved this problem before ;-)01:51
MithrandirKamion: I'll buy you a beer on Sunday.02:04
=== pitti [n=pitti@195.227.105.180] has joined #ubuntu-boot
KamionSunday?02:05
Mithrandiryou're around Cambridge, aren't you?02:12
MithrandirKarianne and I are in London from Saturday until Wednesday, with a small detour to Cambridge on Sunday.02:12
=== pitti_ [n=pitti@195.227.105.180] has joined #ubuntu-boot
Kamionoh, right, cool02:14
KamionI'll check with Kirsten what we're doing on Sunday; I'd forgotten about your visit :)02:14
MithrandirI mailed debian-uk about it last afternoon02:14
Mithrandiriirc02:14
Mithrandirno idea if it managed to traverse sauce, though02:15
Kamion6 Tollef Fog Heen                            1  [Debian-uk]  Beer in Cambridge Sunday 2005-11-0402:16
Kamion^-- trn on chiark02:16
Mithrandirgoodie02:16
MithrandirKamion: hmm, main in cdrom-checker seems to include crack such as system("touch /tmp/test") system("logger init"), etc.  I'll just get rid of those if you don't mind.02:36
Kamionsure :)02:38
jbaileyAnyone here bored and willing to take the grub merge from me?02:38
KamionI suspect it was a very early udeb02:38
Kamionjbailey: I'll grab it02:38
Mithrandir -- Martin Sjogren <sjogren@debian.org>  Sat, 22 Feb 2003 00:40:06 +010002:38
Kamionnot bored as *such*, but I've merged grub before02:38
jbaileyKamion: Thanks.  My bit of distro time left is best spent finishing the glibc bits.02:39
Mithrandirso, it works, except reboots don't.02:58
infinityjbailey : Will that include the creation of libc6-dev-i386, or -ENOTIME for that?03:09
jbaileyinfinity: I started looking at that last night.  The next upload won't have it.  I want that to be primarily things that are really needed for the locales-in-langpacks stuff.03:11
jbaileyinfinity: We're aiming to have that all in for flight-2.03:11
jbaileyinfinity: Do you have a more urgent need for tha libc6-dev-i386 stuff?03:12
infinityNope. I couldn't care less if it happens soon, or even by release, it's just a wart I'd like to see go away "sometime"03:29
fabbioneyo04:11
fabbioneok04:11
Kamionright04:12
fabbionei am having a bunch of problems with p-a-l and i need some help/advices on how to fix them04:12
fabbioneif you can get the code handy, it might help04:12
Kamionok; note I merged partman-auto last night04:12
fabbioneyes i saw that04:12
Kamionbut there shouldn't have been much relevant in there04:12
fabbionei need to retest on i386 because ppc is farting on me04:13
fabbioneand i can't see why04:13
fabbionebut that's not the main issue for now04:13
fabbionei will figure it later on04:13
fabbionethe first problem i wanted to talk with you was the way to restart parted04:13
Kamionyeah, I noticed you disabled my change there04:14
fabbioneyou did change the hugly code i did copy from somewhere04:14
fabbioneto something like:04:14
fabbionestop_parted04:14
fabbionestart_partsomething04:14
fabbionebut i have issues with that04:14
fabbionebut i can't understand why04:14
fabbioneperhaps you can help me to shed some light on it04:14
KamionI'm just hunting down the svn changeset04:15
fabbioneif you have a test machine that you can trash04:15
fabbionesure04:15
MithrandirKamion: how can I get a status message from cdrom-checker through udpkg to cdrom-checker-menu?  Any ideas?04:15
Kamionno test machine handy unfortunately04:15
fabbioneyou can see it almost immediatly becuase you run pal04:15
fabbioneand the visuals are all wrong04:15
KamionMithrandir: exit status, ideally ...04:15
Kamionall wrong?04:15
fabbionewhile using my restart code looks ok04:15
fabbioneif you are familiar with LVM a bit04:16
fabbioneand you have seen how partitions show up at partman? main menu04:16
fabbioneyou will see that with your code the partitions do not show up the same way as when you do manual LVM04:16
fabbionethat's first "optical" symptom04:16
fabbioneand if you ask to commit the changes, it will fail04:17
fabbionereturning back to the main menu, everything looks ok again (like if parted is restarted the same way i do)04:17
fabbioneand a second commit will work04:17
Kamionwell, that's bizarre, because the function calls I replaced that code with contain identical code04:17
fabbioneah04:18
Kamionit's restarting in precisely the same way - the code's just in a common place now04:18
fabbionehmmmm04:18
Kamionif you can see a difference there, I'm all ears - I've got the diff in front of me and can't find anything04:18
fabbionedo you remember from what pkg is coming?04:18
Kamionpartman-base/definitions.sh04:18
fabbionethe common code i mean04:18
Kamionhmm, unless 'exit 255' behaves differently in a function04:19
fabbioneeh04:19
fabbionethat could be04:19
fabbionein a function you should return04:19
Kamionseems unlikely; I'll test04:19
fabbionei can test it04:19
Kamionyou can exit from a function04:19
fabbionedon04:19
fabbionedon't worry04:19
fabbionei am only seeking ideas04:19
=== jbailey [n=jbailey@modemcable139.249-203-24.mc.videotron.ca] has joined #ubuntu-boot
Kamion~ $ foo () { echo; exit 255; echo; }04:20
Kamion~ $ foo04:20
Kamion<cjwatson@cairhien ~>$ echo $?04:20
Kamion25504:20
Kamionseems to work as desired04:20
fabbionealso in dash or the busybox built-in?04:20
Kamionfabbione: to be honest my first resort would be to stick 'set -x' at the top of perform_recipe_by_lvm and see what it's doing ...04:20
Kamionfabbione: that's in busybox sh04:20
fabbioneyes i can stick set -x but where the hell does the output go?04:20
Kamion/var/log/syslog04:20
fabbioneok04:21
fabbioneperfect04:21
Kamionit's not amazingly conveniently formatted but it should work04:21
fabbionei am ok with that04:21
fabbionegiven that it works :)04:21
Kamionyou can probably 'exec 2>/tmp/randomfile' if you like04:21
fabbionei am happy if the out goes somewhere04:21
fabbionei can figure the formatting04:21
fabbioneok04:22
fabbionethe next problem is:04:22
fabbione# check if the recipe contains lvmok tags otherwise fail04:22
fabbioneif [ -z "$(echo "$scheme" | grep "lvmok")" ] ; then04:22
fabbione  XXXX: how do we bailout properly?04:22
fabbione  exit 004:22
fabbionefi04:22
fabbionelet say that we are asked to perform a recipe on arch foo04:22
fabbionewhere arch foo has recipes that contains no lvmok tags04:22
fabbionei need to bailout04:22
fabbionewhat's the proper way to do it?04:23
fabbioneat that point in time i didn't write anything to the disk04:23
fabbioneso it's easy04:23
fabbioneno actually04:23
fabbionei already trashed the disk04:23
fabbionebut i need to bailout04:23
Kamionyou're supposed to do that check before trashing the disk!04:24
fabbioneok i can do that04:24
fabbionethat's not an issue04:24
fabbionebut i need to know how to bailout properly04:24
fabbionei don't think exit 0 is the way it's meant to be04:24
Kamionmake automatically_partition/some_device_lvm/choices only print the LVM choice if it can actually do it04:25
Kamionsee resize_use_free, which does that sort of thing04:25
fabbionethe problem is that we don't know the recipe yet at that time04:26
fabbionedo we?04:26
Kamionchoices is right before do_option ...04:26
fabbioneso we already have the recipe..04:26
=== jbailey [n=jbailey@modemcable139.249-203-24.mc.videotron.ca] has joined #ubuntu-boot
fabbioneif so ok...04:26
Kamionthey're both run from ask_user, and there's no recipe selection in between04:26
Kamionno, you probably don't04:26
Kamionhmm, maybe04:26
Kamionlet me hunt around04:27
fabbioneok04:27
Kamionyour script chooses the recipe itself04:27
Kamionso there's no issue04:27
Kamionchoose_recipe "$free_size" || exit $?04:27
fabbionethat's from do_option04:28
fabbioneto hide the selecion, it needs to be done from choices04:29
Kamionah, I see what you mean, you don't want to ask questions from choices04:29
Kamionwell in that case just do the lvmok check before trashing the disk04:29
fabbioneyes and i am ok with doing that check...04:30
Kamionall that logic is in your do_option so you can easily move it up04:30
Kamionexit 1 should be fine to bail out04:30
fabbioneok04:30
fabbioneperfect :)04:30
fabbioneexit 1 is all i was searching for ;)04:30
Kamionyou should probably db_input/db_go an error template of some kind first04:30
fabbionethat would make sense04:30
Kamionlook at perform_recipe, which does that04:31
fabbionei guess we have some kind of standard error template04:31
fabbioneok04:31
fabbionei will04:31
Kamionor in the choose_recipe function for that matter04:31
fabbioneok04:31
fabbionei can still move code up04:31
Kamionhm, no, you'll probably need a new one since the text will need translated04:31
fabbionei have no issues for that04:31
fabbionethe last problem i would like to address are unclean disks04:32
Kamionmy advice from bitter experience is to get new template text upstream as soon as possible, otherwise merging is HELL04:32
fabbioneok. i want to finish pal no later than this week04:32
fabbionemodulo bugs04:32
fabbionebecause i have other tons of stuff to do as well04:32
Kamionsure04:33
fabbioneso let say you install breezy/dapper or whatever on lvm04:33
fabbioneyou decide to reinstall dapper on it using pal04:33
fabbionethere is a big problem with LVM that finds the old install04:33
fabbionepal in that case is dumb04:33
fabbioneit doesn't fail04:33
fabbioneit doesn't clean04:33
fabbionethe result can be a mess04:34
fabbioneso i was wondering what kind of approach i should use to that04:34
fabbionelike:04:34
fabbione- send big fat warning to dd the disk before attempting04:34
fabbione- try to cleanup automatically04:34
fabbione- do it and hpe evertyhing will work right afterwards04:34
Kamionmy advice would be to just not offer it04:34
fabbioneok04:35
Kamionwell, I guess you do want to be able to wipe the disk04:35
=== fabbione didn't think about it
fabbionewell the point is exactly that one04:35
fabbionethere is no clean way to wipe a disk that had LVM other dd or a bunch of lvm commands that might fail04:35
Kamionreally? what goes wrong?04:36
Kamionyou do a NEW_LABEL ...04:36
fabbionethe LVM metadata are all around the disk04:36
fabbionelvm doesn't care about the LABEL data04:36
fabbionei did try that.. trust me04:36
fabbionehitted my head on it for 4 hours04:36
Kamionis there a command to wipe that? I thought there was04:36
KamionI remember we discussed this before and found one04:36
fabbioneyou need to do a set of commands04:37
fabbionelvremove -> vgremove -> pvremove04:37
fabbionethen you can add the new LABEL04:37
fabbionethat was for the RAID04:37
Kamionah04:37
fabbionenot for lvm04:37
fabbioneRAID has metadata in one place only for each disk04:37
fabbionelvm is all around the disk04:37
fabbionesort of inodes04:37
Kamionsurely it won't look through the whole disk if it doesn't find its superblock-equivalent though04:38
fabbioneof course not04:38
Kamionso dd over that :)04:38
fabbionedd means dd the entire disk04:38
fabbioneyou don't know where the inodes are04:38
fabbionenot all of them at least04:38
fabbionebut yeah.... dd would be the best :)04:38
Kamioncan we use pvremove --force?04:39
Kamionsorry, -ff04:39
Kamion        /* we must have -ff to overwrite a non orphan */04:39
fabbionethat will kill the metadata for the partition04:39
Kamionor indeed -ffy - should be a big enough hammer04:40
fabbionei can try that.. yes04:40
fabbionei mean i can test it easily04:40
Kamionright, so if we do that for each partition, then NEW_LABEL, then autopartition, that should probably work04:40
fabbionegiven i need to cleanup my disk each time i try pal04:40
fabbionethat should be sufficient i assume04:40
Kamionyeah, I think s04:40
Kamionso04:40
fabbioneok04:41
fabbionei guess i will start with these stuff04:41
Kamiondo we already have a big "you are about to WIPE your DISK!" warning?04:41
fabbionehmmmmm04:41
fabbionei don't think so04:41
fabbioneprobably partman-auto does04:41
fabbionei don't04:41
Kamionah, you do, but only on sun disklabels because they need to be committed04:42
fabbione"it sucks to be you if you choose LVM and it didn't work"04:42
KamionI think you should probably just remove the two label_type = sun conditionals04:42
fabbionethat's code i did copy from autopartitioning i think04:42
fabbioneor from somewhere inside partman-auto04:42
fabbionewhy should i?04:42
Kamionright, but you're now becoming a different case because you're doing non-undoable stuff to the disk04:42
Kamionautopartition is only doing stuff that partman can unwind04:42
fabbioneright04:43
Kamionup until you actually accept the changes04:43
fabbionetrue04:43
Kamionideally p-a-l would be the same, but that sounds non-trivial04:43
fabbioneyou can't really...04:43
Kamionwell, actually, where does stuff go wrong? at the autopartition stage, or later?04:43
fabbioneit depends...04:43
fabbioneas it is now it works04:43
Kamionif it only goes wrong later, then you could do the pvremove -ffy in a commit.d script04:43
Kamionand then you can preserve the ability to undo changes, which is really nice to have04:44
fabbioneyeah but you won't be able to unwind the main partitions04:44
Kamionwhy not?04:44
Kamiondo you actually write them to disk in autopartition?04:44
fabbionebecause you need to COMMIT to access the partition that will be lvm04:44
Kamionoh, ok04:44
fabbioneif you see also manual LVM, it does exactly the same04:44
fabbioneit asks you to commit before accessing the LVM menu04:44
fabbioneand it makes sense04:44
Kamionright, just pvremove -ffy up front then, and display the warnings unconditionally04:44
fabbioneyeps04:45
fabbioneif it fails.. well sucks to be you04:45
fabbionebuty04:45
Kamionbetter partman/LVM integration would involve having a representation of LVM partitions in /var/lib/partman/devices/, so that you wouldn't need to commit beforehand04:45
fabbioneyeah that's true04:45
fabbionebut there are also other problems04:45
fabbionelike roundings04:45
fabbioneall sizes will be highly incorrect04:46
fabbionebut well.. minor details04:46
Kamionmm04:46
fabbione(sorry i need to wake up my wife)04:46
fabbionere04:47
fabbioneok i think for now i am all set04:48
fabbioneat least...04:48
fabbionei think i am :)04:48
fabbionethanks a lot Kamion04:48
fabbioneit's really nice to work with you04:48
Kamionhope it all works :)04:50
fabbioneoh don't worry04:50
fabbionei will come back if it doesnt :P04:50
Kamionheh04:50
fabbioneright now i want to get the code to be in a decent state and work04:50
fabbionethe next cleanup step will be merging and removing all the duplicate with partman-auto04:51
fabbionebecause there is really a tons04:51
fabbionethat doesn't need to be there04:51
fabbionebut for now it's easier for me so that i can fork and merge as i need without disrupting all of partman-auto04:51
Kamionhave you got upstream commit access yet? you probably should04:53
Kamionask joeyh04:53
infinityKamion : Will d-i be using the same udev firmware-loading mechanism as the base system?  (ie: should I be installing udeb firmware to the same filesystem location?)04:56
Kamioninfinity: yeah, more or less the same mechanism anyway05:00
fabbioneKamion: no i don't and i would like not to. I will push the patches as they come05:00
fabbionei am keeping the interdiffs05:00
fabbionepvremove -ffy seems to do the trick :)05:07
Kamioncool!05:28
=== sivang [i=sivan@ubuntu/member/sivang] has left #ubuntu-boot []
=== zyga [n=zyga@2-mi2-1.acn.waw.pl] has joined #ubuntu-boot
=== sivang [i=sivan@ubuntu/member/sivang] has joined #ubuntu-boot
=== Mithrandir scratches his head and wonder if he should just use a flag file instead of the return value. Not so pretty, but certainly less work, since something keeps eating the exit status.
=== seb128 [n=seb128@ubuntu/member/seb128] has joined #ubuntu-boot
Mithrandirit's so weird coming back into #debian-boot.  Nothing has changed, kinda, except I'm not part of the crowd yet/any more.. I guess it'll work itself out over a few days or weeks.11:26
KamionMithrandir: mostly the effect of trying to get used to the now-rather-enormous codebase again?11:56
KamionI do love design discussions like that one just now with joeyh though ... makes me feel like d-i is a real project ;-)11:57
Kamion(real as in big commercial blah)11:57
MithrandirKamion: nah, more the "I'm not sure whose feet I tread on when doing random crap"11:57
KamionMithrandir: http://people.debian.org/~fjp/d-i/authors.html might help11:58
Mithrandirhas tausq or tbm done anything to d-i lately?11:59
Mithrandiror Marvin?11:59
Mithrandir(not accusing, more "are they still around?"12:00
Mithrandir)12:00
Kamiontausq hasn't, tbm has done various bits and pieces12:00
Kamiondon't think sjogren has been around much at all12:00
Mithrandirhe was around _a lot_ in the early phases12:01
Kamionyeah12:01
Kamiontsauter's mostly vanished too12:01
Mithrandirshame that. :-/12:02

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