Skip to content

Instantly share code, notes, and snippets.

@domcleal
Created November 20, 2013 12:48
Show Gist options
  • Select an option

  • Save domcleal/7562599 to your computer and use it in GitHub Desktop.

Select an option

Save domcleal/7562599 to your computer and use it in GitHub Desktop.
diff --git a/db/migrate/20100523114430_add_ubuntu_custom_lvm_ptable.rb b/db/migrate/20100523114430_add_ubuntu_custom_lvm_ptable.rb
index 786219c..93920e5 100644
--- a/db/migrate/20100523114430_add_ubuntu_custom_lvm_ptable.rb
+++ b/db/migrate/20100523114430_add_ubuntu_custom_lvm_ptable.rb
@@ -1,6 +1,6 @@
class AddUbuntuCustomLvmPtable < ActiveRecord::Migration
def self.up
- Ptable.create :name => "Ubuntu custom LVM", :layout => <<EOF
+ p = Ptable.new :name => "Ubuntu custom LVM", :layout => <<EOF
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string lvm
@@ -59,6 +59,7 @@ d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true
EOF
+ p.save_without_auditing
end
def self.down
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment