Skip to content

u/arkane-linux

In this archive from Feb 2023 to Jul 2024

3
posts
189
comments
0
media
1.2k
score

Would it be an option to just have a unique bootloader entry for this recovery environment? You can mount subvolumes as root using mounting options.

So lets say you create your recovery install (Or even a full snapshot of your main OS) to /recovery. This info can be inserted in to your kernel parameters and you can boot straight in to it.

You can also make a copy of the kernel and initramfs so it has its own and load them in using your bootloader.

# The relevant bit from my kernel parameters
initrd=\arkdep\de378c78bb4eaa4772849c066902c5af2a356939a6\initramfs-linux.img root="LABEL=arkane_root" rootflags=subvol=/arkdep/deployments/de378c78bb4eaa4772849c066902c5af2a356939a6/rootfs

My immutable Arch project uses this same trick to manage OS updates and images.

1 points

LFS is not a distro, it is litterally building Linux from scratch, you build your own independent distro basically. You can configure it however you wish.

It serves no practical use for anything other than as a hugely valuable learning experience on how to build a functional Linux system from scratch/nothing.

17 points

Check your fstab and the kernel parameters, they seem to be the most common source for this step failing.

I do not know if systemd triggers this behavior on such errors, but systemd-gpt-auto-generator is capable of automatically infering which partitions it needs to mount based on their partition type, this might be why it still manages to boot.

1 points

Yes, you can just copy the files from one disk to the other. Do make sure /etc/fstab and any bootloader entries are still set properly afterwards, they will need to be pointed at the correct disk or partition UUID. I recommend not doing this while the OS is booted, do it from a live environment.

Expanding the volume can not be done under Ext4. You would have to convert to Btrfs te be able to drop all the drives in to a single. Or reinstall and configure a RAID.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.