Cloud-init does not convert dos format to unix for user-scripts

Bug #744965 reported by Edward Ford
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Fix Released
Medium
Unassigned
cloud-init (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

user-data scripts will not run if script contains windows style line endings. Giving error "reports that /bin/bash^M could not be found."

Incidentally, this same reference (^M) is made in the "Newline" wikipedia article: (http://en.wikipedia.org/wiki/Newline#Common_problems)

A detailed thread relating to this bug can be found here: http://groups.google.com/group/ec2ubuntu/browse_thread/thread/236facaeccc4af1c

Tags: ec2-images

Related branches

Scott Moser (smoser)
Changed in cloud-init:
importance: Undecided → Medium
status: New → Triaged
Changed in cloud-init (Ubuntu):
importance: Undecided → Medium
status: New → Triaged
Scott Moser (smoser)
tags: added: ec2-images
Scott Moser (smoser)
summary: - Cloud-init quits on wrong style line-ends
+ Cloud-init does not convert dos format to unix for user-scripts
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package cloud-init - 0.6.1-0ubuntu5

---------------
cloud-init (0.6.1-0ubuntu5) natty; urgency=low

  * fix --purge of grub-legacy-ec2 package (LP: #749444)
  * catchup to trunk cloud-init (rev 394)
  * support user-data formated in dos format by converting to unix for
    user-scripts, boothooks, and upstart jobs (LP: #744965)
  * removal of some debug code, minor documentation fix
 -- Scott Moser <email address hidden> Mon, 04 Apr 2011 13:20:27 -0400

Changed in cloud-init (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Scott Moser (smoser) wrote :

fixed in trunk, to be in 0.6.2

Changed in cloud-init:
status: Triaged → Fix Committed
Scott Moser (smoser)
Changed in cloud-init:
status: Fix Committed → Fix Released
Revision history for this message
James Falcon (falcojr) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.