3
0
forked from pool/util-linux
util-linux/util-linux-HACK-boot.localfs.diff
Petr Uzel 13c932106f Accepting request 125509 from home:lnussel:branches:Base:System
add a hack for boot.localfs to determine the devices to wait for
(uses mount -avn).
yes it's an ugly hack that will never make it upstream but it's the
least intrustive workaround I could come up with atm. Suggestions
welcome though :-)

OBS-URL: https://build.opensuse.org/request/show/125509
OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=142
2012-06-20 11:15:52 +00:00

28 lines
799 B
Diff

From 89a0fa3ca57be7440500dd207d96ea1e2908959f Mon Sep 17 00:00:00 2001
From: Ludwig Nussel <ludwig.nussel@suse.de>
Date: Wed, 20 Jun 2012 10:56:05 +0200
Subject: [PATCH] UGLY HACK: boot.localfs parses mount ouput and needs source
rather than target
---
sys-utils/mount.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/sys-utils/mount.c b/sys-utils/mount.c
index 8706716..b28d67a 100644
--- a/sys-utils/mount.c
+++ b/sys-utils/mount.c
@@ -166,6 +166,9 @@ static int mount_all(struct libmnt_context *cxt)
while (mnt_context_next_mount(cxt, itr, &fs, &mntrc, &ignored) == 0) {
const char *tgt = mnt_fs_get_target(fs);
+ if (getenv("MOUNT_PRINT_SOURCE")) {
+ tgt = mnt_fs_get_srcpath(fs);
+ }
if (ignored) {
if (mnt_context_is_verbose(cxt))
--
1.7.7