Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catch bug making swap file on BIOS #83

Merged
merged 1 commit into from
Oct 2, 2022
Merged

catch bug making swap file on BIOS #83

merged 1 commit into from
Oct 2, 2022

Conversation

Batcastle
Copy link
Member

This bug ONLY appears when:

  • making a SWAP file when autopartitioning on BIOS
    OR
  • making a SWAP file on an ext4 file system, with either BIOS or UEFI

When making a SWAP file on btrfs, which is standard for UEFI when autopartitioning. We need to call:

chattr +C /.swapfile

in order to be allowed to use it. This command disables btrfs's Copy-On-Write functionality for that one specific file. Unfortunately, it doesn't silently fail on ext4 file systems. So, this PR adds a try/except block to handle that event. Thankfully, on ext4 file systems, this command does not need to be run. So things should work out.

@Batcastle Batcastle added the bug Something isn't working label Oct 2, 2022
@Batcastle Batcastle self-assigned this Oct 2, 2022
@Batcastle Batcastle merged commit 79bdf2f into testing Oct 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant