Skip to content

Commit

Permalink
Disabling default usage of local swap partitions. Can be enabled with…
Browse files Browse the repository at this point in the history
… the 'swapon' boot parameter. Thanks to Joseph Rawson <umeboshi3@gmail.com> for bringing it up.
  • Loading branch information
daniel-baumann committed Aug 31, 2008
1 parent 6823513 commit f98dc58
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/parameters.txt
Expand Up @@ -35,7 +35,7 @@ live noxautologin
live nofastboot
live nopersistent
live nosudo
live noswap
live swapon
live nouser
live noxautoconfig
live persistent
Expand Down
4 changes: 2 additions & 2 deletions manpages/live-initramfs.en.7.txt
Expand Up @@ -183,9 +183,9 @@ Do not prompt to eject the CD on reboot.

This parameter disables the automatic configuration of sudo.

noswap::
swapon::

This parameter disables usage of local swap partitions.
This parameter enables usage of local swap partitions.

nouser::

Expand Down
6 changes: 3 additions & 3 deletions scripts/live
Expand Up @@ -285,9 +285,9 @@ Arguments ()
export NOSUDO
;;

noswap)
NOSWAP="Yes"
export NOSWAP
swapon)
SWAPON="Yes"
export SWAPON
;;

noupdatenotifier)
Expand Down
2 changes: 1 addition & 1 deletion scripts/live-bottom/13swap
Expand Up @@ -20,7 +20,7 @@ esac

# live-initramfs header

if [ -n "${NOSWAP}" ] || [ -n "${NOFSTAB}" ]
if [ -z "${SWAPON}" ] || [ -n "${NOFSTAB}" ]
then
exit 0
fi
Expand Down

0 comments on commit f98dc58

Please sign in to comment.