[Bug 1195504] Re: Add a noswap option to avoid accessing drives - w/ PATCH

2018-06-14 Thread Lucas Magasweran
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!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1195504

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1195504/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1195504] Re: Add a noswap option to avoid accessing drives - w/ PATCH

2014-02-03 Thread Lucas Magasweran
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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1195504

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1195504/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1195504] Re: Add a noswap option to avoid accessing drives - w/ PATCH

2013-07-01 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: casper (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1195504

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1195504/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1195504] Re: Add a noswap option to avoid accessing drives - w/ PATCH

2013-06-27 Thread Lucas Magasweran
** Patch added: noswap kernel parameter patch
   
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1195504/+attachment/3716471/+files/noswap.patch

** Description changed:

- I would like to propose the following patch that adds a noswap Kernel
+ 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.
- 
- === modified file 'debian/manpage/casper.7'
- --- old/debian/manpage/casper.7   2010-11-29 12:49:36 +
- +++ new/debian/manpage/casper.7   2013-06-27 22:21:58 +
- @@ -88,6 +88,11 @@
-  .TP
-  .BI noprompt
-  Do not prompt to eject the CD on reboot.
- +.TP
- +.BI noswap
- +Adding this parameter, casper will not attempt to find and activate swap 
partitions requiring manual use of 
- +.B swapon
- +as needed. This is useful to avoid accessing drives that may be present in 
the system.
-  
-  .SH FILES
-  .B /etc/casper.conf
- 
- === modified file 'scripts/casper'
- --- old/scripts/casper2013-05-28 10:19:04 +
- +++ new/scripts/casper2013-06-27 22:23:14 +
- @@ -71,6 +71,8 @@
-  export CMD_USERFULLNAME=${x#userfullname=} ;;
-  username=*)
-  export CMD_USERNAME=${x#username=} ;;
- +noswap)
- +export DISABLE_SWAP=Yes ;;
-  esac
-  done
-  if [ ${UNIONFS} =  ]; then
- 
- === modified file 'scripts/casper-bottom/13swap'
- --- old/scripts/casper-bottom/13swap  2013-03-13 14:24:28 +
- +++ new/scripts/casper-bottom/13swap  2013-06-27 22:23:36 +
- @@ -22,25 +22,29 @@
-  log_begin_msg $DESCRIPTION
-  
-  devices=
- -for device in /dev/[hsv]d[a-z][0-9]*; do
- -if ! [ -b $device ]; then
- -continue
- -fi
- -
- -/sbin/blkid -o udev -p ${device%%[0-9]*} | grep -q ^ID_FS_USAGE=raid 
 continue
- -
- -magic=$(/bin/dd if=$device bs=4086 skip=1 count=1 2/dev/null | 
/bin/dd bs=10 count=1 2/dev/null) || continue
- -
- -if [ $magic = SWAPSPACE2 -o $magic = SWAP-SPACE ]; then
- -#log Found $device
- -devices=$devices $device
- +if [[ -n $DISABLE_SWAP ]]; then
- +echo -n disabled via kernel cmdline: noswap.
- +else
- +for device in /dev/[hsv]d[a-z][0-9]*; do
- +if ! [ -b $device ]; then
- +continue
-  fi
- -done
- -
- -for device in $devices; do
- -cat  $FSTAB EOF
- +
- +/sbin/blkid -o udev -p ${device%%[0-9]*} | grep -q 
^ID_FS_USAGE=raid  continue
- +
- +magic=$(/bin/dd if=$device bs=4086 skip=1 count=1 2/dev/null | 
/bin/dd bs=10 count=1 2/dev/null) || continue
- +
- +if [ $magic = SWAPSPACE2 -o $magic = SWAP-SPACE ]; then
- +#log Found $device
- +devices=$devices $device
- +fi
- +done
- +
- +for device in $devices; do
- +cat  $FSTAB EOF
-  $device swap swap defaults 0 0
-  EOF
- -done
- +done
- +fi
-  
-  log_end_msg

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1195504

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1195504/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1195504] Re: Add a noswap option to avoid accessing drives - w/ PATCH

2013-06-27 Thread Lucas Magasweran
** Patch added: noswap kernel parameter patch
   
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1195504/+attachment/3716470/+files/noswap.patch

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1195504

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1195504/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1195504] Re: Add a noswap option to avoid accessing drives - w/ PATCH

2013-06-27 Thread Ubuntu Foundations Team Bug Bot
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

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1195504

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/casper/+bug/1195504/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs