Add a noswap option to avoid accessing drives - w/ PATCH

Bug #1195504 reported by Lucas Magasweran
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
casper (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I would like to propose the attached patch that adds a "noswap" Kernel parameter that disables casper's automatic discovery and activation of any present swap partitions. The purpose is to not have the drives and drivers in use so that they can be accessed or unloaded without issue.

Tags: patch
Revision history for this message
Lucas Magasweran (lucasrangit) wrote :
description: updated
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "noswap kernel parameter patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in casper (Ubuntu):
status: New → Confirmed
Revision history for this message
Lucas Magasweran (lucasrangit) wrote :

Hi casper developers, please consider implementing this patch. It is needed for an Ubuntu live environment with some disk drive recovery tools that can be run from a live environment to avoid having to check the for an active swap partition on the disk that is being tested.

Thanks.

Revision history for this message
Lucas Magasweran (lucasrangit) wrote :

Hello again ~ubuntu-installer develoeprs! Ran into this issue again.

We observed a hang on reboot after installation until we added a `/sbin/swapoff -a` to the ubiquity ubiquity/success_command seed file entry. The issue is likely occurring because our seed file uses partman-auto to repartition the entire disk, including the swap partition.

It would be great to have the `noswap` option so that our disk can be repartitioned without concern for any active swap partition.

Thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions