Subject: Re: Additional swap/dump magic
To: Martin Husemann <>
From: Eric Haszlakiewicz <>
List: tech-userlevel
Date: 08/23/2006 18:51:47
On Thu, Aug 24, 2006 at 12:10:08AM +0200, Martin Husemann wrote:
> What I did is:
>  o A few swapctl(8) enhancements
>    - add an option (-q for query) to check if any swap or dump specs
>      are used in /etc/fstab
>    - add a new "auto" type to the -t argument that makes -A or -U not
>      parse /etc/fstab for explicitly configured swap/dump block
>      devices, but autodected all available (loacl) swap partitions

  So, if the disklabel says "swap" for partition x, specifying "auto"
will use it?  Am I reading that right?

>  o A simple change to /etc/rc.d/swap1 using above enhancements so that
>    - if any explicit swap or dump is configured in /etc/fstab everything
>      behaves exactly as it does now (i.e. keep status quo)
>    - if no swap or dump is configured in /etc/fstab, use the new autodetect
>      magic to activate all swap partitions and set a dump device

   The release notes for the next release should have added a reminder to
check your disklabels before installing.  You can mount and use a partition
marked swap as a normal mounted filesystem.  It's unlikely that someone
would, as newfs complains if you try to create the filesystem in the first
place, but a warning wouldn't hurt.

> If this change goes into tree, I'll change sysinst to not explicitly configure
> a swap partition next (together with wedges support for archs that are there
> already).
> What do you think?

  Maybe have a auto_swapconfig=YES that can be turned off to cause swap1 to
never to the auto config.

  A "-n" option, to see what would be done w/o doing it, would be nice.