Compare commits

...

3 Commits

Author SHA1 Message Date
David Abdurachmanov 6138de18ee
Add ps aux
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2019-01-16 12:24:38 +01:00
David Abdurachmanov d13d3eb5f0
More verbose
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2019-01-16 12:22:01 +01:00
David Abdurachmanov 2330b4f0f8
Debug dracut findmnt command (executed while doing dnf install kernel-core)
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2019-01-16 11:09:10 +01:00
4 changed files with 121 additions and 1 deletions

51
0001-More-verbose.patch Normal file
View File

@ -0,0 +1,51 @@
From 742cba6c25be6785d2edbaf8923034a2054023b8 Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Wed, 16 Jan 2019 11:20:31 +0000
Subject: [PATCH] More verbose
---
dracut.sh | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/dracut.sh b/dracut.sh
index 308624b..02a9d6c 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -23,6 +23,18 @@
# store for logging
+set -x
+
+findmnt
+blah=$(findmnt)
+dwarning "findmnt output:"
+dwarning "$blah"
+
+findmnt -A
+blah=$(findmnt -A)
+dwarning "findmnt output:"
+dwarning "$blah"
+
unset BASH_ENV
# Verify bash version, current minimum is 4
@@ -1122,7 +1134,6 @@ fi
# Need to be able to have non-root users read stuff (rpcbind etc)
chmod 755 "$initdir"
-set -x
if [[ $hostonly ]]; then
findmnt
@@ -1137,7 +1148,6 @@ if [[ $hostonly ]]; then
done
fi
-set +x
declare -A host_fs_types
--
2.20.1

25
0001-add-ps-aux.patch Normal file
View File

@ -0,0 +1,25 @@
From cc68a04b1ba4a7b5b31b071d0bdb0bd450fb8626 Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Wed, 16 Jan 2019 11:23:27 +0000
Subject: [PATCH] add ps aux
---
dracut.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dracut.sh b/dracut.sh
index 02a9d6c..885fe04 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -25,6 +25,8 @@
set -x
+ps aux --forest -w
+
findmnt
blah=$(findmnt)
dwarning "findmnt output:"
--
2.20.1

View File

@ -0,0 +1,41 @@
From 03ac2461dc6050275f63f388bafa96b486ece8a7 Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Wed, 16 Jan 2019 10:06:14 +0000
Subject: [PATCH] debug dracut findmnt
---
dracut.sh | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/dracut.sh b/dracut.sh
index 3dc2adc..308624b 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -1122,15 +1122,23 @@ fi
# Need to be able to have non-root users read stuff (rpcbind etc)
chmod 755 "$initdir"
+set -x
+
if [[ $hostonly ]]; then
+ findmnt
+ blah=$(findmnt)
+ dwarning "findmnt output:"
+ dwarning "$blah"
for i in /sys /proc /run /dev; do
if ! findmnt --target "$i" &>/dev/null; then
dwarning "Turning off host-only mode: '$i' is not mounted!"
- unset hostonly
+ #unset hostonly
fi
done
fi
+set +x
+
declare -A host_fs_types
for line in "${fstab_lines[@]}"; do
--
2.20.1

View File

@ -9,7 +9,7 @@
Name: dracut
Version: 049
Release: %{dist_free_release}%{?dist}
Release: %{dist_free_release}.davidlt.1%{?dist}
Summary: Initramfs generator using udev
%if 0%{?fedora} || 0%{?rhel}
@ -52,6 +52,9 @@ Patch21: 0021.patch
Patch22: 0022.patch
Patch23: 0023.patch
Patch24: 0024.patch
Patch25: 0001-debug-dracut-findmnt.patch
Patch26: 0001-More-verbose.patch
Patch27: 0001-add-ps-aux.patch
Source1: https://www.gnu.org/licenses/lgpl-2.1.txt