Skip to content

Ensure the encrypted swapfile is always created #3895

Open
NeilGerring wants to merge 1 commit intolinuxkit:masterfrom
NeilGerring:fix-encrypted-swapfile
Open

Ensure the encrypted swapfile is always created #3895
NeilGerring wants to merge 1 commit intolinuxkit:masterfrom
NeilGerring:fix-encrypted-swapfile

Conversation

@NeilGerring
Copy link
Contributor

- What I did
Ensured the encrypted swap file would be created after the initial boot.

- How I did it
Changed the shell script to have a else if that would re-create the swapfile if the provided path existed and the file size didn't need to be changed.

- How to verify it
Reboot a fresh virtual machine and then run swapon --show.

- Description for the changelog

Ensure a encrypted swap file is always created after a reboot.

- A picture of a cute animal (not mandatory but encouraged)

@NeilGerring NeilGerring force-pushed the fix-encrypted-swapfile branch from fa051f8 to bd62266 Compare January 11, 2023 10:53
…n a reboot

Signed-off-by: Neil Gerring <ng@neilgerring.co.uk>
@NeilGerring NeilGerring force-pushed the fix-encrypted-swapfile branch from bd62266 to a745d00 Compare January 11, 2023 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments