Ticket #13 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

openrc tries to swapon before localmount

Reported by: Gabriel Devenyi <ace@staticwave.ca> Owned by: roy
Priority: normal Milestone:
Component: init.d scripts Version:
Keywords: Cc:

Description

I have my swapfile located on a partition other than the root partition, you've rearranged the boot sequence and swap now tries to activate before all the filesystems have mounted, failing to find the swapfile.

  • Setting system clock using the hardware clock [UTC] ... [ok]
  • Activating swap ...

swapon: cannot canonicalize /mnt/storage/swapfile: No such file or directory
swapon: cannot stat /mnt/storage/swapfile: No such file or directory

[ok]

  • Loading module nvram ... [ok]
  • Loading module joydev ... [ok]
  • Loading module acpi_cpufreq ... [ok]
  • Loading module cpufreq_ondemand ... [ok]
  • Autoloaded 4 module(s)
  • Checking local filesystems ...

/dev/sda2: clean, 206624/750720 files, 969275/1500069 blocks
/dev/sda1: clean, 70/8032 files, 20053/32096 blocks

[ok]

Change History

comment:55 Changed 3 years ago by Gabriel Devenyi <ace@staticwave.ca>

Similarly, the local filesystems are unmounted before swapoff is called, with similar results:

  • Unmounting loopback devices
  • Unmounting filesystems
  • Unmounting /mnt/storage ... [ok]
  • Unmounting /mnt/cdrom ... [ok]
  • Checking local filesystems ...

/dev/sda1: clean, 70/8032 files, 20053/32096 blocks

[ok]

  • Deactivating swap ...

swapoff: cannot canonicalize /mnt/storage/swapfile: No such file or directory

[ok]

comment:56 Changed 3 years ago by roy

  • Status changed from new to resolved
  • Resolution set to fixed

Fixed!

Note: See TracTickets for help on using tickets.