Ive been here. U can use a bootable usb to boot. Then use switch root to change to ur actual filesystem (I’m glossing over a lot of complications here ask chatgpt) and update from here or just copy over the kernal.

permalink
report
reply
19 points

ask chatgpt

You mean read the Arch wiki?

permalink
report
parent
reply

I mean ask the self hosted dolphin finetuned mistral 8x22b but chatgpt is easyer to say.

permalink
report
parent
reply
2 points

Why the fuck are you asking an LLM to help you fix your Linux install – especially a tiny one that gets facts wrong as often as Dolphin does – when archwiki is right there?

permalink
report
parent
reply
3 points

I’m not even an Arch user (I use Debian and Fedora) but the Arch wiki is amazing.

permalink
report
parent
reply
1 point

Read the response from the thing that read the Arch wiki

permalink
report
parent
reply
11 points

β€œArch is stable”

permalink
report
reply
11 points

It is! My Desktop hardly ever topples over!

permalink
report
parent
reply
7 points
*

When talking about Linux, β€œstable” usually means β€œdoesn’t have major changes often”, or in other words, β€œdoesn’t have lots of updates that break stuff”. That’s why β€œDebian stable” is called that. Arch is not that.

permalink
report
parent
reply
10 points

So I’m trying to understand if you think that shutting down an update during regenerating the initramfs indicates that Arch isn’t stable? Because that’s a FAFO move and would crater any non-atomic update distro.

permalink
report
parent
reply
2 points
*

It doesn’t ruin Debian or Fedora as they do the bootloader last

If it is interrupted it just boots the old kernel

permalink
report
parent
reply
3 points

Stable does not mean it’s for everybody. My installation runs since now 10 years.

(The only other distribution this failsafe I know of is Debian)

permalink
report
parent
reply
45 points

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.

permalink
report
reply
19 points

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.

permalink
report
parent
reply
4 points

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.

permalink
report
parent
reply
6 points

I don’t think lack of precaution was the issue here given that it was an unexpected power failure, but it is a fairly easy fix with a chroot.

permalink
report
parent
reply
2 points

How would you set up a fallback kernel in Arch?

permalink
report
parent
reply
46 points

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

permalink
report
parent
reply
10 points

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.

permalink
report
parent
reply
2 points

Any immutable distro, Debian, Ubuntu, all their derivatives

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

permalink
report
parent
reply
2 points

good answer to a bad and uninformed question, thanks.

permalink
report
parent
reply
12 points

Windows doesn’t in my experience, it’s surprisingly robust.

But also I thought Linux distros normally keep the old Kernel around after an update so stuff like this doesn’t cause a boot failure?

permalink
report
parent
reply
0 points

But also I thought Linux distros normally keep the old Kernel around after an update so stuff like this doesn’t cause a boot failure?

Arch has no concept of β€œprevious package”, so it doesn’t do this.

You could install linux-lts (or one of the other alternative kernels) side by side with the linux package, so you always have a bootable fallback, but like most things on Arch it’s not enforced.

permalink
report
parent
reply
2 points
*

Windows updates (and Windows Installer) are transactional. If the update or installation fails, it knows exactly how to revert back to the previous state.

Windows Installer supports this across multiple packages too - for example, a game might need some version of DirectX libraries which needs some version of the Visual C++ runtime (probably showing my age because I doubt games come bundled with DirectX any more). If one of the packages fails to install, it can handle rolling everything back. Linux can sometimes leave your system in a broken state when this happens, requiring you to manually resolve the issue - for example, on a Debian-based system if the postinst script for a package fails.

permalink
report
parent
reply
7 points

Yeah windows β€œcumulative update” upgrades for the past couple of years basically duplicate the whole system directory and apply the update to that leaving the existing one to roll back to if anything fails

permalink
report
parent
reply
15 points

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.

permalink
report
parent
reply
5 points
*

In Windows you can also fix this with a live Windows USB, manually.

permalink
report
parent
reply
29 points

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.

permalink
report
parent
reply
7 points

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

permalink
report
parent
reply
3 points

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)
permalink
report
parent
reply
0 points

it was btrfs.

permalink
report
parent
reply
1 point

renameat2

I read this as β€œrena meat 2” and was very confused

permalink
report
parent
reply
24 points

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!

permalink
report
parent
reply
2 points

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.

permalink
report
parent
reply
1 point

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.

permalink
report
parent
reply
2 points

I am using an old laptop that gives me 3 minutes to run from one power plug to the other before just going out.

permalink
report
parent
reply

That’s why UPS boxes exist … Or Timeshift if you don’t have the cash

permalink
report
reply
-2 points

Image says β€œlaptop”. op could have just charge the battery a but before running the update.

permalink
report
parent
reply
2 points

In a comment he clarified that the laptop was plugged in and there was a power failure. Regardless, chrooting in should be a fairly straightforward fix.

permalink
report
parent
reply
3 points

If the laptop is upgrading the kernel so slowly it shuts down in the middle of a power outage it’s probably old as hell and has barely any battery to charge.

permalink
report
parent
reply
-17 points

shutdown

β€˜shut down’, here. β€˜Shutdown’ is a noun missing a hyphen.

permalink
report
reply
10 points

Oh no, a non-english speaker did something that could barely be called a spelling mistake! I’m so sorry for writing β€œshutdown” instead of β€œshut down”. πŸ™

permalink
report
parent
reply
2 points

Commas go inside quotes sir.

permalink
report
parent
reply
4 points
*

They don’t have to. In fact, it makes more sense for them to be out the quote, unless they’re part of the quote. Many writers use commas outside of the enclosement of the quotation marks. I do

permalink
report
parent
reply
20 points

shutdown is a command, so op is technically right.

permalink
report
parent
reply
1 point

MFW I say more than β€œL2S” and get downvoted by projectors.

permalink
report
parent
reply
1 point
*
Deleted by creator
permalink
report
parent
reply

linuxmemes

!linuxmemes@lemmy.world

Create post

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!

Community stats

  • 7.5K

    Monthly active users

  • 913

    Posts

  • 16K

    Comments