Skip to content
Snippets Groups Projects
Verified Commit ae6909cc authored by Johannes Schauer Marin Rodrigues's avatar Johannes Schauer Marin Rodrigues
Browse files

reform-check: stop warning about missing /etc/modprobe.d/reform.conf

parent d07cb08a
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment