cloud-config mount of '[swap, null ]' not handled correctly

Bug #898365 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Fix Released
Medium
Scott Moser
cloud-init (Ubuntu)
Fix Released
Medium
Scott Moser

Bug Description

when testing precise alpha-1 I noticed some errors in the logs like this:

 fsck: fsck.swap: not found
 fsck: Error 2 while executing fsck.swap for /dev/xvda3
 fsck.ext3: Device or resource busy while trying to open /dev/xvda2
 Filesystem mounted or opened exclusively by another program?
 ..
 mountall: fsck None [344] terminated with status 8

This was with cloud-config user-data like:
  mounts:
   - [ ephemeral0, /opt , auto, "defaults,noexec" ]
   - [ swap, null ]

The resultant fstab had:
  /dev/xvda2 /opt auto defaults,noexec,comment=cloudconfig 0 2
  /dev/xvda3 None auto defaults,nobootwait,comment=cloudconfig 0 2

There should not be an entry for swap.

Related branches

Scott Moser (smoser)
Changed in cloud-init (Ubuntu):
assignee: nobody → Scott Moser (smoser)
importance: Undecided → Medium
status: New → Fix Committed
status: Fix Committed → Triaged
Changed in cloud-init:
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → Scott Moser (smoser)
Revision history for this message
Scott Moser (smoser) wrote :

This was fixed in trunk revision 479 and included in current 0.6.3~ bzr snapshots in 12.04.

Changed in cloud-init (Ubuntu):
status: Triaged → Fix Released
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.