bugGNU GRUB - Bugs: bug #43874, wrong interpretation of...

 
 

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

bug #43874: wrong interpretation of btrfs(-default)-subvolume

Submitter:  Florian <ikcalb>
Submitted:  Tue 23 Dec 2014 12:23:57 PM UTC
Votes: 100
 
Category:  Filesystem Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name:  Florian Kerle
Open/Closed:  Closed Release:  2.02~beta1
Release:  Reproducibility:  Every Time
Planned Release:  None

Thu 22 Jan 2015 07:38:54 PM UTC, comment #1: 

upstream already uses the full paths.

Vladimir Serbinenko <phcoder>
Group administrator
Tue 23 Dec 2014 12:23:57 PM UTC, original submission:  

SETUP:
=====

  • OS-partition is BTRFS on  /dev/sda OR (hd0,msdos1)

   (only subvolumes in the root of this partition!)

  • I have a fresh install of Debian8 on the subvolume /root.

  (GRUB's config is in /root/boot/grub)

  • I put an old ubuntu installation on the subvolume /ubuntu_root.


subvolume /root was default, but reverted to ` btrfs su set 0 /`
(as well as subvolid=5 respectively; does not change anything)


OBSERVED BEHAVIOR:
=================

I cannot configure grub to boot from another subvolume, where the config is located.

in the grub> console:

#1: check root-var
grub> echo $root
hd0,msdos1

#2: showing my subvoumes:
grub> ls (hd0,msdos1)
btrfs volume; UUID=...
grub> ls (hd0,msdos1)/
/root    /ubuntu_root

#3: houston, we've got a problem
# '(hd0,msdos1)/root/'  is listed here!
ls root
/bin    /boot ... /vmlinuz

SUMMARY: I can correctly list my subvolumes, as in 2). When setting the (necessray) root-var, some magic seems to happen, as in 3). I cannot specify the subvolume (hence the correct path) to root, kernel or initrd.

#4: When entering commands manually
# I can at least boot into initramfs...
grub> linux (hd0,msdos1)/ubuntu_root/vmlinuz root=UUID... rootflags=subvol=/ubuntu_root
grub> initrd (hd0,msdos1)/ubuntu_root/initrd.img

!!! sidenote only !!!
Idk why, but 3 days (and some updates) ago, `update-grub` was able to find the ubuntu-installation.
!!! the config was not bootable though !!!


EXPECTED BEHAVIOR:
=================
Either:
1. add the option to specify a subvolume for a menuentry, and use relative paths from within the subvolume
(which would be benefitial, when i.e. booting some other [backup]snapshot. only the subvolume needs to be changed)
2. use full paths again (including the subvolume in the path)

additionally: automatically recognize linux-installations on other subvolumes

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 (Posted a comment)
  • -email is unavailable- added by ikcalb (Voted in favor of this item)
  • -email is unavailable- added by ikcalb (Submitted the item)
  •  

    There are 100 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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-01-22 phcoder StatusNone Fixed
        Open/ClosedOpen Closed
    2014-12-23 ikcalb Carbon-Copy- Added ikcalb

    Back to the top

    Powered by Savane 3.15-e6e5.
    Corresponding source code