[Bug 1133045] [NEW] kickseed partition handler "forgets" about LVM physical volumes

Aaron Knister aaron.knister at gmail.com
Mon Feb 25 23:19:45 UTC 2013


Public bug reported:

Hi Everyone,

When kickstarting Ubuntu Precise x64 (I haven't tested with any other
version) I was unable to get the installer to recognize more than one
volume group unless I specify each volume group immediately after its
partition definition. What I mean by that is this:

part pv.01   --size 40960  --asprimary  --fstype ext3 --ondisk=1
part pv.02   --size 1      --asprimary  --fstype ext3 --ondisk=1 --grow

volgroup sysvg1 pv.01
volgroup usrvg1 pv.02

does not work, but this:

part pv.01   --size 40960  --asprimary  --fstype ext3 --ondisk=1
volgroup sysvg1 pv.01

part pv.02   --size 1      --asprimary  --fstype ext3 --ondisk=1 --grow
volgroup usrvg1 pv.02

does.

The problem appears to be in handlers/volgroup.sh in
volgroup_pull_recipe(). After the pending_lvm tag is parsed it is not
put back in the event it isn't used which means that only one volume
group will ever match and be recognized. Here's a proposed fix:

diff --git a/handlers/volgroup.sh b/handlers/volgroup.sh
index b3a4ea5..48b7638 100644
--- a/handlers/volgroup.sh
+++ b/handlers/volgroup.sh
@@ -18,6 +18,7 @@ volgroup_pull_recipe () {
 				if [ "$want_pvname" = "$got_pvname" ]; then
 					partition_recipe_append "$line vg_name{ $vgname }"
 				else
+					[ -n "$got_pvname" ] && line="$line \$pending_lvm{ $got_pvname }"	
 					rest="${rest:+$rest }$line ."
 				fi
 				line=

** Affects: debian-installer (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to debian-installer in Ubuntu.
https://bugs.launchpad.net/bugs/1133045

Title:
  kickseed partition handler "forgets" about LVM physical volumes

Status in “debian-installer” package in Ubuntu:
  New

Bug description:
  Hi Everyone,

  When kickstarting Ubuntu Precise x64 (I haven't tested with any other
  version) I was unable to get the installer to recognize more than one
  volume group unless I specify each volume group immediately after its
  partition definition. What I mean by that is this:

  part pv.01   --size 40960  --asprimary  --fstype ext3 --ondisk=1
  part pv.02   --size 1      --asprimary  --fstype ext3 --ondisk=1 --grow

  volgroup sysvg1 pv.01
  volgroup usrvg1 pv.02

  does not work, but this:

  part pv.01   --size 40960  --asprimary  --fstype ext3 --ondisk=1
  volgroup sysvg1 pv.01

  part pv.02   --size 1      --asprimary  --fstype ext3 --ondisk=1 --grow
  volgroup usrvg1 pv.02

  does.

  The problem appears to be in handlers/volgroup.sh in
  volgroup_pull_recipe(). After the pending_lvm tag is parsed it is not
  put back in the event it isn't used which means that only one volume
  group will ever match and be recognized. Here's a proposed fix:

  diff --git a/handlers/volgroup.sh b/handlers/volgroup.sh
  index b3a4ea5..48b7638 100644
  --- a/handlers/volgroup.sh
  +++ b/handlers/volgroup.sh
  @@ -18,6 +18,7 @@ volgroup_pull_recipe () {
   				if [ "$want_pvname" = "$got_pvname" ]; then
   					partition_recipe_append "$line vg_name{ $vgname }"
   				else
  +					[ -n "$got_pvname" ] && line="$line \$pending_lvm{ $got_pvname }"	
   					rest="${rest:+$rest }$line ."
   				fi
   				line=

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/1133045/+subscriptions




More information about the foundations-bugs mailing list