/srv/irclogs.ubuntu.com/2014/06/27/#cloud-init.txt

=== praneshp_ is now known as praneshp
=== harlowja is now known as harlowja_away
=== evilissimo|afk is now known as evilissimo
=== praneshp_ is now known as praneshp
=== zz_gondoi is now known as gondoi
=== evilissimo is now known as evilissimo|afk
CatKillersmoser: Hi, I had a quick question about mount-image-callback: Are the commands provided with args executed from inside the chroot? If running "apt-get install" will it run using the apt-get binary from inside the image, or the "host"'s apt-get?15:56
CatKillerBecause I'd like to modify a 14.04 cloud image on an older 10.04 system (or 12.04)15:56
smoserhosts.15:56
smoserif you want chroot. then chroot15:56
smosermount-image-callback .... -- chroot _MOUNTPOINT_ apt-get update15:57
CatKillersmoser: And do you think that would work then (running apt-get from inside a chroot with a different host's version?)15:57
utlemmingCatKiller: yeah, that works unless you need kernel modules from the host15:58
CatKillerutlemming: Ah yes good point, didn't think about that. Here I'd be trying to install ubuntu-desktop within a ubuntu-cloudimage (server)15:58
utlemmingCatKiller: that works just fine, I do that all the time15:59
CatKillersmoser, utlemming: Thanks a lot for the help15:59
CatKillersmoser: Another thing, I'm going to implement resizing the image, but I was wondering whether it would not make more sense to create a separate image resize script instead of forking mount-image-callback as you initially suggested15:59
smoserthe reason it woudl fit in mount-image-callback is that in order to resize , you will need to set up the qemu-nbd device16:01
smoserand re-implement a lot of that.16:01
CatKillersmoser: Very true. Then mount-image-callback it is :)16:01
CatKillerI'll submit a patch when I'm done provided my boss gives the go ahead.16:01
CatKillerI will try and keep it really nice and clean like your own scripts16:01
smoserCatKiller, thakns. i i think i'd just try to do it as both a '--resize' flag16:05
smoserand also a 'mount-image-callback <resize>'16:05
CatKillerThe second being like a command you pass to mount-image-callback?16:06
=== gondoi is now known as zz_gondoi
smoserCatKiller, well, i was tihning mount-image-callback would handle that specifically16:46
smoserkind of like a subcommand of mic16:47
smoserharlowja_away, https://review.openstack.org/#/c/103193/16:47
CatKillersmoser, ok, I'll let you know when I'm done for a quick review16:49
smoserk16:51
=== harlowja_away is now known as harlowja
=== harlowja is now known as harlowja_away
=== harlowja_away is now known as harlowja
=== hatchetation_ is now known as hatchetation

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