Package Details: mkinitcpio-openswap 0.1.0-3

Git Clone URL: https://aur.archlinux.org/mkinitcpio-openswap.git (read-only, click to copy)
Package Base: mkinitcpio-openswap
Description: mkinitcpio hook to open swap at boot time
Upstream URL: https://aur.archlinux.org/packages/mkinitcpio-openswap/
Licenses: unknown
Submitter: ahphaw5S
Maintainer: ahphaw5S
Last Packager: ahphaw5S
Votes: 25
Popularity: 0.000129
First Submitted: 2015-06-01 14:05 (UTC)
Last Updated: 2017-10-27 14:56 (UTC)

Dependencies (1)

Required by (0)

Sources (3)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

hussam commented on 2017-10-22 13:27 (UTC)

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?

<deleted-account> commented on 2017-10-22 13:25 (UTC)

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.

<deleted-account> commented on 2017-10-22 13:20 (UTC)

There seems to be a problem with this package and the latest mkinitcpio-busybox update: https://bugs.archlinux.org/task/56080 https://forum.manjaro.org/t/unstable-latest-mkinitcpio-busybox-update-causing-kernel-panic-on-luks-system/33248/8

ahphaw5S commented on 2017-10-16 12:43 (UTC) (edited on 2017-10-16 12:43 (UTC) by ahphaw5S)

thanks! Forgot to commit that one.

spsf64 commented on 2017-10-16 12:01 (UTC)

@ahphaw5s you did not update .SRCINFO, still at 0.1.0-1 (not -2)

ahphaw5S commented on 2017-10-14 14:24 (UTC)

@dreieck, thanks! I have added the $cryptsetup_options to the part you have mentioned. Let me know if you have any further problems.

dreieck commented on 2017-10-14 13:37 (UTC) (edited on 2017-10-14 13:40 (UTC) by dreieck)

There is an error: This hook cannot open a password protected (i.e. no keyfile) LUKS swap device. In /usr/lib/initcpio/hooks/openswap, there is $miscellaneous resp. $cryptsetup_options missing after "cryptsetup open" in the if-part where no keyfile is present. Please add!

ahphaw5S commented on 2017-03-16 09:14 (UTC)

@diogobaeder, as far as I understand sd-encrypt is a hook to open the root partition. The openswap simply runs cryptsetup command with some options to open swap _after_ the root partition is mounted. So I think that these things are independent of each other and it should also work with sd-encrypt hook too. Let me know if I am mistaked somewhere.

diogobaeder commented on 2017-03-16 00:36 (UTC) (edited on 2017-03-16 08:33 (UTC) by diogobaeder)

Hi guys, any ideas if this works for systemd as well - i.e., sd-encrypt? Or just plain udev + encrypt? [EDIT] Sorry, nevermind, I opted by just using the normal encrypt hook and not use systemd in initramfs. Just tested the package, and it works like a charm, my computer can now hibernate to encrypted SWAP. Yay! Great job, guys! :-)

jrmrjnck commented on 2017-03-07 03:22 (UTC)

Thank you for maintaining this package. It worked perfectly for me.