Package Details: mkinitcpio-openswap 0.1.0-3

Git Clone URL: (read-only, click to copy)
Package Base: mkinitcpio-openswap
Description: mkinitcpio hook to open swap at boot time
Upstream URL:
Licenses: unknown
Submitter: ahphaw5S
Maintainer: ahphaw5S
Last Packager: ahphaw5S
Votes: 19
Popularity: 0.79
First Submitted: 2015-06-01 14:05
Last Updated: 2017-10-27 14:56

Latest Comments

1 2 3 Next › Last »

jrmrjnck commented on 2017-11-06 00:08

/openswap.conf is the correct path. This package has already been updated with the fix. Make sure you update/reinstall the mkinicpio-openswap package (which will automatically rebuild the initramfs), rather than just update the hook file on your filesystem.

diogobaeder commented on 2017-11-05 23:53

Sorry, forgot to mention: I already tried changing "/openswap.conf" to "/etc/openswap.conf", inside the hook config, and it didn't work (not sure why). Is there any command I need to run after changing this path in the hook config?

diogobaeder commented on 2017-11-05 23:51

Hi guys,

It's broken for me as well, I'm using the latest version as of this writing (0.1.0-3), together with mkinitcpio-busybox 1.27.2-1, and the only way I can get my laptop to boot is to either remove the openswap hook from /etc/mkinitcpio.conf or downgrade mkinitcpio-busybox. Now, to be fair, I'm not sure if it's an issue with busybox or openswap, but the latest versions of them are not talking well to each other.


Anonymous comment on 2017-10-23 05:52

Bug report:

Anonymous comment on 2017-10-23 05:42

This is a bug in busybox:

~ % busybox sh
# touch test.conf
# source test.conf
sh: source: test.conf: not found
# source ./test.conf

I will report the bug upstream.

jrmrjnck commented on 2017-10-22 21:26

Editing the openswap.conf path in the hook worked for me.

danieldk, did you root cause what changed in mkinicpio/busybox that broke this?

hussam commented on 2017-10-22 15:22

danieldk: ok, thank you for explaining.

Anonymous comment on 2017-10-22 15:15

hussam: because in the (cpio) ramdisk openswap.conf is stored in /. See


lsinitcpio /boot/initramfs-linux.img | grep openswap.conf

hussam commented on 2017-10-22 13:27

Hi. Sorry in advance for the ignorant question but why does the patch in the bug tracker say:
- source openswap.conf
+ source /openswap.conf
instead of:
- source openswap.conf
+ source /etc/openswap.conf?

Anonymous comment on 2017-10-22 13:25

This does not belong in the bugtracker, I misinterpreted the 'community' in the 'community packages'. So, I will post the report here instead:

Since the mkinitcpio-busybox update to 1.27.2-1 (I think), openswap fails with the error

line 17: openswap.conf: not found

Sourcing openswap.conf with an absolute path in the hook solves this on my system.