There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

axum ,

If you’re planning for this type of failure, what you probably want instead is Aurora from the Universal Blue project. Since it’s fedora silverblue underneath, your OS either updates all at once or doesn’t.

Undearius ,
@Undearius@lemmy.ca avatar

This got me looking to see if there is any way to have a fallback as I have had something similar happen to me.

The general advice is to have a liveboot USB around. I even saw that you can have GRUB simply boot from an .iso file on the internal drives, which eliminates the need to keep a USB stick around.

I haven’t followed the steps yet but I’ll give this a shot because it intrigues me.

linuxbabe.com/…/boot-from-iso-files-using-grub2-b…

gh0stcassette ,
@gh0stcassette@lemmy.blahaj.zone avatar

Or you could just install NixOS for update rollbacks (or use zfs/btrfs and set an alias to take snapshots whenever you update)

superkret ,

I always have a separate huge kernel on hand that boots without an initrd.

FQQD OP ,
@FQQD@lemmy.ohaa.xyz avatar

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.

badloop ,

I mean any which way you try to frame this, saying that you won’t use Arch anymore because you didn’t take the precautions necessary based on your situation is gonna take some heat here.

Scipitie ,

What precaution would you expect OP to would’ve done though? A fallback kernel would be my guess - that’s something many casual oriented distro do out of the box basically. . I read your post as “you’re right, don’t use arch” - something btw which I tend to agree with although I wouldn’t say that’s because of the precautions.

I use arch because there’s no black box magic. For an end user who expects or wants that… Yes, arch might not be the right choice.

eldain ,

I still don’t get the problem. Are you complaining you have to chroot into your system and finish the update because your power got interrupted? Is a 5 min detour into a live system making you unconfortable? This is how you would fix it in any distro except the image based ones and the arch wiki will guide you excellently how to do it. Good luck!

FiskFisk33 ,

sure, but what os wouldn’t break if you did this?

gaylord_fartmaster ,

Plus in Linux you can actually fix this with a live USB, while on Windows you can run startup repair and hope for the best.

zea_64 ,

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)
FQQD OP ,
@FQQD@lemmy.ohaa.xyz avatar

it was btrfs.

bjoern_tantau ,
@bjoern_tantau@swg-empire.de avatar

Just about any Linux I’ve ever used keeps the previous kernel version and initrd around. And nowadays snapper makes a new snapshot before and after every package installation or update.

So, I’d think there are a lot.

axum ,

So what I’m hearing is install Linux-LTS and pacsnap

electro1 ,
@electro1@infosec.pub avatar

That’s why UPS boxes exist … duh

gaylord_fartmaster ,

The power is out and my laptop has less than 10% battery left?

It’s pacman -Syu time.

0x4E4F ,
@0x4E4F@sh.itjust.works avatar

Exactly my thoughts as well.

Why update on that little battery life left… the power will return sooner or later, going without updates even for a week or two is no real problem. Hell, I update like once every 3 weeks to a month, it’s not that big of a deal.

PlexSheep ,

Wait if the power is out, how do they have Internet to load new packages? Something doesn’t make sense here

amda ,

Cellular data

ByteOnBikes ,

Average Linux solution.

“Got an emergency? It’s so EZ. Just open up the terminal and copy/paste [long string of unreadable text]. Btw fuck windows.”

RootAccess ,

Out of curiosity: Which operating system(s) can you shutdown while the kernel is being overwritten? I wouldn’t imagine that as a limitation of Arch Linux specifically.

technocat ,

I think fedora would survive this abuse. It doesn’t replace when you install kernels, but instead adds it.

TxzK ,

Also Fedora ships 3 kernels by default. If one breaks, maybe the others will keep working.

zloubida ,
@zloubida@lemmy.world avatar

With Manjaro you choose how much kernels you want.

aniki ,

Arch let’s you install kernels till /boot is full…

jonne ,

Ubuntu (and probably Debian too) will keep an old kernel in your grub list so you can boot off that one if needed.

themoonisacheese ,
@themoonisacheese@sh.itjust.works avatar

Anything running on a copy-on-write filesystem can trivially rollback changes using a rescue partition.

I also expect most immutable distros would be able to be especially good at tanking this.

chevy9294 ,

Arch Linux with 2 kernels ;)

palordrolap ,

Mint definitely keeps a couple of previous kernels around, so that might be a Debian and Ubuntu thing too.

That said, there's always going to be a critical point of failure that a power loss could cause things to break, no matter your OS or distro.

Writing the bootloader or updating a partition table for example.

Honytawk ,

Windows

Goes back to a previous restore point

f4f4f4f4f4f4f4f4 ,

I was installing Nobara 40 and discovered that the live session is allowed to suspend the PC during the install process. The system ended up having problems with some basic functions…

riodoro1 ,

shutdown a computer when you shouldn’t computer breaks

how could a computer do this

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines