Comments (5)
Thanks for your help. So from these checks I figured out it was an issue with the grub config booting from @rootfs
instead of @
, despite @
being the default subvolume.
It worked fine after changing the config to subvol_main = @rootfs
.
from snapper-rollback.
Got it, so in that case, this sounds like different conventions across linux distros: @
for archlinux, @rootfs
for Debian. Next week, I'll update the repo readme so that it flags this potential discrepancy.
from snapper-rollback.
Hmm, I see nothing here looks wrong to my non-expert eyes. but let's try to narrow down the issue:
-
this one is obvious but let's check just in case. Your
/
and/home
are btrfs, but/var
and/tmp
are ext4./
will roll back, but I'm assuming you're aware that/var
and/tmp
won't, right? Just double-checking. -
what's the UUID for
/dev/nvme0n1p2
? It should be the same as your root partition.ls -l /dev/disk/by-uuid
-
you opened a PR that suggests you ran into a BTRFS issue (thanks for contributing back btw!). This makes me wonder whether your system is currently in a consistent state. Did you record the exception, and if so what does it say? What's the current default btrfs subvolume?
-
let's rule out that this is grub booting into the wrong subvolume. When you try to boot into the system after running snapper-rollback, what menuentry are you selecting from grub? How is that menuentry configured? (Most likely under
/boot/grub/grub.cfg
) -
The script has a
--dry-run
mode which will output a few shell commands. If you run the commands directly, are there any errors anywhere?
from snapper-rollback.
Thanks for reporting back with the resolution.
Ideally, this situation wouldn't happen at all to begin with - can I ask how are you generating your grub.cfg
? I'm thinking that we should take steps to avoid the next person running into the same issue -> I'm kind of surprised grub is trying to boot from @rootfs
(where did that come from?), but if re-running update-grub
doesn't generate the correct menuentry, it might be worth checking with the grub people whether it'd make sense to add that kind of auto-detection.
from snapper-rollback.
I am not familiar with how grub works in this context. @rootfs
is what the debian installer creates when formatting a btrfs partition that is set as /
, whereas @
is what I had created manually through btrfs
commands while trying to follow the arch wiki.
The grub.cfg
that I had was also the default that's auto-generated by debian. update-grub
doesn't change it to point to @
instead of @rootfs
if I manually play with btrfs subvol
and set it as default.
from snapper-rollback.
Related Issues (14)
- Necessity of `mountpoint` and `dev` settings HOT 1
- [FEATURE] Rollback snapper default layout snapshots (e.g. `@home`) HOT 14
- [BUG] No module btrfsutil were found HOT 5
- Add support for snapshot auto-deletion HOT 3
- [BUG] still booting read only after roll back HOT 10
- The difference between `snapper-rollback`, and the default `snapper rollback`. HOT 4
- 'mountpoint' value when running from installed system HOT 1
- Error on rollback HOT 6
- mountpoint = /btrfsroot HOT 4
- Don't have subvolid 5 HOT 2
- I am left without network device after rollback HOT 1
- [BUG] HOT 4
- Usable with /@ root volume? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from snapper-rollback.