Skip to content

How to use the boot time rollback of mkinitcpio-btrfs?

Have I misunderstood?

https://github.com/xtfxme/mkinitcpio-btrfs/blob/master/README.md

I though this would provide possibility for a boot time rollback to a snapshot, I see no such option at any time during boot.

edit if this cannot be done with it I might just use grub to do it.

edit 2 Well if anyone finds this later you might as well know what I ended up doing.

I just went with a grub solution, installed grub-btrfs from aur (fantastic little thing with comments I cannot understand).

I also have an alias (though not really like this due to backup to ext hdd aswell), it is somewhat close to this.

alias sysupgrade="sudo btrfs subvolume snapshot -r / /.snapshots/`date +'%Y-%m-%d_%H-%M-%S'`; sudo pacman -Syyu; sudo mkinitcpio -p linux; sudo grub-mkconfig -o /boot/efi/grub/grub.cfg"

Obviously change snapshot dir, pacman command and the output for grub.cfg to fit your system.

Edited 13 Apr 2015. We only hold this version.

4 points0 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
4 · 100% up
Kind
Text
ID
32bltg

Author

27
posts
299
comments
1
media
View profile
Nobody had commented when we saved it.

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.