[syslinux] [PATCH] check for default subvolid and act accordingly on install
Jordan Beaver
jordan at beaveris.me
Tue Dec 9 02:45:03 PST 2014
This fixes the issue I had come across with the default subvolume not being
set/used on btrfs when isntalling via `extlinux --install /boot/syslinux`.
Signed-off-by: Jordan Beaver <jordan at beaveris.me>
---
extlinux/main.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/extlinux/main.c b/extlinux/main.c
index 09740bd..c3d9612 100644
--- a/extlinux/main.c
+++ b/extlinux/main.c
@@ -1261,6 +1261,9 @@ static const char *find_device_btrfs(const char *path)
if (!validate_device_btrfs(pfd, dfd))
rv = (const char *)devinfo.path; /* It's good! */
+ /* check for default subvolume and act accordingly */
+ get_default_subvol("/", subvol);
+
err:
if (pfd >= 0)
close(pfd);
--
2.1.3
-Beaver
More information about the Syslinux
mailing list