Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
initramfs-with-mca
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
initramfs-with-mca
Commits
22eaf730
Commit
22eaf730
authored
Oct 14, 2022
by
Ophélie Gagnard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dracut.module: Simplify the dracut module
parent
423811cb
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
39 deletions
+6
-39
dracut.module/90metadata-collect/collect.sh
dracut.module/90metadata-collect/collect.sh
+5
-0
dracut.module/90metadata-collect/debug-and-scan.sh
dracut.module/90metadata-collect/debug-and-scan.sh
+0
-24
dracut.module/90metadata-collect/only-scan.sh
dracut.module/90metadata-collect/only-scan.sh
+0
-5
dracut.module/Makefile.in
dracut.module/Makefile.in
+1
-10
No files found.
dracut.module/90metadata-collect/collect.sh
0 → 100644
View file @
22eaf730
#!/bin/bash
.
/lib/dracut-lib.sh
#/sbin/metadata-collect-agent $NEWROOT /sbin/fluent-bit /etc/libfluentbit_wendelin.so /etc/flb.conf /var/log/metadata_collect.log
dracut.module/90metadata-collect/debug-and-scan.sh
deleted
100644 → 0
View file @
423811cb
#!/bin/bash
.
/lib/dracut-lib.sh
DEBUG_LOG_FILE
=
/var/log/debug-mode.log
/sbin/fluent-bit
-e
/etc/libfluentbit_wendelin.so
-c
/etc/debug-mode.conf &
debug_flb_pid
=
$!
sleep
1
# wait for fluent-bit to monitor the log file (?)
echo
"NEWROOT =
$NEWROOT
"
&>>
$DEBUG_LOG_FILE
echo
"********** /usr/sbin **********"
&>>
$DEBUG_LOG_FILE
ls
-Rl
/usr/sbin &>>
$DEBUG_LOG_FILE
echo
"********** /bin **********"
&>>
$DEBUG_LOG_FILE
ls
-Rl
/usr/bin &>>
$DEBUG_LOG_FILE
echo
"********** /usr/etc **********"
&>>
$DEBUG_LOG_FILE
ls
-Rl
/etc &>>
$DEBUG_LOG_FILE
echo
"********** /usr/lib **********"
&>>
$DEBUG_LOG_FILE
ls
-Rl
/usr/lib &>>
$DEBUG_LOG_FILE
echo
"fluentbit_end"
&>>
$DEBUG_LOG_FILE
wait
$debug_flb_pid
/sbin/metadata-collect-agent
$NEWROOT
/sbin/fluent-bit /etc/libfluentbit_wendelin.so /etc/flb.conf /var/log/metadata_collect.log
dracut.module/90metadata-collect/only-scan.sh
deleted
100644 → 0
View file @
423811cb
#!/bin/bash
.
/lib/dracut-lib.sh
/sbin/metadata-collect-agent
$NEWROOT
/sbin/fluent-bit /etc/libfluentbit_wendelin.so /etc/flb.conf /var/log/metadata_collect.log
dracut.module/Makefile.in
View file @
22eaf730
...
...
@@ -10,17 +10,9 @@ LOCAL_DRACUT_MODULE=$(DRACUT_MODULE_NAME)
.PHONY
:
all
#all: dev 90metadata-collect/collect.sh 90metadata-collect/metadata-collect-agent 90metadata-collect/fluent-bit 90metadata-collect/fluentbit_wendelin.so 90metadata-collect/flb.conf
all
:
90metadata-collect/collect.sh 90metadata-collect/metadata-collect-agent 90metadata-collect/fluent-bit 90metadata-collect/fluentbit_wendelin.so 90metadata-collect/flb.conf
all
:
90metadata-collect/metadata-collect-agent 90metadata-collect/fluent-bit 90metadata-collect/fluentbit_wendelin.so 90metadata-collect/flb.conf
#dev:
# @echo dev1 = $(dev1)
90metadata-collect/collect.sh
:
# different options are vailable: debug-and-scan, only-debug, only-scan
cp
$(LOCAL_DRACUT_MODULE)
/only-scan.sh
$(LOCAL_DRACUT_MODULE)
/collect.sh
90metadata-collect/metadata-collect-agent
:
cp
$(MCA_PATH)
/bin/metadata-collect-agent
$(LOCAL_DRACUT_MODULE)
...
...
@@ -35,7 +27,6 @@ all: 90metadata-collect/collect.sh 90metadata-collect/metadata-collect-agent 90m
.PHONY
:
clean
clean
:
rm
-f
$(LOCAL_DRACUT_MODULE)
/collect.sh
rm
-f
$(LOCAL_DRACUT_MODULE)
/metadata-collect-agent
rm
-f
$(LOCAL_DRACUT_MODULE)
/fluent-bit
rm
-f
$(LOCAL_DRACUT_MODULE)
/libfluentbit_wendelin.so
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment