It was also actually pretty fun!

119 points

Give me more of this and less of the politics. This is what I come to Lemmy for.

permalink
report
reply
-16 points

Weird

permalink
report
parent
reply
21 points

No, you

permalink
report
parent
reply
10 points

subscribe to the linux comms and not to the politics comms

permalink
report
parent
reply
14 points
*

Hopefully you don’t lose power or something else bad happens or there goes your data

permalink
report
reply
5 points

If that happens, they just fall back to the first option of waiting for their provider to set up the IPMI.

permalink
report
parent
reply
50 points
*

Impressive, sounds like magic, tbh! You know any tutorials?

permalink
report
reply
27 points

Yeah, I’d love to see a write up on this to follow.Sounds like useful practice in the lab if nothing else.

permalink
report
parent
reply
3 points

i experimented with this some time ago, see my post here: https://lemmy.ml/post/18706002/12772832

permalink
report
parent
reply
86 points

Not really, I pulled it together from a bunch of random posts lol

Maybe I should write one, but in essence you:

  • Stop all non-OS essential services

  • Create a filesystem in a chunk of RAM

  • Pull essential OS files from the installed OS into it recreating needed directories (Though you could probably just use a tiny pre-built distro but meh)

  • Pivot root into it

  • Reload services (when they restart they’ll be restarted in the context of where you pivot rooted, prior they’re still running under the context of the installed OS)

  • Unmount the boot drive

  • Then do what ever you need to do

  • ???

  • Profit

permalink
report
parent
reply
3 points

Imagining this process, despite having never done 50% of the steps on the list, makes my brain imagine this:

permalink
report
parent
reply
24 points

How exactly so you pivot root? Simply chroot or something more involved?

permalink
report
parent
reply
1 point
73 points

chroot isn’t enough, you need “real” pivot_root

chroot just changes the shells root point, pivot_root actually changes the root mount point and enables this trick to work

permalink
report
parent
reply
15 points

I work in this field and I think this is 🔥 af

permalink
report
parent
reply
6 points

FYI you can use kexec and a prepared initrd to do something similar with only one command.

permalink
report
parent
reply
2 points

I have never gotten it to work. It always implodes

permalink
report
reply
11 points

read this over on Linux community a few days ago

https://cloudbsd.xyz/

permalink
report
reply
5 points

Damn lol wish I would have come out sooner lmao Seems a tad more complicated though, I don’t remember having to compile anything at least

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.3K

    Monthly active users

  • 1.2K

    Posts

  • 65K

    Comments