Jordan Beaver
2014-Dec-08 23:06 UTC
[syslinux] BTRFS default subvolume identification and use
Hello All, I've recently encountered an issue with `extlinux --install /boot/syslinux` where a subvolume on btrfs which is set to `set-default` is not identified as the default subvolume. In my testing I pulled both the prebuilt binary from kernel.org which failed to identify that I had set a non 0 value via `btrfs subvolume set-default <id> <path>`. In extlinux/main.c there appears to be two different unique attempts to grab information relating to default subvolume. If the first one succeeds, `find_device_btrfs(path)`, the second is not ran, `find_device`, which in turn would call `get_default_subvol`. I found by commenting out line 1293 of extlinux/main.c that since it skips `find_device_btrfs(path)` the subvolume is set properly and I can continue to boot from subvolume and rely on set-default to work as expected when changing subvolumes. -Beaver
Maybe Matching Threads
- [PATCH] check for default subvolid and act accordingly on install
- [PATCH] check for default subvolid and act accordingly on install
- [PATCH]: Use a general way to get the default subvolume for btrfs
- [PATCH v1 1/1] extlinux: fix memory leak
- [PATCH v2 1/1] extlinux: fix memory leak