316
you are viewing a single comment's thread
view the rest of the comments
[-] zea_64@lemmy.blahaj.zone 3 points 1 month ago

If it was on something like BTRFS it'd probably be fine, though I imagine there's still a small window where the FS could flush while the file is being written. renameat2 has the EXCHANGE flag to atomically switch 2 files, so if arch maintainers want to fix it they could do

  1. Write to temporary file
  2. Fsync temporary file
  3. Renameat2 EXCHANGE temporary and target
  4. Fsync directory (optional, since a background flush would still be atomic, just might take some time)
[-] dan@upvote.au 1 points 1 month ago

renameat2

I read this as "rena meat 2" and was very confused

[-] FQQD@lemmy.ohaa.xyz 0 points 1 month ago
[-] kolorafa@lemmy.world 7 points 1 month ago

Just having btrfs is not enough, you need to have automatic snapshots (or do them manually) before doing updates and configured grub to allow you to rollback.

Personally, I'm to lazy to configure stuff like that, I rather just pick my Vetroy USB from backpack, boot into live image and just fix it (while learning something/new interesting) than spend time preventing something that might never happen to me :)

this post was submitted on 04 Aug 2024
316 points (87.6% liked)

linuxmemes

20707 readers
991 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS