Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MNT Reform Tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sevan Janiyan
MNT Reform Tools
Commits
ae6909cc
Verified
Commit
ae6909cc
authored
7 months ago
by
Johannes Schauer Marin Rodrigues
Browse files
Options
Downloads
Patches
Plain Diff
reform-check: stop warning about missing /etc/modprobe.d/reform.conf
parent
d07cb08a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/reform-check
+8
-12
8 additions, 12 deletions
bin/reform-check
with
8 additions
and
12 deletions
bin/reform-check
+
8
−
12
View file @
ae6909cc
...
...
@@ -420,7 +420,7 @@ fi
if
[
!
-e
/boot/boot.scr
]
;
then
echo
"E: /boot/boot.scr doesn't exist"
>
&2
echo
"E: run
update-initramfs -u
to create it"
>
&2
echo
"E: run
'sudo flash-kernel'
to create it"
>
&2
elif
!
grep
--quiet
"setenv fk_kvers '
$(
uname
-r
)
'"
/boot/boot.scr
;
then
echo
"E: /boot/boot.scr doesn't reference the currently running kernel"
>
&2
fi
...
...
@@ -435,23 +435,19 @@ fi
if
[
!
-e
"/boot/dtb-
$(
uname
-r
)
"
]
;
then
echo
"E: no dtb-* symlink for the currently running kernel"
>
&2
echo
"E: run 'sudo flash-kernel' to create it"
>
&2
elif
[
!
-e
"/boot/dtbs/
$(
uname
-r
)
/
$DTBPATH
"
]
;
then
echo
"E: device tree file
$DTBPATH
is missing from /boot/dtbs"
>
&2
elif
[
"
$(
readlink
"/boot/dtb-
$(
uname
-r
)
"
)
"
!=
"dtbs/
$(
uname
-r
)
/
$DTBPATH
"
]
;
then
echo
"E: /boot/dtb-* symlink does not reference
$DTBPATH
"
>
&2
fi
if
[
!
-e
"/etc/modprobe.d/reform.conf"
]
;
then
echo
"W: etc/modprobe.d/reform.conf doesn't exist"
>
&2
echo
"W: it should at least contain the following lines:"
>
&2
echo
blacklist imx8m-ddrc
>
&2
echo
blacklist raid456
>
&2
else
if
!
grep
--quiet
'^blacklist imx8m-ddrc$'
/etc/modprobe.d/reform.conf
;
then
echo
"E: imx8m-ddrc not blacklisted in /etc/modprobe.d/reform.conf"
>
&2
fi
if
!
grep
--quiet
'^blacklist raid456$'
/etc/modprobe.d/reform.conf
;
then
echo
"W: raid456 not blacklisted in /etc/modprobe.d/reform.conf"
>
&2
if
[
-e
"/etc/modprobe.d/reform.conf"
]
;
then
if
cmp
--quiet
"/usr/lib/modprobe.d/reform.conf"
"/etc/modprobe.d/reform.conf"
;
then
echo
"W: /etc/modprobe.d/reform.conf is identical to /usr/lib/modprobe.d/reform.conf"
>
&2
echo
"W: and the latter succeeds the former. Consider deleting the former in favour of the latter."
>
&2
else
echo
"W: your custom /etc/modprobe.d/reform.conf overrides /usr/lib/modprobe.d/reform.conf"
>
&2
fi
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment