Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#3912 - bug in /etc/rc.sysinit when using swapfile(s)

Attached to Project: Arch Linux
Opened by Jack Hollingworth (bralkein) - Monday, 06 February 2006, 11:29 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To No-one
Architecture not specified
Severity Low
Priority Normal
Reported Version 0.7.1 Noodle
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

If a user tries to use a swap file instead of a swap partition (which is a perfectly valid choice and supported by mkswap, swapon etc.), then during the init scripts, the swap file will fail to be activated. The problem is due to the fact that in /etc/rc.sysinit, swap is activated before the other filesystems in /etc/fstab have been mounted completely. The filesystem containing the swapfile ought to be mounted as RW when swapon -a is invoked, otherwise swapon will find that the swap space cannot be written to (which is obviously useless) and fail.

The solution is simple, the line used to activate swap can be moved down in /etc/rc.sysinit to a point just after when the local filesystems are mounted RW.

Cheers, Jack H
This task depends upon

Closed by  Judd Vinet (judd)
Monday, 06 February 2006, 19:39 GMT
Reason for closing:  Fixed
Comment by Judd Vinet (judd) - Monday, 06 February 2006, 19:38 GMT
Added for next initscripts build, thanks.

Loading...