diff options
author | Sam Mendoza-Jonas <sam@mendozajonas.com> | 2016-01-05 15:01:58 +1100 |
---|---|---|
committer | Sam Mendoza-Jonas <sam@mendozajonas.com> | 2016-02-09 13:37:37 +1100 |
commit | d9fc4558e66c32834f2a4fdab31010b40f0a88de (patch) | |
tree | 6ad9090c84d3fc65b4cbcbfde5a41acc802d5c1c /discover/kboot-parser.c | |
parent | 01e104dfb79a09bc28f8c5fb65bfe44596c25161 (diff) | |
download | talos-petitboot-d9fc4558e66c32834f2a4fdab31010b40f0a88de.tar.gz talos-petitboot-d9fc4558e66c32834f2a4fdab31010b40f0a88de.zip |
discover: Handle BTRFS root subvolumes
During install some distributions[0] will create subvolumes when formatting
the root filesystem with BTRFS. In particular this can mean that
bootloader config files will appear (in the case of GRUB) under
/var/petitboot/mnt/dev/$device/@/boot/grub/
rather than the expected
/var/petitboot/mnt/dev/$device/boot/grub/
If this is the case, perform all file operations from the parser
relative to this subvolume rather than the mount point. At the moment
this only supports the trivial case where the subvolume name for root is
blank (ie. '@').
[0] In particular, Ubuntu from at least 14.04
Signed-off-by: Sam Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/kboot-parser.c')
0 files changed, 0 insertions, 0 deletions