• FQQD@lemmy.ohaa.xyzOP
    link
    fedilink
    English
    arrow-up
    0
    ·
    5 months ago

    I think I didn’t make it clear enough: My laptop was on the power during the update process, when the power randomly cut out - for the first time in about 6 years, it doesn’t happen often. Of course you can interpret it as user error - but I think it’s reasonable to update my system when plugged into, normally reliable power. The laptop battery is pretty much dead, so it would’ve shut itself down automatically anyway.

      • zea@lemmy.blahaj.zone
        link
        fedilink
        arrow-up
        0
        ·
        5 months 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)
          • kolorafa@lemmy.world
            link
            fedilink
            arrow-up
            0
            ·
            5 months 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 :)

      • superkret@feddit.org
        link
        fedilink
        arrow-up
        0
        ·
        5 months ago

        Any immutable distro, Debian, Ubuntu, all their derivatives, Fedora, all its derivatives, OpenSUSE, Slackware, …
        Basically, 95+% of installed Linux systems would retain the old or a backup kernel during an upgrade.

        • rudyharrelson@lemmy.radio
          link
          fedilink
          arrow-up
          0
          ·
          5 months ago

          Any immutable distro, Debian, Ubuntu, all their derivatives

          Debian and Ubuntu are not immutable distributions by default, unless I am mistaken.

    • SaharaMaleikuhm@feddit.org
      link
      fedilink
      arrow-up
      0
      ·
      5 months ago

      How dead are we talking here? Even on an older laptop a kernel update doesn’t take that long. Should have just kept it going, hoping for the best.

    • octopus_ink@lemmy.ml
      link
      fedilink
      English
      arrow-up
      0
      ·
      5 months ago

      I don’t really get why you couldn’t pick one of your other installed kernels and boot that, but you seem pretty intent on blaming arch and I don’t feel like trying to troubleshoot it, so that’s that I guess.