Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ubuntu-server-builder opened this issue May 9, 2023 · 1 comment
Closed
Labels
launchpad Migrated from Launchpad

Comments

@ubuntu-server-builder
Copy link
Collaborator

This bug was originally filed in Launchpad as LP: #898365

Launchpad details
affected_projects = ['cloud-init (Ubuntu)']
assignee = smoser
assignee_name = Scott Moser
date_closed = 2012-04-11T04:09:57.945604+00:00
date_created = 2011-11-30T21:27:43.648781+00:00
date_fix_committed = 2011-11-30T21:41:06.492971+00:00
date_fix_released = 2012-04-11T04:09:57.945604+00:00
id = 898365
importance = medium
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/898365
milestone = None
owner = smoser
owner_name = Scott Moser
private = False
status = fix_released
submitter = smoser
submitter_name = Scott Moser
tags = []
duplicates = []

Launchpad user Scott Moser(smoser) wrote on 2011-11-30T21:27:43.648781+00:00

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.

@ubuntu-server-builder ubuntu-server-builder added the launchpad Migrated from Launchpad label May 9, 2023
@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2012-02-17T22:16:23.865108+00:00

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
launchpad Migrated from Launchpad
Projects
None yet
Development

No branches or pull requests

1 participant