You are not logged in.

#1 2022-05-08 14:30:17

860lacov
Member
Registered: 2020-05-02
Posts: 497

How to avoid systemd-boot reinstall after btrfs subvolume restoration?

My / is mounted at @ subvolume
And I have bak@ subvolume
My efi partition is mounted in /boot
I have dual boot with Windows

From time to time I mess something up in my system and if I'm not able to find a solution to undo the changes I just delete my @ subvolume and mv bak@ to @

After this I have to use pendrive with Arch installation and arch-chroot into the system to do bootctl install

Can I do something to avoid this?

Offline

#2 2022-05-08 15:06:43

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: How to avoid systemd-boot reinstall after btrfs subvolume restoration?

There's no reason you should have to do that.

If there was a kernel update, you'll have a mismatch between the kernel on /boot and the modules in /lib/modules, but bootctl install shouldn't fix that. That would need to reinstall the kernel package.

Offline

#3 2022-05-11 19:30:17

860lacov
Member
Registered: 2020-05-02
Posts: 497

Re: How to avoid systemd-boot reinstall after btrfs subvolume restoration?

Scimmia wrote:

There's no reason you should have to do that.

If there was a kernel update, you'll have a mismatch between the kernel on /boot and the modules in /lib/modules, but bootctl install shouldn't fix that. That would need to reinstall the kernel package.

Well, but I have.
Next time, I'll copy an error message after restoring snapshots.

Offline

#4 2022-05-12 02:53:52

SweepingBishops
Member
Registered: 2022-02-14
Posts: 30

Re: How to avoid systemd-boot reinstall after btrfs subvolume restoration?

Can't you use

btrfs subvolume set-default <subvol id>

to restore?

Offline

Board footer

Powered by FluxBB