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

Submitted by:  Florian <ikcalb>
Submitted on:  Wed 09 Sep 2015 10:37:19 AM UTC  
 
Category: FilesystemSeverity: Major
Priority: 3 - LowItem Group: Feature Request
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: Florian Kerle
Open/Closed: OpenRelease: 
Release: otherReproducibility: 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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 11 Oct 2016 01:47:35 PM UTCphcoderPriority5 - Normal=>3 - Low
    Wed 02 Mar 2016 01:34:58 PM UTCphcoderPlanned ReleaseNone=>2.03+
    Wed 09 Sep 2015 10:39:30 AM UTCikcalbCarbon-CopyRemoved ikcalb=>-
    Wed 09 Sep 2015 10:37:19 AM UTCikcalbCarbon-Copy-=>Added ikcalb

    Back to the top


    Powered by Savane 3.1-cleanup1