bugGNU GRUB - Bugs: bug #45902, BTRFS subvolume - don't resolve...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #45902: BTRFS subvolume - don't resolve symlinks

Submitter:  Florian <ikcalb>
Submitted:  Wed 09 Sep 2015 10:37:19 AM UTC
   
 
Category:  Filesystem Severity:  Major
Priority:  3 - Low Item Group:  Feature Request
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  Florian Kerle
Open/Closed:  Open Release:  other
Release:  Reproducibility:  Every Time
Planned Release:  2.03+

Wed 09 Sep 2015 10:39:01 AM UTC, comment #1: 

release: 2.0.2~beta2-22
on debian jessie

Florian <ikcalb>
Wed 09 Sep 2015 10:37:19 AM UTC, original submission:  

BTRFS subvolumes are a convenient way of making backups - especially for the currently used root filesystem, as they are COW.

SETUP
=====
Using one physical BTRFS partition:
- mounted on `/mnt`
- using folders to group snapshots for logical partitions
  (i.e. snapshots for `home` stored in `home@`)
- symlink for the currently used subvolume for each logical partition

```
/mnt
 |-home  --> ./home@/current
 |-home@/
    |-current/
 |-root  --> ./root@/current
 |-root@/
    |-current/
    |-pre-systemd/
    |-2013-05-12/
```

CURRENT BEHAVIOR (steps to reproduce)
=====================================
1) when booted to subvolume `root` in the above configuration, issue `update-grub`
2) check `/boot/grub/grub.cfg`
   it will resolve the `root` symlink on `/mnt` to `root@/current`

EXPECTED BEHAVIOR
=================
To ease recovery / switching between snapshots, editing one symlink is more elegant than
- to move the current subvolume (`root`) away and the backup in place
  (not only paths for kernel/initrd when booting had to be updated, but also fstab - if not replacing the subvolume one way or another)

Unfortunately idk how to determine with which parameters a BTRFS volume was mounted. (i.e. using the symlink, or the subvolume path directely)
btrfs-tools seem to report the resolved subvolume name only.

Florian <ikcalb>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Updated the item)
  • -email is unavailable- added by ikcalb (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-10-11 phcoder Priority5 - Normal 3 - Low
    2016-03-02 phcoder Planned ReleaseNone 2.03+
    2015-09-09 ikcalb Carbon-CopyRemoved ikcalb -
    2015-09-09 ikcalb Carbon-Copy- Added ikcalb

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code