/srv/irclogs.ubuntu.com/2007/03/15/#ubuntu-installer.txt

cjwatsonanyway, one approach to doing that with d-i would be to preseed the first few steps of the installer (locale/keyboard/network) and put the stuff you actually want to do in preseed/early_command12:05
cjwatsonmaybe terminate it with reboot12:05
cr3cjwatson: and that can be performed over the net somehow. the purpose for this is to be able to boot the desktop install without having to burn a cd12:05
cr3cjwatson: if I add a custom d-i, somewhere after network has been detected and drives detected, could I somehow overwrite the installation process altogether, perform those actions I need and then reboot?12:08
cjwatsonthat would be the procedure I described above12:08
cjwatsonwell, you might have to force a hardware detection run but in practice disks should have been detected by that pointt12:09
cjwatsonpoint12:09
cjwatsonultimately I'd like to be able to do boot-iso-from-hard-disk using grub2, but note that partitioning gets very difficult when you're relying on an image on the hard disk12:11
cr3cjwatson: very cool! I can most certainly run all the shell commands I need in that early_command section, thanks!12:11
cjwatsonjust a warning, I am unlikely to be able to support partitioning problems you run into by this method12:11
cr3cjwatson: how so? for now, since grub doesn't seem to support iso9660, I'm simply using cp -a into a 800Mb partition at the beginning of the drive12:12
cjwatsonthe disk is busy and therefore it is not possible to get Linux to re-read the partition table, so new partitions you create won't be usable12:12
cjwatson(until a reboot)12:12
cjwatsonthis is why both d-i and ubiquity try to avoid having anything mounted on the hard disk12:13
cr3cjwatson: the new partitions will not be usable to the currently running install, but the d-i script should be able to cp -a onto a partition and then reboot from that partition, right?12:14
cjwatsonthe device node won't appear until Linux has re-read the partition table12:16
cjwatsonso no, not unless the partition existed before you booted12:16
cjwatsonor unless you're using a separate hard disk to store the CD image from the one which you're partitioning12:17
cr3I wonder what tools I could use from the installer to grab the files from an internal server without having to grab the iso locally12:19
cr3wget -r might work, but I'm not sure if there are symlinks on the installation media and if that would work with wget12:19
cr3I guess iso9660 is rather limited in feature set so wget -r could potentially work just fine12:19
cr3I'm not sure if the -r option is supported by the version of wget on busybox12:20
cjwatsonit's not12:21
cjwatsonhonestly, this isn't sounding like a test which will very accurately reproduce a normal installation12:22
cjwatsonlifeless did figure out how to NFS-boot the desktop CD; talk to him if you like12:23
cr3ultimately, the original CD will be extracted integrally onto a partition from which the system will be installed. how is that different from a normal installation?12:23
cjwatsonBecause the partition table on that disk will be *immutable* while a filesystem is mounted from it.12:24
cjwatsonTotally different. The installation really doesn't like unrereadable partition tables.12:24
cjwatsonWell, not immutable, but changes won't be reflected until you reboot.12:24
cjwatsonthis is why e.g. the partitioner has to disable swap before committing partitioning changes12:25
cjwatsonbut if the partitioner is running off a partition on the hard disk, it won't be able to do that12:25
cr3doesn't the partitionner run from memory during the installation process?12:26
cjwatsonno12:27
cjwatsonit's read into memory in order to execute it obviously, but you can't just go unmounting its root filesystem under it!12:27
cr3there's something I don't understand, I thoutht the root filesystem was an initramfs?12:28
cjwatsonif you're booting (a version of) the desktop CD, then the ISO is mounted, a squashfs is loopback-mounted from that, and the eventual root filesystem is a unionfs of that squashfs and a tmpfs12:28
cjwatsonthe root filesystem is an initramfs in d-i, but that's a very different environment12:28
cjwatsondoing the desktop CD with an initramfs / would have vastly increased memory requirements over the existing solution12:29
cjwatsonyou'd have to unpack the entire CD (effectively) into memory before you could get started12:29
cr3just in case there's misunderstanding, when I intend the desktop installation to proceed from a partition on the hard drive, I intend it to install onto the rest of the drive and not touch the partition containing the installation media12:30
cjwatsonI understand that, but it still won't work.12:30
cjwatsonNot unless you use a *separate* drive.12:30
cjwatsonA separate partition won't do because it's still inside a partition table which is going to be locked.12:30
cr3I'm starting to understand the problem now, darn ;(12:31
cr3cjwatson, I really appreciate you have taken the time to explain this to me, it would've taken me quite a while to figure it out on my own through trial and error12:32
cr3mostly error :)12:32
cjwatsonnot a problem, it's not an uncommon line of thought and it's not obvious at first glance why it doesn't work12:34
cr3I'm gone. g'night and thanks a million!12:34
=== mgalvin [n=mgalvin@ubuntu/member/mgalvin] has joined #ubuntu-installer
=== mgalvin [n=mgalvin@ubuntu/member/mgalvin] has joined #ubuntu-installer
=== mgalvin [n=mgalvin@ubuntu/member/mgalvin] has joined #ubuntu-installer
evandcjwatson: Sorry about that, I left right after my message.  I'll close the bugs, but is there any paticular reason why I should instead of waiting and letting LP do it for me?02:10
evandJust curious02:10
cjwatsonevand: because LP won't do it for you yet ...02:11
cjwatsonevand: the distro side of changelog-closes-bugs is implemented, but not the LP side02:12
evandcjwatson: Really?  I could've sworn it's been closing them.  Weird.  Ok, will do.02:12
cjwatsonI've closed some following your uploads - you may have interpreted that as something automatic02:12
cjwatsons/your uploads/uploads I've done on your behalf/02:13
cjwatsonI tend to just paste the changelog into the bug so it's not terribly distinguishable from something automatic02:13
evandahhh, sorry about that.  I thought that was LP working its magic.  I'll take care of that in the future.02:13
evandBeing now :)02:13
=== cr3 [n=marc@pdpc/supporter/bronze/cr3] has joined #ubuntu-installer
=== CIA-5 [i=cia@cia.navi.cx] has joined #ubuntu-installer
cjwatsonevand: # FIXME: we'll probably need to check if /etc is its own part as well.04:51
cjwatsonevand: /etc has to be on the same partition as / in pretty much all Unix systems I know of - can't do much else without /etc/fstab04:51
evandhahaha, point taken.  I wrote much of that very early in the AM after much frustration with UUIDs04:55
evandI'll remove the comment04:56
CIA-5ubiquity: cjwatson * r1947 ubiquity/debian/changelog: releasing version 1.4.006:08
CIA-5ubiquity: cjwatson * r1948 ubiquity/ (configure configure.ac): bump to 1.4.106:18
CIA-5ubiquity: cjwatson * r1949 ubiquity/ (debian/changelog ubiquity/tz.py): * Make the timezone database a singleton, saving about 2MB of memory.06:53
CIA-5ubiquity: cjwatson * r1950 ubiquity/ (debian/changelog ubiquity/tz.py):07:09
CIA-5ubiquity: * Avoid storing temporary variables as members of the (long-lived)07:09
CIA-5ubiquity:  SystemTzInfo class.07:09
=== pkt_ [n=knoppix@athedsl-07079.otenet.gr] has joined #ubuntu-installer
=== stgraber [n=stgraber@ubuntu/member/stgraber] has joined #ubuntu-installer
=== cyp_taf [n=cyp@cyplp.org] has joined #ubuntu-installer
cyp_tafhello11:56
cyp_tafI have some questions about ubiquity : is it the good chan ?11:57
CIA-5oem-config: cjwatson * r268 oem-config/ (debian/changelog oem-config): * Add missing 'import os' to oem-config.12:27
CIA-5oem-config: cjwatson * r269 oem-config/ (debian/changelog debian/control oem-config-dm):12:31
CIA-5oem-config: * Stop using xsetroot in oem-config-dm for KDE, as the KDE frontend now12:31
CIA-5oem-config:  sets its own wallpaper.12:31
CIA-5oem-config: cjwatson * r270 oem-config/ (configure configure.ac): bump to 1.1112:37
CIA-5oem-config: cjwatson * r271 oem-config/ (d-i/manifest debian/changelog): * Automatic update of included source packages: user-setup 1.8ubuntu2.12:41
cjwatsoncyp_taf: yes12:43
CIA-5oem-config: cjwatson * r272 oem-config/debian/changelog: releasing version 1.1112:43
=== pkt [n=knoppix@athedsl-146748.otenet.gr] has joined #ubuntu-installer
=== cr3 [n=marc@pdpc/supporter/bronze/cr3] has joined #ubuntu-installer
cyp_tafcjwatson: great02:18
cyp_tafthere a website or someting like for know how modify ubiquity02:19
cjwatsonno02:19
cyp_tafor a page decribing the internal comportment of ubiquity ?02:19
cjwatsonaside from the live CD customization howto somewhere on help.ubuntu.com/community/02:19
cjwatsonthere's doc/README in the source package02:19
cyp_tafok02:19
cyp_tafI have some trouble for use lvm with partman02:20
cjwatsonnot supported in ubiquity yet.02:20
cyp_tafpartman see lvm intruction but dont apply them02:20
cjwatsondon't bother trying in ubiquity; it's still a good deal of work. use d-i instead02:21
cyp_tafin facts, my boss ask to me to adapt ubiquity for our custom debian distribution so I can't use d-i directly ...02:30
cjwatsonI'm afraid LVM support just isn't there yet02:42
cyp_taf:(02:42
cjwatsonit shouldn't be *too* bad to do in the new partitioner, but hooking up the pieces will still be a reasonable amount of code02:42
cjwatsoncertainly a lot more tractable than in the old partitioner02:42
cyp_tafok02:43
=== Tux-Rox [n=Tux-Rox@71.216.18.84] has joined #ubuntu-installer
Tux-RoxWhile installing Ubuntu in Parallels Desktop on a MacBook, it hangs as the install is finishing, while trying to insmod an IDE controller driver. It never gets to the grub install and even though I can chroot into the file system in the Virtual Machine, grub-install does not see (hd0). Any ideas or command switches that might help?03:22
cjwatsonsounds like something that should be fixed in the kernel03:28
cjwatsonmodprobe hanging => kernel bug03:28
=== mgalvin [n=mgalvin@ubuntu/member/mgalvin] has joined #ubuntu-installer
Tux-Roxcjwatson: Makes sense, except that I have tried not only herd-5and the daily build from the 8th of March, but also herd-1 and 6.10 as well. They all hang at the same spot. It is really odd. I am running ubiquity with the debug switch now to see what happens.03:33
Tux-RoxI feel it might be a Parallels bug, as I once had 6.10 working in an older beta version. I just wanted to get feedback from the installer developers first in case they may have an idea.03:35
=== stgraber [n=stgraber@ubuntu/member/stgraber] has joined #ubuntu-installer
Tux-Roxcjwatson: The exact point at which it freezes the installer is at "Loading module 'aec62xx' for 'IDE chipset support'..." Still seem like a kernel bug?03:48
Tux-RoxLast line in the debug log states: debconf (developer): --> 1 Loading module 'aec62xx' for 'IDE chipset support'...  Mar 15 07:45:28 debconf (filter): --> 1 OK03:52
Tux-RoxLast two lines it seems.03:53
cr3cjwatson: thanks again for the help yesterday, I managed to get the live cd booting over nfs this morning and only two small patches were needed: 1. initramfs-tools to support netboot= option; 2. casper to enable the network for mountroot to work over nfs.03:55
cr3the patches have already been submitted to Mithrandir and lifeless03:56
cr3now, I have yet another question: how could I hook into the live cd to run some script once the installer has reached the desktop?03:57
cr3I could probably modify the squashfs or somesuch, but I really want to have as little impact as possible on the original media03:57
cjwatsonTux-Rox: yes, still seems like a kernel bug04:08
cjwatsonubiquity --debug probably won't help a lot04:08
cjwatsonTux-Rox: I bet if you reboot and run 'sudo modprobe aec62xx' from a shell it'll hang too04:08
cjwatsoncr3: tweak casper to dump an appropriate script into /etc/init.d, make it executable, run update-rc.d on it so that it runs late in the boot process?04:09
Tux-Roxcjwatson: I quit out of the installer and first tried insmod. The response was that the module was already loaded. I tried to rmmod and it said that the module was in use by [permanent] , which I expected. I then tried modprobe, and sure enough I had to eventually ctrl-c.... :-(04:13
cjwatsonright, that's a sure sign that the kernel has a problem04:14
Tux-RoxI am going to try installing 6.10 once again.04:14
cjwatsonmind you I'm surprised you could even ctrl-c04:14
cjwatsonTux-Rox: hang on a sec, there's a workaround at least04:15
Tux-RoxCool! That is what I was hoping.04:15
cjwatsonTux-Rox: edit /bin/hw-detect as root on the running live CD and look for get_ide_chipset_info04:16
cjwatsonTux-Rox: should be a line that looks like: if [ "$baseidemod" != hpt366 ] ; then04:16
cjwatsonTux-Rox: change that to: if [ "$baseidemod" != hpt366 ]  && [ "$baseidemod" != aec62xx ] ; then04:16
cjwatsonTux-Rox: you may have to repeat if other modules hang, and probably reboot after each failure, so I expect it'll be a slow process04:17
cjwatsonTux-Rox: or you could gamble and search for the second instance of get_ide_chipset_info in that file (in the get_manual_hw_info function) and just comment it out by putting a # at the front of the line)04:17
Tux-Roxcjwatson:   :-)   Thanks! I'll give it a go.04:18
cjwatsonthinking about it your disk is probably detected already anyway so commenting that out should be harmless04:18
cjwatsonmaybe I should just kill off that chunk of code04:18
Tux-RoxIt is assumed then that the live-cd puts the /etc scripts in ramdisk?04:21
cjwatsonTux-Rox: I don't understand the question?04:31
Tux-RoxNevermind, I just typed something random that popped into my head. A bit of a brain fart is all... :-)04:32
cjwatsonthe whole / on the live session is a unionfs of the squashfs on the CD and a tmpfs04:33
cjwatsonso you can write to all of it04:33
Tux-RoxI figured as much, it just took a second after typing the above cryptic question to realize it... :-)04:34
cr3cjwatson: I discovered that if I just dropped a squashfs in the casper directory, it could automatically be unionfs mounted for me. so, by not having to modify casper scripts, I wouldn't have to rebuild the initrd.gz04:48
cr3what would be nice is being able to nfs export the union of the live cd iso image and a directory containing my squashfs file, but nfs is broken in regards to unionfs :(04:49
=== mgalvin [n=mgalvin@ubuntu/member/mgalvin] has joined #ubuntu-installer
=== avoine [n=avoine@modemcable036.0-70-69.static.videotron.ca] has joined #ubuntu-installer
CIA-5ubiquity: cjwatson * r1951 ubiquity/ubiquity/tz.py: minor neatness05:29
CIA-5ubiquity: cjwatson * r1952 ubiquity/ (debian/changelog scripts/install.py): * Fix broken call to kboot-installer.05:53
CIA-5ubiquity: cjwatson * r1953 ubiquity/debian/changelog: releasing version 1.4.106:03
cr3aha! when exporting a filesystem over nfs, it assumes that it is located on a block device. otherwise, you must specify the fsid in the exports file. as simple as that!06:39
=== joejaxx [i=joejaxx@ubuntu/member/joejaxx] has joined #ubuntu-installer
thomcjwatson: do you happen to know what happens if i call pkgsel multiple times?06:56
thomum, pkgsel/include06:57
thomin preseed installs06:57
cjwatsonyou mean specify that preseed more than once?07:03
cjwatsonpreseeding isn't procedural, it's declarative. The last one will win07:03
thomdamnation :/07:03
cjwatsonwhy not just comma-separate multiple package names?07:03
thomi have some common packages and some class specific ones07:04
cjwatsonyou'll need to generate the preseed file in a way that can add to a given line, then07:04
cjwatsonor else perhaps use preseed/late_command if you just need to blat in a load of shell07:04
thomyeah, i'm using apt-install in late_command currently, was hoping for a cleaner way07:05
thomguess i'll either stay with that or just have a bunch of more or less duplicated pkgsel/includes in the class configs07:05
cjwatsonsounds like it's worth having a smarter generator :)07:10
thoms/smarter// ;-)07:10
cjwatsonheh07:11
thomd-i preseed/include_command string case $(debconf-get netcfg/get_hostname) in *-foo) echo foo.cfg ;; etc :-)07:11
cjwatsonah yes07:13
=== mpt [n=mpt@121-72-133-166.dsl.telstraclear.net] has joined #ubuntu-installer
joejaxxcjwatson: is deboostrap-udeb downloaded along with the rest of the udebs that are pulled when you compile the d-i?11:30
cjwatsonjoejaxx: it's downloaded at run-time by d-i, not when you build the initrd (unless you're building monolithic)11:31
joejaxxhmm11:35
joejaxxbecause the debootstrap extract script is looking for it11:35
cjwatsoncould you give more detail?11:35
joejaxxon the Package.gz11:35
joejaxxin*11:35
cjwatsonwhat debootstrap extract script?11:36
joejaxxcjwatson: the extract-debootstrap script11:36
cjwatsonsure, it needs to be on your mirror11:36
cjwatsonit doesn't need to be in the d-i initrd11:36
cjwatsonextract-debootstrap is just there because debian-cd needs it later on for internal checking purposes11:37
cjwatson(which actually isn't all *that* useful with debootstrap 0.3, but anyway)11:38
joejaxxyeah because debian-cd is not putting the udebs on the cd archive11:38
joejaxxor atleast when it goes to do scanpackages during the build process it comes up with11:39
joejaxx dists/feisty/main/binary-i386/: New 877kB 611 files 237MB 4m22s11:39
joejaxx dists/feisty/main/debian-installer/binary-i386/: New 20B 0 files 0B 0s11:39
cjwatsoncheck the stuff in tasks/blah/installer in the scratch directory11:47
cjwatsonsee if it actually lists any udebs11:47
cjwatsonif not, one possibility might be that the mirror you're germinating from doesn't have a proper udeb mirror, or it could be something else weirder11:48
cjwatsone.g. if you're germinating off an incompletely debmirrored site, that would do it11:48
joejaxxoh ok11:49
=== lifeless [n=robertc@ppp245-86.static.internode.on.net] has joined #ubuntu-installer

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