Preseed has corrupt late_command when using both expert_disk and autostart_puppet
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cisco Openstack |
Fix Released
|
Medium
|
Unassigned | ||
Folsom |
Triaged
|
Medium
|
Unassigned |
Bug Description
From Ian:
Looks to me like expert_disk is key here (since we all like
autostart_puppet):
d-i preseed/
--waitforcert 0 || true;\
if [ "`debconf-get netcfg/
sed -i.bak -e '/^\tgateway /d' /etc/network/
<% if expert_disk -%>/sbin/lvremove -f nova-volumes/
<% if autostart_puppet %>sed -e 's/START=
/target/
<% if late_command -%><%= late_command -%>
<% end -%>
wget -O /dev/null
http://
wget -O /dev/null
http://
me ; \
true
late_command, as currently defined in the manifest, starts with a
linefeed. One of the two options means its linefeed is used
appropriately. Both and you find the two commands run into each other as:
/sbin/lvremove -f nova-volumes/
/target/
No longer reproducible; I believe this got fixed in one of the late_command cleanups a while back.