[00:43] <ago> evand have added a diff patch to bug #12596659
[00:44] <ago> bug #186114
[00:46] <ago> wubi rev 451 is up
[00:53] <TheMuso> ago: Ok that updated mounthost made no difference.
[00:54] <TheMuso> Let me reboot in recovery mode to see how things look...
[00:57] <TheMuso> ago: Still mounted ro.
[00:58] <ago> hmm can you set -x in mounthost to see where it fails?
[00:59] <TheMuso> Yep, give me a bit so I can boot into a live disk to adjust it.
[00:59] <ago> sure, might be that there are some earlier errors
[01:01]  * ago thinks about folders mount-moved in initrd
[01:06] <ago> I'd assume that a loopdevice within a ro host is also ro
[01:07] <ago> and in scripts/local we mount-move /host into a ro loopdevice (not sure if that is allowed)
[01:08] <ago> TheMuso you might want to have set -x also in initramfs-tools/scripts/local to check that
[01:09] <TheMuso> ago: Ok, I'll get the script's contents dumped to a log file for both scripts, and I'll apstebin them both.
[01:09] <ago> thanks
[01:11] <ago> I am out of space and cannot create a vfat vm before backup/cleanup...
[01:14] <ubotu> Launchpad bug 186114 in wubi "umountroot cannot handle fuse host mounts" [Medium,Fix committed] https://launchpad.net/bugs/186114
[01:16]  * TheMuso re-generates the initramfs
[01:16] <ago> ubotu, that must be a record....
[01:29] <TheMuso> Wooho. It would help if I made the mounthost script I copied over executable. :S
[02:04] <TheMuso> ago: initramfs-tool scripts/local output: http://pastebin.com/m99dbdb6
[02:05] <TheMuso> ago: mounthosts: http://pastebin.com/m1d0d3f2b
[02:13] <ago> TheMuso: mounthost seems to have executed the following command successfully:
[02:13] <ago> mount -n -o remount,defaults,rw /dev/disk/by-uuid/747E-E96F /host
[02:13] <TheMuso> ago: But /host is still ro.
[02:13] <TheMuso> Let me boot it again, just to be sure.
[02:14] <ago> initramfs does not show any error during mount-move, I assume you stopped that to get the log
[02:14] <TheMuso> Yes
[02:15] <ago> I know that for instance ntfs-3g cannot be remounted at the moment #186117
[02:15] <ago> I wouldn't expect the same issue to extend to vfat, but you never know...
[02:16] <ago> can you try to mount/remount vfat from a live session?
[02:16] <TheMuso> Hrm ok maybe with the recent mounthosts update, host is now mounted rw, however things still crash out, which amkes me think its the initramfs code that is the issue.
[02:16] <TheMuso> makes
[02:17] <ago> well if it is mounted rw, one less I guess...
[02:17] <TheMuso> Yes.
[02:18] <TheMuso> Yeah, even now I can't remount the root filesystem read-only, still says /host/ubuntu/disks/root.disk is wrte-protected.
[02:19] <TheMuso> So the initial mount from the initramfs sticks.
[02:19] <TheMuso> Even accross the pivot, which makes sense.
[02:19] <ago> ah so /host gets remounted but / does not...
[02:20] <TheMuso> Yes, and cannot.
[02:20] <ago> I went through that long time ago'...
[02:20] <TheMuso> Once we pivot, the remount of /host by mounthost is treated as a separate entity it seems.
[02:20] <ago> IRC the solution is not to use mount -o loop
[02:21] <ago> but use losetup instead and the mount /dev/loop0
[02:21] <TheMuso> That doesn't appear to be used.
[02:21] <ago> it is in initramfs-tools/scripts/local
[02:21] <ago> mount ${roflag} -o loop -t ${FSTYPE} ${LOOPFLAGS} "/host/${LOOP#/}" ${rootmnt}
[02:21] <TheMuso> Right.
[02:21] <TheMuso> I still don't quite follow what you are saying.
[02:22] <ago> you split mount -o loop in 2 operations
[02:22] <ago> 1) you create a loop device with losetup
[02:22] <ago> 2) you mount that normally without "-o loop" since now it is available as /dev/loop#
[02:22] <TheMuso> Um, so what difference would this make with initramfs tools, and vfat being mounted ro?
[02:23] <ago> as mentioned I went through that ~1 y ago', but I think that for some reason when you use mount -o loop the hosted device is marked for life with the host settings
[02:23] <ago> while if you split, the 2 are independent
[02:24] <ago> sort of
[02:27] <TheMuso> Right.
[02:27] <TheMuso> But is there a reason why vfat gets mounted read-only in initramfs in the first place, an ntfs doesn't?
[02:28] <ago> yes there was an exception for ntfs, since it could not be remounted
[02:28] <ago> the relevant line is:
[02:28] <ago> ([ -z "$LOOP" ] || [ "${FSTYPE#ntfs}" = "$FSTYPE" ]); then
[02:28] <ago> 		
[02:28] <TheMuso> yeah I saw that
[02:28] <TheMuso> that makes sense.
[02:29] <ago> 1 solution is to delete  || [ "${FSTYPE#ntfs}" = "$FSTYPE" ])
[02:29] <ago> so that whenever there is a loop device it gets always mounted rw
[02:29] <TheMuso> Hrm, but wouldn't it be saner to use losetup as you previously mentioned?
[02:29] <ago> other solution is to use the losetup + mount /dev/loop
[02:29] <TheMuso> And let mounthost remount it rw?
[02:29] <ago> I think so
[02:30] <ago> and when 186117 is addressed we can remove the specialcasing for ntfs
[02:30] <TheMuso> Right.
[02:30] <TheMuso> I'll research the losetup stuff now if you'd like, and I'll d a test. If it works, I'll upload a fix.
[02:31] <ago> http://paste.ubuntu-nl.org/59320/
[02:32] <ago> replace the mount -o loop with the above (I assume that losetup is available in initrd, do not remember now)
[02:33] <TheMuso> I can check
[02:35] <TheMuso> Yes, it is in the initramfs.
[02:36] <TheMuso> Ok, I'll make a change, and test.
[02:53] <ago> TheMuso, really need to go to bed 3am here...
[02:53] <TheMuso> ago: Thats fine, I'll let you know how it goes.
[02:53] <ago> thanks a lot for everything
[02:53] <ago> 'night
[02:53] <TheMuso> You're welcome.
[02:53] <TheMuso> Night
[08:19] <evand> The noninteractive oem-config bug seems to not stop there.  When noninteractive is used it cannot find any of the packages on the local cd mirror.  I'll take a further look in the morning.
[08:24] <superm1> evand, oooh yuck.  that's worse than expected :)
[08:34] <cjwatson> that's ... special
[10:36] <xivulon> TheMuso any luck yesterday?
[10:37] <TheMuso> xivulon: It still crashes out. I need to get a complete boot log for you.
[10:37] <xivulon> thanks
[13:37] <cr3> is there a way to preseed an installation so that deb-src repositories aren't generated in the sources.list?
[13:37] <cr3> also, is there a way to prevent hardy-updates from being generated too?
[13:48] <cjwatson> no, sorry (to both)
[14:32] <cr3> cjwatson: that's fine, I'll workaround in late-command.
[14:32] <cr3> when installing a new package, during the Setting up phase, I sometimes get: Not replacing deleted config file /etc/...
[14:33] <cr3> I'm not sure if this is the right place to ask but this is breaking packages being installed :(
[14:34] <cr3> or just running dpkg-reconfigure package_name returns the same error message
[14:35] <cr3> err, warning message :)
[15:08] <cr3> aha! it was a ucf problem which can be fixed with ucf -p /etc/...
[18:26] <evand> This noninteractive bug is horribly confusing.  gtk_ui and noninteractive are using the same code during the actual install routine, yet the former is able to install packages from the CD and the latter complains about them not being in pool.
[18:27] <evand> Curiously, if I interrupt the process with a sleep and run apt by hand (setting the appropriate options) it works just fine.
[18:27] <evand> ugh.
[18:47] <mario_limonciell> that would make it rather difficult to sort out -
[19:05] <cr3> after the installation has completed, in late-command, is there a way to add repositories to sources.list and apt-get a few more packages?
[19:06] <cr3> the reason for wanting to apt-get new packages so late is that I want to be very strict on the repositories used during the installation
[19:06] <cjwatson> use apt-setup/local0/repository etc.
[19:06] <cr3> and, the problem with running apt-get in late-command is that /proc doesn't exist on the target system so apt-get fails horribly :)
[19:06] <cr3> cjwatson: the problem is that repositories specified that way are used during the installation of the system proper
[19:07] <cjwatson> no they aren't
[19:07] <cjwatson> they're used for language packs, but that's all
[19:07] <cjwatson> relevantly, they're used for pkgsel/include
[19:07] <cjwatson> which is what you really want
[19:07] <cr3> cjwatson: indeed relevantly, thanks a lot for that info!
[19:08] <cjwatson> you can bind-mount /proc if you need to (necessary when not using in-target), but it shouldn't be needed with that different approach
[19:08] <cjwatson> and then just preseed the things you need to preseed in the normal way, using a preseed file
[19:15] <soren> cjwatson: Why bind-mount /proc rather than just mount it?
[19:53] <yennes> hi
[19:53] <yennes> need help installing boost
[19:53] <yennes> is anyone here?
[20:49] <cjwatson> soren: either works
[20:55] <soren> cjwatson: Ok.
[22:17] <cr3> I'm getting an error code 100 during pkgsel because the repository used during the installation doesn't have deb-src nor hardy-updates. Is there a way I could hook into preseed before pkgsel is called to strip sources.list or should I emulate deb-src and hardy-updates on the server side?
[22:23] <cr3> and it seems that pkgsel is forcing an upgrade, or maybe I could be wrong: The following NEW packages will be installed:...
[22:54] <cjwatson> there's a /usr/lib/pre-pkgsel.d
[22:54] <cjwatson> new packages doesn't sound like an upgrade
[22:59] <cr3> ls: /usr/lib/pre-pkgsel.d/*: No such file or directory;  WARNING **: Configuring 'pkgsel' failed with error code 1
[22:59] <cjwatson> mkdir
[22:59] <cjwatson> (if you want it); it won't be failing for that reason anyway
[22:59] <cr3> oh, there's also this line: The following packages will be upgraded:
[22:59] <cr3> right, just a warning. at what point should I be creating /usr/lib/pre-pkgsel.d/?
[23:00] <cjwatson> upgraded> maybe needed in order to install language packs; it certainly doesn't run a real upgrade
[23:00] <cjwatson> I know that for an absolute fact
[23:00] <cr3> some of the files under the upgraded packages include: apt apt-utils dhcp3-client dhcp3-common gcc-4.2-base initramfs-tools libgcc1 libsasl2-2 libsasl2-modules libssl0.9.8 libstdc++6 ntpdate python python-minimal python2.5 python2.5-minimal tasksel tasksel-data
[23:01] <cjwatson> if you want to hook in before pkgsel to do something, create the directory from preseed/early_command and drop an executable script in it
[23:01] <cjwatson> could I see the full log, please? it's hard to guess from snippets
[23:02] <cr3> cjwatson: sorry, I removed the log and reverted to doing all my mangling in late-command. I will try again to polish my preseeding once all the tests have completed.
[23:02] <cjwatson> I don't see anything in there that could obviously be forced, but if it were a significant enough mismatch between image and archive then it's possible
[23:04] <cr3> ok, so I might try to strip hardy-updates and deb-src in a pre-pkgsel script. I think that would be clean
[23:04] <cjwatson> pkgsel does: install appropriate language-pack-$LANGUAGE for basic localisation; run tasksel to install bulk of packages; install rest of language packs (e.g. language-pack-gnome-$LANGUAGE) and language-support-$LANGUAGE
[23:05] <cjwatson> and other miscellaneous (non-apt) bits and pieces around that
[23:05] <cjwatson> is this a CD or net install?
[23:05] <cr3> cjwatson: net install
[23:05] <cjwatson> ok, in that case I apologise for misleading you earlier
[23:06] <cjwatson> repositories specified with apt-setup/local* are indeed used for installing the system as a whole in the case of net installs
[23:06] <cjwatson> but not for CD installs
[23:06] <cjwatson> I get a bit CD-centric sometimes
[23:06] <cr3> cjwatson: heh, don't worry about it, I need to understand exactly what's going on and learning from mistakes helps tremendously
[23:06] <cjwatson> you could cheat in a potentially interesting way
[23:07] <cjwatson> in pre-pkgsel.d, remove deb-src and -updates as you wish
[23:07] <cjwatson> but also copy /target/etc/apt/sources.list to /target/etc/apt/sources.list.apt-setup, and add the extra local repositories you want
[23:07] <cjwatson> pkgsel will move the latter file into place before processing pkgsel/include
[23:07] <cr3> cjwatson: so perhaps I'll also add my other repositories in pre-pkgsel
[23:08] <cjwatson> this is complete undocumented cheating, and piggybacks on how CD stuff happens to be implemented, but ought to work
[23:08] <cjwatson> it's the easiest way I can think of to add local repositories in a net install but not have them used for the bulk package installation stage
[23:09] <cr3> 1. cp /target/etc/apt/sources.list /target/etc/apt/sources.list.apt-setup; 2. mangle /target/etc/apt/sources.list.apt-setup; 3. let 'er rip
[23:09] <cjwatson> right
[23:09] <cr3> cjwatson: this certainly beats my current workaround: have my test suite apt-get packages :(
[23:09] <cjwatson> you will probably want to remove deb-src and -updates from /target/etc/apt/sources.list before copying
[23:09] <cr3> that is totally evil and I'm ashamed to even mention it
[23:10] <cr3> cjwatson: so I might as well invert steps #2 and #1
[23:10] <cr3> unless /target/etc/apt/sources.list is actually used by the installer to install the system
[23:11] <cjwatson> it is
[23:11] <cr3> ok, I really need to jet, taking spiv out for a beer :)
[23:12] <cjwatson> it uses /target/etc/apt/sources.list up to just after tasksel finishes
[23:12] <cr3> oh, thanks for the info, I'll be careful to get those steps straight
[23:12] <cjwatson> then copies sources.list.apt-setup into place, then installs pkgsel/include stuff, then installs rest of language packs
[23:13] <cr3> crystal clear :)
[23:13] <cjwatson> night, enjoy beer :)
[23:13] <cr3> meeting brad bollenbach as well, nice evening ahead :)
[23:51] <xivulon> hmm I do not seem to be able to remount a loopfile inside vfat....
[23:52] <xivulon> if I start with a ro mounted host, I can remount the host but not the hosted loopfile
[23:52] <xivulon> if I start with a rw host+hosted. I can remount ro the hosted fs, but not the host
[23:55] <TheMuso> xivulon: Whats interesting, si when I made those initramfs changes locally and tried again, it crashed, but the loop mounted root fs was mounted rw. I'd need to check to be sure, but thats what I can remember.
[23:56] <xivulon> strange I am tru
[23:56] <xivulon> trying to replicate on a vfat partition
[23:56] <xivulon> I mount vfat partition ro (that contains an ext3 file)
[23:56] <xivulon> then do losetup on the ext3 file in there
[23:56] <xivulon> then mount the loop device ro
[23:57] <xivulon> then remount the vfat partition rw
[23:57] <xivulon> then remount the loopdevice rw
[23:57] <xivulon> and... ...it does not work
[23:57] <xivulon> but iirc it used to work
[23:57] <xivulon> doublechecking