Merge lp:~tinco-andringa/vmbuilder/vmbuilder into lp:vmbuilder

Proposed by Tinco Andringa
Status: Merged
Merged at revision: 493
Proposed branch: lp:~tinco-andringa/vmbuilder/vmbuilder
Merge into: lp:vmbuilder
Diff against target: 61 lines (+9/-8)
3 files modified
VMBuilder/hypervisor.py (+7/-3)
VMBuilder/plugins/ubuntu/dapper.py (+1/-1)
VMBuilder/plugins/ubuntu/templates/dapper_fstab.tmpl (+1/-4)
To merge this branch: bzr merge lp:~tinco-andringa/vmbuilder/vmbuilder
Reviewer Review Type Date Requested Status
VMBuilder Pending
Review via email: mp+242076@code.launchpad.net

Description of the change

It modifies the generated fstab to refer to partitions by UUID instead of by disk mount point.

Fixes 517067

To post a comment you must log in.
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for submitting this proposed fix. However we cannot merge the request without a signed contirbuter agreement.

http://www.ubuntu.com/legal/contributors

Revision history for this message
Tinco Andringa (tinco-andringa) wrote :

Hi,

I've signed the contributors agreement now :)

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Hi,

so sorry, somehow I hadn't gotten this update in email.

When I check the database however, it tells me that you did not sign the
agreement.

Revision history for this message
Tinco Andringa (tinco-andringa) wrote :

Could it be I signed as <email address hidden>, for my employer Phusion? I
remember I made the patch during working hours (I am allowed to contribute
to open source by my employer).

On Thu, Oct 29, 2015 at 2:24 PM, Serge Hallyn <email address hidden>
wrote:

> Hi,
>
> so sorry, somehow I hadn't gotten this update in email.
>
> When I check the database however, it tells me that you did not sign the
> agreement.
>
> --
> https://code.launchpad.net/~w-mail-4/vmbuilder/vmbuilder/+merge/242076
> You are the owner of lp:~w-mail-4/vmbuilder/vmbuilder.
>

Revision history for this message
Tinco Andringa (tinco-andringa) wrote :

Alright the tooling confused me a bit, I signed the agreement again but now
with a prettier launchpad id "tinco-andringa"

On Thu, Oct 29, 2015 at 2:30 PM, Tinco Andringa <email address hidden> wrote:

> Could it be I signed as <email address hidden>, for my employer Phusion? I
> remember I made the patch during working hours (I am allowed to contribute
> to open source by my employer).
>
> On Thu, Oct 29, 2015 at 2:24 PM, Serge Hallyn <email address hidden>
> wrote:
>
> > Hi,
> >
> > so sorry, somehow I hadn't gotten this update in email.
> >
> > When I check the database however, it tells me that you did not sign the
> > agreement.
> >
> > --
> > https://code.launchpad.net/~w-mail-4/vmbuilder/vmbuilder/+merge/242076
> > You are the owner of lp:~w-mail-4/vmbuilder/vmbuilder.
> >
>
> --
> https://code.launchpad.net/~w-mail-4/vmbuilder/vmbuilder/+merge/242076
> You are the owner of lp:~w-mail-4/vmbuilder/vmbuilder.
>

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Hm, neither one is showing up yet. Let me follow up with someone who'd know.
thanks!

Revision history for this message
Tinco Andringa (tinco-andringa) wrote :

There was a field I didn't know what to do with, maybe it's making it not
show up:

Project contact

   - Please add the Canonical Project Manager or contact

I entered your name there, I didn't know what else..

On Thu, Oct 29, 2015 at 3:03 PM, Serge Hallyn <email address hidden>
wrote:

> Hm, neither one is showing up yet. Let me follow up with someone who'd
> know.
> thanks!
>
> --
>
> https://code.launchpad.net/~tinco-andringa/vmbuilder/vmbuilder/+merge/242076
> You are the owner of lp:~tinco-andringa/vmbuilder/vmbuilder.
>

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

It's possible that we need to wait for a human to see it.

I'll ping someone this afternoon.

Quoting Tinco Andringa (<email address hidden>):
> There was a field I didn't know what to do with, maybe it's making it not
> show up:
>
> Project contact
>
> - Please add the Canonical Project Manager or contact
>
>
> I entered your name there, I didn't know what else..
>
> On Thu, Oct 29, 2015 at 3:03 PM, Serge Hallyn <email address hidden>
> wrote:
>
> > Hm, neither one is showing up yet. Let me follow up with someone who'd
> > know.
> > thanks!
> >
> > --
> >
> > https://code.launchpad.net/~tinco-andringa/vmbuilder/vmbuilder/+merge/242076
> > You are the owner of lp:~tinco-andringa/vmbuilder/vmbuilder.
> >
>
> --
> https://code.launchpad.net/~tinco-andringa/vmbuilder/vmbuilder/+merge/242076
> Your team VMBuilder is requested to review the proposed merge of lp:~tinco-andringa/vmbuilder/vmbuilder into lp:vmbuilder.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~vmbuilder
> Post to : <email address hidden>
> Unsubscribe : https://launchpad.net/~vmbuilder
> More help : https://help.launchpad.net/ListHelp

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

It now shows up signed - thanks!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'VMBuilder/hypervisor.py'
--- VMBuilder/hypervisor.py 2011-05-16 20:00:30 +0000
+++ VMBuilder/hypervisor.py 2014-11-18 14:55:49 +0000
@@ -59,6 +59,7 @@
59 self.nics = [self.NIC()]59 self.nics = [self.NIC()]
60 self.call_hooks('preflight_check')60 self.call_hooks('preflight_check')
61 self.call_hooks('configure_networking', self.nics)61 self.call_hooks('configure_networking', self.nics)
62 self.call_hooks('create_partitions')
62 self.call_hooks('configure_mounting', self.disks, self.filesystems)63 self.call_hooks('configure_mounting', self.disks, self.filesystems)
6364
64 self.chroot_dir = tmpdir()65 self.chroot_dir = tmpdir()
@@ -78,9 +79,8 @@
78 destdir)79 destdir)
79 self.call_hooks('deploy', destdir)80 self.call_hooks('deploy', destdir)
8081
81 def mount_partitions(self, mntdir):82 def create_partitions(self):
82 """Mounts all the vm's partitions and filesystems below .rootmnt"""83 """Creates all the vms partitions and formats them """
83 logging.info('Mounting target filesystems')
84 for fs in self.filesystems:84 for fs in self.filesystems:
85 fs.create()85 fs.create()
86 fs.mkfs()86 fs.mkfs()
@@ -89,6 +89,10 @@
89 disk.partition()89 disk.partition()
90 disk.map_partitions()90 disk.map_partitions()
91 disk.mkfs()91 disk.mkfs()
92
93 def mount_partitions(self, mntdir):
94 """Mounts all the vm's partitions and filesystems below .rootmnt"""
95 logging.info('Mounting target filesystems')
92 fss = VMBuilder.disk.get_ordered_filesystems(self)96 fss = VMBuilder.disk.get_ordered_filesystems(self)
93 for fs in fss:97 for fs in fss:
94 fs.mount(mntdir)98 fs.mount(mntdir)
9599
=== modified file 'VMBuilder/plugins/ubuntu/dapper.py'
--- VMBuilder/plugins/ubuntu/dapper.py 2013-03-06 08:56:30 +0000
+++ VMBuilder/plugins/ubuntu/dapper.py 2014-11-18 14:55:49 +0000
@@ -246,7 +246,7 @@
246 self.context.install_file('/etc/apt/apt.conf', '// Proxy added by vmbuilder\nAcquire::http { Proxy "%s"; };' % proxy)246 self.context.install_file('/etc/apt/apt.conf', '// Proxy added by vmbuilder\nAcquire::http { Proxy "%s"; };' % proxy)
247247
248 def install_fstab(self, disks, filesystems):248 def install_fstab(self, disks, filesystems):
249 self.install_from_template('/etc/fstab', 'dapper_fstab', { 'parts' : disk.get_ordered_partitions(disks), 'prefix' : self.disk_prefix })249 self.install_from_template('/etc/fstab', 'dapper_fstab', { 'parts' : disk.get_ordered_partitions(disks) })
250250
251 def install_device_map(self):251 def install_device_map(self):
252 self.install_from_template('/boot/grub/device.map', 'devicemap', { 'prefix' : self.disk_prefix })252 self.install_from_template('/boot/grub/device.map', 'devicemap', { 'prefix' : self.disk_prefix })
253253
=== modified file 'VMBuilder/plugins/ubuntu/templates/dapper_fstab.tmpl'
--- VMBuilder/plugins/ubuntu/templates/dapper_fstab.tmpl 2010-02-24 11:04:23 +0000
+++ VMBuilder/plugins/ubuntu/templates/dapper_fstab.tmpl 2014-11-18 14:55:49 +0000
@@ -3,8 +3,5 @@
3# <file system> <mount point> <type> <options> <dump> <pass>3# <file system> <mount point> <type> <options> <dump> <pass>
4proc /proc proc defaults 0 04proc /proc proc defaults 0 0
5#for $part in $parts5#for $part in $parts
6#echo '/dev/%s%-40s %-15s %-7s %-15s %d %d\n' % ($prefix, part.get_suffix(), part.mntpnt, part.fs.fstab_fstype(), part.fs.fstab_options(), 0, 0)6UUID=$part.fs.uuid $part.mntpnt $part.fs.fstab_fstype() $part.fs.fstab_options() 0 0
7#*
8echo "/dev/$prefix$part.get_suffix() $part.mntpnt $part.fs.fstab_fstype() $part.fs.fstab_options() 0 0
9*#
10#end for7#end for

Subscribers

People subscribed via source and target branches